Reasoning tokens count toward
max_completion_tokens and the completion-token usage reported by the API.
For Dedicated Inference, use the endpoint ID assigned to your organization as the request’s model value.
Reasoning format
Usereasoning_format to control how supported models return reasoning.
Format support is model-specific:
Parsed response
choices[0].delta.reasoning and final-answer text arrives in choices[0].delta.content.
Qwen 3.8 27B
qwen-3.8-27b enables reasoning by default at high effort.
Effort levels select reasoning modes. They do not reserve or guarantee an exact reasoning-token budget.
disable_reasoning, enable_thinking, preserve_thinking, or thinking_budget. Use reasoning_effort and clear_thinking instead.
Multi-turn reasoning and clear_thinking
Chat Completions is stateless, so your application must resend conversation history. When you include an earlier assistant message with its reasoning field, clear_thinking controls whether Qwen receives that historical reasoning:
Kimi K2.7 Code
Reasoning is always enabled forkimi-k2.7-code. The API accepts reasoning_effort for client compatibility but ignores its value, including none.
raw. It does not support hidden. Kimi K2.7 Code does not implement clear_thinking, so do not send it.
Kimi K3
Reasoning is always enabled forkimi-k3. Set reasoning_effort to low, high, or max. The default is max. The values medium and none are not supported.
Kimi K3 supports parsed reasoning only. Omit reasoning_format or set it to parsed; reasoning is returned separately in message.reasoning or streaming delta.reasoning. Do not send raw, hidden, or clear_thinking.
For multi-turn conversations, replay the complete assistant response, including its reasoning and any tool calls. Kimi K3 preserves reasoning history.
GLM 5.3 Flash
Reasoning is always enabled forzai-glm-5.3-flash. Set reasoning_effort to low, high, or max. The default is max. The values medium and none are not supported.
GLM 5.3 Flash defaults to parsed reasoning and also supports raw and hidden. The hidden format omits reasoning from the response while the model still generates and counts reasoning tokens.
GLM 5.3 Flash supports clear_thinking. The default, false, preserves historical assistant reasoning. Set it to true to remove assistant reasoning before the latest user message while retaining the assistant’s final-answer content.
GPT OSS 120B
Usereasoning_effort to select low, medium, or high. The default is medium.
raw, reasoning and final content are concatenated without separators.
Gemma 4 31B
Reasoning is disabled by default forgemma-4-31b.
Gemma 4 does not support
raw, hidden, or clear_thinking.
OpenAI client parameters
reasoning_effort is a standard OpenAI client parameter. Pass Cerebras-specific parameters such as reasoning_format and clear_thinking through extra_body. See OpenAI Compatibility.
