Skip to main content
OpenAI-compatible chat completion

Authorizations

Authorization
string
header
required

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

Headers

x-gateway-cache
string | null
x-gateway-cache-ttl
integer<int32> | null
Required range: x >= 0
x-gateway-model-regions
string | null

Body

application/json
messages
object[]
required
model
string
required
max_completion_tokens
integer<int32> | null
Required range: x >= 0
max_tokens
integer<int32> | null
Required range: x >= 0
parallel_tool_calls
boolean | null
prompt_cache_key
string | null
response_format
object | null
stream
boolean
system
any
tool_choice
any
tools
object[] | null

Response

HTTP 200 response.