Skip to content
Get API key API key

Reasoning

For models that support reasoning (chain-of-thought), you can control the depth of reasoning with the reasoning_effort parameter.

What you’ll learn:

  • How to tell whether a model supports reasoning control
  • How to use the reasoning_effort parameter
  • How to disable reasoning for Qwen 3.6 models

Accepted reasoning_effort values and the datasheet default:

Model ID reasoning_effort Datasheet default
Claude Opus 5.5 claude-opus-5.5 none, minimal, low, medium, high, xhigh, max Not listed
Claude Sonnet 5.5 claude-sonnet-5.5 none, minimal, low, medium, high, xhigh, max Not listed
DeepSeek V4.1 Flash DeepSeek-V4.1-Flash none, minimal, low, medium, high, xhigh, ultra, max Not listed
Gemini 3 Flash gemini-3-flash none, minimal, low, medium, high high
Gemini 3.5 Flash gemini-3.5-flash none, minimal, low, medium, high medium
Gemini 3.8 Flash gemini-3.8-flash low, medium, high medium
Gemma 4 gemma-4-31B-it-FP8 low, medium, high Not listed
GLM 5.3 GLM-5.3 none, high, max max
GLM 5.3 Flash GLM-5.3-Flash low, high, max max
GPT-5.6 Sol gpt-5.6-sol none, low, medium, high, xhigh medium
GPT-5.6 Terra gpt-5.6-terra none, low, medium, high, xhigh medium
GPT-6 Luna (>272k) gpt-6-luna-long-context none, low, medium, high, xhigh medium
GPT-6 Luna (≤272k) gpt-6-luna none, low, medium, high, xhigh medium
GPT-6.1 Sol (>272k) gpt-6.1-sol-long-context low, medium, high, xhigh medium
GPT-6.1 Sol (≤272k) gpt-6.1-sol low, medium, high, xhigh medium
GPT-OSS 120B gpt-oss-120b low, medium, high medium
Mistral Small 4 Mistral-Small-4-119B-2603 none, high none
Qwen 3.6 35B FP8 Qwen-3.6-35B-FP8 none, low, medium, high Not listed
Qwen 3.8 27B FP8 Qwen3.8-27B-FP8 none, low, medium, xhigh low

A few models are exceptions worth knowing about:

  • DeepSeek V4.1 Flash reasons by default, when the request sends no reasoning_effort. none turns reasoning off. The other values in the table all switch it on; how far they change its depth is not documented. The reasoning text is in message.reasoning_content.
  • Mistral models accept only none and high. Sending low or medium returns HTTP 400 with reasoning_effort=... is not supported by Mistral models.
  • Some newer Anthropic models reject reasoning_effort and control thinking differently; the error names the alternative to use.
  • Code-specialised models may reject the parameter outright with The requested operation is unsupported.

If a model rejects reasoning_effort, check its entry in Chat & reasoning models.

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="GLM-5.3",
messages=[
{"role": "system", "content": "You are a concise and helpful assistant."},
{"role": "user", "content": "What is the capital of France?"},
],
reasoning_effort="high", # GLM-5.3 accepts "none", "high", or "max"
)
print(response.choices[0].message.content)

The sample uses reasoning_effort="high" on GLM-5.3. The datasheet lists none, high, and max for that model. Do not assume every model accepts the same values.

For Qwen 3.6 models, set reasoning_effort="none" to disable reasoning. The prompt keyword /no_think does not switch it off: the model still reasons.

Python
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="Qwen3.6-35B-A3B-FP8",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is your name?"},
],
reasoning_effort="none",
)
print(response.choices[0].message.content)

The response then reports reasoning_tokens: 0 in usage.

Known limits:

  • Mistral models accept only none and high. Sending low or medium returns HTTP 400 with reasoning_effort=... is not supported by Mistral models.
  • Some newer Anthropic models reject reasoning_effort. The error names the alternative.
  • Some code-specialised models reject the parameter with The requested operation is unsupported.
  • GLM-5.3 accepts reasoning_effort="none" without an error, but still reasons: the response carries reasoning and reports reasoning tokens.