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
  • anthropic/claude-opus-5.5
  • anthropic/claude-sonnet-5.5
  • anthropic/claude-haiku-5.5
  • anthropic/claude-opus-4.7
  • anthropic/claude-opus-4.5
  • anthropic/claude-sonnet-4.5
  • anthropic/claude-haiku-4.5
  • openai/gpt-6.1-sol
  • openai/gpt-6.1-terra
  • openai/gpt-6-sol
  • openai/gpt-6-luna
  • google/gemini-3.8-flash
  • google/gemini-4-argon
  • google/gemini-3.1-pro-preview
  • google/gemini-3-flash-preview
  • deepseek/deepseek-v4-pro
  • deepseek/deepseek-v4-flash
  • deepseek/deepseek-v4.1-flash
  • x-ai/grok-4.7
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.