Create a chat completion
Generate a chat completion from a sequence of messages. Returns a ChatCompletion object, or a server-sent events stream of ChatCompletionChunk deltas when stream=true. Supports tool calling, structured output via response_format, and reasoning controls.
Authorizations
API key provided as a Bearer token: Authorization: Bearer <api_key>. Get an API key at https://platform.inceptionlabs.ai.
Body
The model to use for the chat completion.
Maximum number of tokens to generate.
1 <= x <= 50000What sampling temperature to use, between 0.5 and 1. Higher values make the output more random; lower values make it more focused and deterministic. Values outside this range are reset to 0.75 and a warning is returned in the response.
0.5 <= x <= 1A list of sequences where the API will stop generating further tokens. The returned text will not contain the stop sequences.
A list of tools the model may call. Use this to provide functions the model can generate JSON arguments for.
Controls tool selection: 'auto' (model decides, default when tools present), 'required' (model must call one), or 'none' (model must not call one).
auto, required, none Whether to stream the response.
Options that control streaming behavior.
Whether to show the diffusion effect in the streamed response.
Extra parameters passed to the model (OpenAI-compat passthrough).
Enable flag for more realtime workloads that require lower TTFT/TTFAT.
An object specifying the format that the model must output.
- ResponseFormatText
- ResponseFormatJSONObject
- ResponseFormatJSONSchema
Request a summary of the model's reasoning process.
Wait for all reasoning summaries to complete before finishing the response.
Constrains the effort spent on reasoning before the model responds.
instant, low, medium, high Response
Successful response. Returns a JSON object when stream=false, or a server-sent events stream of ChatCompletionChunk objects (terminated by data: [DONE]) when stream=true.
"chat.completion"Summary of reasoning process if requested and available.