API Error: 400 adaptive thinking is not supported on this model
The request asked a Claude 4.5 or older model, which only does extended thinking, for adaptive thinking. Send type enabled with budget_tokens, or switch to a newer model.
Summary
- Opus 4.5, Sonnet 4.5 and Haiku 4.5 accept only extended thinking with a fixed budget_tokens and reject type adaptive.
- Claude Code asks for adaptive thinking on Opus 4.6, Sonnet 4.6, Haiku 5.5, Fable 5 and later models, so a gateway that maps those names to an older model fails.
- On Bedrock or Google Cloud with a custom model ID, declare the model's real capabilities with ANTHROPIC_DEFAULT_*_MODEL_SUPPORTED_CAPABILITIES.
- Claude Code 2.1.76 fixed this error for non-standard model strings, so update an old install first.
On this page
The model only does extended thinking
API Error: 400 adaptive thinking is not supported on this model
Newer Claude models think in adaptive mode, thinking: {"type": "adaptive"}, and set depth with output_config.effort. Older ones only have extended thinking with a fixed token budget. Anthropic's thinking troubleshooting page lists which reject what:
| Model | Thinking it accepts | Rejected with 400 |
|---|---|---|
| Claude Opus 4.5, Sonnet 4.5, Haiku 4.5 | Extended only | "adaptive" |
| Claude Opus 4.6, Sonnet 4.6 | Adaptive, extended (deprecated) | None |
| Claude Opus 4.7 and later, Sonnet 5, Haiku 5.5 and other 5.x models | Adaptive (Sonnet 5.5 also between_tools) |
"enabled", and on several also "disabled" |
So the request named a 4.5-generation model, or something that resolves to one, while asking for adaptive thinking.
Fix it in your own request
Keep the model and switch to extended thinking, using the shape in Anthropic's extended thinking guide:
{
"model": "claude-sonnet-4-5-20250929",
"max_tokens": 16000,
"thinking": { "type": "enabled", "budget_tokens": 10000 },
"messages": [{ "role": "user", "content": "Review this function for race conditions." }]
}
budget_tokens has to be lower than max_tokens. If you would rather keep adaptive thinking, move to a model that supports it; Opus 4.6 and Sonnet 4.6 accept both modes, which makes them the smallest step up. Code that serves several models should choose the thinking shape per model instead of sending one value to all of them.
When Claude Code prints it
Claude Code chooses the thinking mode from the model name it thinks it is calling. Three situations produce this 400:
- An old Claude Code with a non-standard model string. The Claude Code changelog for 2.1.76 lists a fix for exactly this error. Run
claude update. - A gateway that serves an older model under a newer name. Claude Code requests adaptive reasoning for Claude Opus 4.6, Sonnet 4.6, Haiku 5.5, Fable 5 and later models, and the gateway troubleshooting table puts 400s naming
thinkingoradaptive(includingInput tag 'adaptive' found) down to an upstream that does not accept it. The fix is on the gateway: upgrade its upstream model. On Opus 4.6 and Sonnet 4.6,CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1also works. - A cloud provider with a custom model ID, such as a Bedrock ARN. Claude Code guesses features from the ID, and a custom ID may not match. With
CLAUDE_CODE_USE_BEDROCK,CLAUDE_CODE_USE_VERTEXor Foundry, declare what the model supports, as the model configuration page shows. For a custom ARN that serves Opus 4.5:
export ANTHROPIC_DEFAULT_OPUS_MODEL='arn:aws:bedrock:us-east-1:123456789012:custom-model/abc'
export ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES='effort,thinking'
Leaving adaptive_thinking out of the list stops Claude Code from asking for it on that model. These capability variables do nothing behind an ANTHROPIC_BASE_URL gateway.
The opposite mismatch, a new model rejecting "enabled" or "disabled", is on the Sonnet 5.5 between_tools page and the version-required page. To find out which model a relay really serves behind a given name, see how to check that an LLM API relay serves the model you pay for.