Anthropic API · api · fg-0469

400 "thinking.type.enabled" is not supported after switching to a newer Claude model

If you see 400 invalid_request_error: "thinking.type.enabled" is not supported for this model, the cause and the fix for Anthropic API are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
400 invalid_request_error: "thinking.type.enabled" is not supported for this modelThe same request with thinking budget_tokens worked on Claude Sonnet 4.5 or Opus 4.5
Cause
Manual extended thinking (type enabled with budget_tokens) is rejected by Claude 4.7 and every later model, which only take adaptive thinking. It was deprecated but still accepted on the 4.6 models, so code copied from older examples breaks on the model swap.
Fix
Remove budget_tokens, send thinking type adaptive (or omit thinking on models where it is on by default), and control depth with output_config.effort instead of a token budget.
Apply
// before: thinking: { type: "enabled", budget_tokens: 10000 } thinking: { type: "adaptive" }, output_config: { effort: "medium" },
Affected
Claude Opus 4.7 and later, Sonnet 5 and 5.5, Haiku 5.5, Fable 5.1, as of 2026-10; deprecated but accepted on Opus 4.6 and Sonnet 4.6
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun