POST /v1/chat/completions endpoint. These models are built for complex, multi-step reasoning tasks, but they come with two key behavioural differences from regular chat models: streaming is not supported, and the system role is not accepted — you must structure your conversation using user and assistant messages only.
Request
POST https://kiosapi.com/v1/chat/completions
Headers
Request Body
string
required
The reasoning model to use. Supported values include
o1-mini, o1-preview, o3, and o3-mini.array
required
An array of message objects forming the conversation. Only
user and assistant roles are supported.number
The maximum number of tokens the model is allowed to generate in its response, including reasoning tokens consumed internally.
boolean
Whether to stream the response. Must be
false — streaming is not supported for o1/o3 models.Example Request
- cURL
- Python
Response
The response follows the standard chat completions shape. Thefinish_reason will be "stop" when the model has completed its reasoning and produced a final answer.
Response Fields
string
The model’s final text response after completing its internal reasoning process.
string
The reason the model stopped generating. Typically
"stop" when a complete response has been produced.number
Total completion tokens used, which may include tokens consumed during the model’s internal reasoning steps.