Skip to main content
POST

Body

application/json

Fields not listed here are forwarded to the provider untouched.

model
string
required

A provider/model routing string. The prefix is required; an unlisted name is an error, never a guess.

Examples:

"openai/gpt-5-nano"

"deepseek/deepseek-v4-flash"

"openrouter/anthropic/claude-sonnet-4"

messages
object[]
required
temperature
number | null
max_tokens
integer | null
top_p
number | null
stop
stream
boolean | null

true returns server-sent events instead of one JSON body.

stream_options
object | null
tools
object[] | null
tool_choice

"auto", "none", "required", or a named function.

response_format
object
reasoning_effort
string | null

Reasoning budget hint for models that accept one.

Response

The completion, whole or streamed.

id
string
required
object
string
required
Example:

"chat.completion"

created
integer
required
model
string
required

Your provider/model routing string, not the upstream name.

Example:

"openai/gpt-5-nano"

choices
object[]
required
usage
object
system_fingerprint
string
service_tier
string | null