Tutorial
Moving from Claude Sonnet 4.5 to 5.5? budget_tokens returns a 400. Change the request, not just the ID.
The Brief
- Claude Sonnet 5.5 rejects the budget_tokens parameter used for extended thinking on Sonnet 4.5, returning a 400 error.
- claude-sonnet-4-5-20250929 shuts down on November 30, 2026; Anthropic's named replacement is claude-sonnet-5-5.
- Migrating extended-thinking code requires changing the request structure, not just the model ID.
Why it matters
Developers who only swap the model ID will get 400 errors from requests that still send budget_tokens, and the old model stops working after November 30, 2026.
Who’s affected
- Teams using Claude Sonnet 4.5 with extended thinking
- Developers migrating to claude-sonnet-5-5
What to do
- Replace the claude-sonnet-4-5-20250929 model ID with claude-sonnet-5-5 before November 30, 2026.
- Remove budget_tokens from requests that use extended thinking when calling Sonnet 5.5.
- Claude Sonnet 4.5 (claude-sonnet-4-5-20250929)
- Claude Sonnet 5.5 (claude-sonnet-5-5)
- #claude
- #anthropic
- #llm
- #api migration
- #extended thinking
Don't only swap the ID: Sonnet 5.5 rejects your budget_tokens. claude-sonnet-4-5-20250929 shuts down on November 30, 2026 , and Anthropic's replacement is claude-sonnet-5-5 . If your code uses extended thinking, the swap is more than a rename. What changes On Sonnet 4.5, extended…