Anthropic API · api · fg-0469

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

400 invalid_request_error: "thinking.type.enabled" is not supported for this model

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

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" },

Affects: 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

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp