Skip to main content
POST
Create a chat completion
Use a model that supports the Chat Completions protocol. Set stream: true for an SSE response.

Additional supported models

  • openai/gpt-6-astra
  • anthropic/claude-fable-5.1
  • xai/grok-4.6
  • google/gemini-3.7-flash
  • google/gemini-3.5-flash
  • anthropic/claude-opus-4.8
  • openai/gpt-5.5
  • openai/gpt-5.4
  • openai/gpt-5.2
  • anthropic/claude-sonnet-4.6
  • anthropic/claude-opus-4.6
Send protocol fields at the root, without a generation input wrapper. messages must be a non-empty array.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"openai/gpt-6-astra"

messages
object[]
required
Minimum array length: 1
stream
boolean
default:false

Response

Completion or SSE stream

The response is of type object.