Skip to main content
Reasoning models generate intermediate thinking tokens before their final response. Model families differ in whether reasoning can be disabled, how effort levels behave, and how reasoning is returned. Reasoning tokens count toward max_completion_tokens and the completion-token usage reported by the API.

Reasoning format

Use reasoning_format to control how supported models return reasoning. Format support is model-specific:
For kimi-k2.7-code, do not combine reasoning_format set to raw with response_format types json_object or json_schema.

Parsed response

For streaming responses, reasoning arrives in 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.
To disable reasoning for a simpler request:
Do not send Qwen-native parameters such as 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

kimi-k2.7-code is currently available only for customer trials. Reasoning is always enabled. The API accepts reasoning_effort for client compatibility but ignores its value, including none.
Kimi defaults to parsed reasoning and also supports raw. It does not support hidden. clear_thinking is not implemented and should not be sent.

GPT OSS 120B

Use reasoning_effort to select low, medium, or high. The default is medium.
GPT OSS supports parsed, raw, and hidden reasoning formats. When using raw, reasoning and final content are concatenated without separators.

Gemma 4 31B

Reasoning is disabled by default for gemma-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.