Skip to main content
POST
Chat completions

Chat Completions API

The Chat Completions API allows you to have dynamic conversations with AI models. This endpoint enables you to send a series of messages and receive AI-generated responses that maintain context throughout the conversation.

Features

  • Support for multiple advanced AI models
  • Streaming responses for real-time applications
  • Temperature and other control parameters
  • Function calling capabilities

Example Usage

Models

Available models for chat completions:
  • wizardlm-2-7b
  • claude-3-5-sonnet
  • gpt-4o-mini

Example Request

Example With Function Calling

Example With Image Recognition

Authorizations

Authorization
string
header
required

Enter your API key prefixed with 'Bearer '

Body

application/json
model
string
required
messages
object[]
required
temperature
number
max_tokens
integer
stream
boolean
default:false

Whether to stream the response

Response

200

Successful response