Direct Completions API Reference
Send OpenAI-compatible chat completion requests directly to a model, without guardrails.
Guide: Direct Completions
Error Reference: Direct Completions
Authorizations
Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.
Body
OpenAI-compatible chat completion request. Both messages and model are required; all other fields are optional and forwarded to the selected provider as-is.
Maximum output, in tokens. It holds the reasoning as well as the answer. When the model is reasoning, a value below 8,192 is raised to 8,192; a larger one is sent as you set it, up to the model's maximum output. With reasoning_effort 'none' on a model that can turn reasoning off (can_disable: true in the model catalog), from any provider, the value is sent as you set it, up to the model's maximum output. With no value, a reasoning model gets its full output allowance (up to 65,536) and other models get the model's default. A value of 0 or less counts as no value. See Set your output limit for reasoning models.
Sampling temperature. A model that does not take one (Claude 5 models, and OpenAI GPT-5 and later models while they reason) does not get it, and it is listed in ignored_params (X-Ignored-Params on a stream). See Sampling parameters.
How much a reasoning model thinks before it answers, from least to most. The levels a given model takes are in its reasoning.effort_levels on GET /platform/v2/models. A level the model does not take is not refused: it runs at the nearest level the model has, or without an effort, and is listed in ignored_params (X-Ignored-Params on a stream). See the Reasoning guide (/api-guides/reasoning).
none, minimal, low, medium, high, xhigh, max Response
Successful direct Chat Completion. If stream is false or omitted, the response is JSON. If stream=true, the response is a Server-Sent Events stream.
A non-streaming OpenAI-compatible Chat Completion returned by the selected model.
Parameters that were ignored or not applied as sent. The request still succeeds. Entries include sampling parameters the selected model does not take; reasoning efforts the model ran at another level or without (for example reasoning_effort=minimal); nested reasoning fields that were not read (for example reasoning.summary=auto sent with no effort); and messages.thinking=<n>: the number of thinking or redacted_thinking parts removed from assistant messages you sent back. Reasoning is not carried between requests; the model reasons afresh. On a stream, the parameter names are in the X-Ignored-Params header instead.

