Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

Body

application/json

Chat completion request

max_tokens
integer
messages
object[]
model
string
parallel_tool_calls
boolean
provider
string

Gateway routing hint; stripped before upstream execution.

reasoning
object
service_tier
string
stream
boolean
stream_options
object
temperature
number
tool_choice
any

string or object

tools
object[]
top_p
number
user
string

Response

JSON response or SSE stream when stream=true

choices
object[]
created
integer
id
string
model
string
object
string
provider
string
system_fingerprint
string
usage
object