Moving from Claude Sonnet 4.5 to 5.5? budget_tokens returns a 400. Change the request, not just the ID.
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 thinking took a token budget:
client.messages.create( model="claude-sonnet-4-5-20250929", max_tokens=16000, thinking={"type": "enabled", "budget_tokens": 8000}, messages=messages, ) On Sonnet 5.5, budget_tokens isn't accepted. It's rejected with a 400. Thinking is adaptive: the model decides how much to think.
client.messages.create( model="claude-sonnet-5-5", max_tokens=16000, thinking={"type": "adaptive"}, messages=messages, ) Why a find-and-replace is dangerous here
The diff looks perfect: one string changed. We'd approve it too. Review approves it. Your tests pass, because they mock the client and never send the request. Then the first real call returns a 400, and you're debugging on deadline day.
The checklist
- Search for
budget_tokensnext to every model ID you change, including in shared client wrappers and config files. - Switch to
thinking: {type: "adaptive"}. - Re-run your evaluations. A new model answers differently even when the call succeeds: length, format, refusals, tool use.
- Send one real request from the deployed app before you call it done.
- Ship before the 30th, not on it.
Also check the other places Sonnet 4.5 lives: claude-sonnet-4-5 on Azure and on Google Vertex AI ends the same day.
Versyka finds every place the old ID appears, config included, and opens the swap as a pull request you review.
Is extended thinking in your production code, or only in experiments?