Request body
string
required
The model id, e.g.
gpt-5.5, claude-sonnet-4.6. Add routing suffixes like
:nitro or :online where supported.array
required
The conversation so far. Each item has
role (system | user |
assistant) and content.boolean
default:"false"
If true, returns Server-Sent Events as tokens are generated.
number
default:"1"
Sampling temperature, 0–2.
integer
Maximum tokens in the completion.
array
Optional plugins, e.g.
[{"id":"web","max_results":5}] for web search.Response
string
Unique id for the completion.
array
The generated choices. Each has a
message (role, content) and a
finish_reason.object
Token counts:
prompt_tokens, completion_tokens, total_tokens.