Fix Claude API "thinking.type.disabled" is not supported
Claude API 400 "thinking.type.disabled is not supported for this model": thinking is always on for that model. Remove the field; Sonnet 5.5 needs between_tools.
"thinking.type.disabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.You sent thinking: {"type": "disabled"} to a model whose thinking is always on, so it cannot be turned off. The status is 400 and the error type is invalid_request_error. Remove the thinking field and the model runs with adaptive thinking; control depth with output_config.effort. The message and the fix differ by model, so sort that out in step 1.
[1] Match your error message and model against the official errors page.
| Model | Sending "disabled" | Message |
|---|---|---|
| Fable 5.1 · Mythos 5.1 · Fable 5 · Mythos 5 · Opus 5.5 | Always 400 | The message above (Use "thinking.type.adaptive" and …) |
| Mythos Preview | Always 400 | The step 4 message (Thinking defaults to adaptive mode …) |
| Sonnet 5.5 | 400 at every effort level | The step 5 message (To turn thinking off on this model, …) |
| Opus 5 · Haiku 5.5 | Accepted at effort high or below | 400 when combined with xhigh or max |
| Sonnet 5 · Opus 4.8 · Opus 4.7 | Accepted | Not this error |
The first two rows are the ones whose message starts with "thinking.type.disabled" is not supported. If your message reads output_config.effort 'xhigh' is not supported when thinking is disabled …, that is a different error: see Fix Claude API "effort 'xhigh' is not supported when thinking is disabled".
[2] Delete the thinking field from the request. The docs say that omitting thinking runs the request with adaptive thinking.
{ "model": "<model-id>", "max_tokens": 4096, "thinking": {"type": "disabled"}, "messages": [{"role": "user", "content": "..."}]}{ "model": "<model-id>", "max_tokens": 4096, "messages": [{"role": "user", "content": "..."}]}Keep your own model id where <model-id> is.
[3] If you wanted less thinking for speed or cost, lower output_config.effort. The docs describe no way to turn thinking off on these models, so effort is the supported control. The accepted values and defaults differ by model; check the per-model table on the effort page.
{ "model": "<model-id>", "max_tokens": 4096, "output_config": {"effort": "low"}, "messages": [{"role": "user", "content": "..."}]}The line added in this request is output_config. Not every model necessarily accepts low. If it is rejected, pick a value the error message allows. If you only wanted thinking text out of the response, do not disable thinking; set display: "omitted" in the thinking configuration, which is what the docs recommend.
[4] On Mythos Preview, this message points you to extended thinking. It is the only one of these models that accepts enabled with budget_tokens.
"thinking.type.disabled" is not supported for this model. Thinking defaults to adaptive mode when not specified; use "thinking.type.enabled" with "budget_tokens" for extended thinking.If you did not need thinking off, omit the field and get the default adaptive mode. If you need a fixed budget, send {"type": "enabled", "budget_tokens": N}. Sending that enabled to other models gives the thinking.type.enabled 400.
[5] On Sonnet 5.5, send between_tools instead of disabled. The model does no up-front thinking, and the short updates it writes between tool calls come back as thinking blocks. The message reads:
To turn thinking off on this model, send "thinking": {"type": "between_tools"} instead of {"type": "disabled"}. The model does not think before responding. The short updates it writes between tool calls come back as thinking blocks.{ "model": "claude-sonnet-5-5", "max_tokens": 4096, "thinking": {"type": "between_tools"}, "messages": [{"role": "user", "content": "..."}]}The line added above is thinking. between_tools is accepted only at effort high or below, and only if no per-message effort changes the level in effect mid-conversation. With xhigh or max, or a changed level, you get the other 400 from step 1; use adaptive thinking if effort must vary per turn. Haiku 5.5 disabled has the same two conditions. In the other direction, sending between_tools to any model except Sonnet 5.5 returns "thinking.type.between_tools" is not supported for this model., so drop it when you switch models.
[6] If you can pick the model, first ask whether thinking really has to be off. By the docs' per-model table, disabled is accepted on Sonnet 5, Opus 4.8 and Opus 4.7, and on Opus 5 and Haiku 5.5 only at effort high or below. Troubleshooting thinking keeps that table in one place.