LLM API Guide

API Error: 400 To turn thinking off on this model, send between_tools

Claude Sonnet 5.5 rejects thinking type disabled at every effort level. Send thinking type between_tools at effort high or below, or leave thinking out to get adaptive thinking.

Summary

  1. On Claude Sonnet 5.5, between_tools is the lowest thinking setting; disabled and enabled both return a 400.
  2. between_tools works only at effort low, medium or high. At xhigh or max, use adaptive thinking.
  3. With between_tools, a per-message effort that differs from the level in effect is rejected; vary effort only under adaptive thinking.
  4. In Claude Code, update to v2.1.284 or later for Sonnet 5.5 and turn thinking back on if you switched it off.
On this page

Replace disabled with between_tools

The full message is:

text
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.

Claude Sonnet 5.5 cannot turn thinking fully off. Anthropic's list of common validation errors says that thinking: {"type": "disabled"} returns this 400 on Sonnet 5.5 at every effort level, and that between_tools is the lowest setting it accepts. Change the request:

json
{
  "model": "claude-sonnet-5-5",
  "max_tokens": 1024,
  "thinking": { "type": "between_tools" },
  "output_config": { "effort": "high" },
  "messages": [{ "role": "user", "content": "Summarize the failing test output." }]
}

With between_tools the model writes no up-front thinking. The short progress notes it writes between tool calls still come back as thinking blocks, so code that reads only the first content block, or drops thinking blocks before sending the history back, needs to handle them.

If you only wanted to keep thinking text out of responses, keep adaptive thinking and set display: "omitted" on the thinking configuration instead of turning thinking off.

Keep effort at high or below

Two more 400s follow from the same switch. The thinking troubleshooting page lists both:

text
output_config.effort 'xhigh' is not supported when thinking is disabled on this model. Use effort 'high' or below, or enable thinking.

Anthropic's effort page says between_tools works at low, medium and high effort only. The message says "thinking is disabled" even though you sent between_tools, because that setting has no up-front thinking. Lower the effort, or use adaptive thinking for xhigh and max.

text
messages.N: output_config.effort 'low' differs from the 'high' in effect before it; effort cannot change when thinking is disabled on this model. Use effort 'high', or enable thinking.

With between_tools, a per-message output_config.effort that changes the level is rejected; messages.N is the message that tried. Remove that per-message effort or set it to the level already in effect.

"Enable thinking" in both messages means adaptive thinking: omit thinking, or send {"type": "adaptive"}. Sonnet 5.5 rejects {"type": "enabled"} with a 400 of its own. To vary effort from turn to turn, Anthropic's advice is to use adaptive thinking.

Send between_tools only to Sonnet 5.5

No other model accepts the value. Sent to Opus 5.5, Haiku 5.5 or any other model, it fails with:

text
"thinking.type.between_tools" is not supported for this model.

If one code path serves several models, set between_tools only when the model is claude-sonnet-5-5, and omit thinking or use a value the model accepts elsewhere. Claude Haiku 5.5 still accepts {"type": "disabled"} at effort high or below; Claude Opus 5.5 thinks on every request and accepts neither disabled nor between_tools.

When Claude Code prints it

Claude Code builds the request itself, so the fix is in its settings and version:

  • Check that you are on a version that knows Sonnet 5.5. The Claude Code error reference gives v2.1.284 as the minimum. Run claude --version, then claude update.
  • Check whether thinking is switched off. MAX_THINKING_TOKENS=0, --thinking disabled and the per-model thinking toggle turn thinking off on models that think by default. Unset the variable or switch thinking back on.
  • The Claude Code changelog for v2.1.281 notes a fix for Alt+T and /config offering to turn thinking off on models that cannot do it; thinking now stays on there.

For the reverse problem, an older model refusing adaptive thinking, see adaptive thinking is not supported on this model. Effort errors from an organization cap are on the Invalid effort level page, and the other Claude Code 400s are collected on our Claude Code API Error 400 page.

Sources and checks

  1. Claude API errors
  2. Troubleshooting thinking
  3. Effort
  4. Claude Code error reference
  5. Claude Code changelog