Create chat completion
Generate a model response for a conversation. OpenAI-compatible; supports streaming, tool calls, and structured output. Supports gateway fallback models (fallbacks) and, when the workspace has response caching enabled, serves identical repeat requests from cache at a discount (see the X-Omnia-Cache response header).
Authorizations
Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer .
Headers
Per-request cache control (only meaningful when the workspace has response caching enabled — it can reduce caching, never enable it). no-cache: skip the cache and force a fresh model run, refreshing the stored copy. no-store: fresh run AND keep this response out of cache storage entirely. Either way the response carries X-Omnia-Cache: bypass.
no-cache, no-store Body
The model id, e.g. Qwen/Qwen3-32B. A dedicated endpoint is addressed as dedicated/.
"Qwen/Qwen3-32B"
The conversation so far.
Stream the response as server-sent events.
Streaming options. Usage reporting is included automatically.
Sampling temperature (0–2).
Nucleus sampling probability mass.
Top-k sampling.
Number of completions to generate.
Maximum output tokens. Bounded by the model's context window.
Alias for max_tokens.
Up to a few stop sequences (string or array of strings).
For more reproducible sampling.
Penalize repeated tokens by frequency.
Penalize tokens that have appeared.
Penalize repetition.
Bias specific tokens.
Return log probabilities.
How many top log probabilities to return per token.
{ "type": "json_object" } or { "type": "json_schema", ... } for structured output.
Function definitions the model may call.
auto, required, none, or a specific function.
Allow the model to call multiple tools in parallel.
Reasoning effort for reasoning-capable models.
A stable identifier for the end user.
Up to 2 backup model ids tried in order when the primary fails with a transient error (429/timeout/5xx). Billing uses the model that actually served; the X-Omnia-Fallback-From response header names the model it fell back from. Gateway feature — never forwarded to the model.
2