Direct Completions
Generate Chat Completions directly from the selected model without Gloo governance.
Error Reference: Direct Completions
Authorizations
Headers
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.
Chat messages array
Gloo model ID (e.g. 'gloo-anthropic-claude-sonnet-4.5')
Enable streaming
Maximum tokens to generate
Sampling temperature
Nucleus sampling parameter
Frequency penalty
Presence penalty
Stop sequences
Tool definitions
Tool choice strategy
Response format
Streaming options, e.g. {include_usage: true} to receive a usage SSE chunk at the end of the stream.
Whether to enable parallel function calling. Stripped automatically when tools is not provided.
Controls reasoning effort for supported models (e.g. 'none', 'low', 'medium', 'high'). Ignored for models that do not reason. A graded effort ('low'/'medium'/'high') also requests a reasoning summary, which streams as reasoning_content; 'none' requests no reasoning and therefore no summary.
OpenAI Responses API cache key. Enables persistent prompt caching.
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.
Unique completion identifier.
Object type, always chat.completion.
"chat.completion"Unix timestamp when the completion was created.
Model that generated the completion.
Completions generated by the model.
Token usage when supplied by the provider.
Sampling parameters ignored because the selected model does not support them.

