Skip to the page
Tecyfy

Claude Sonnet 4.5 retires on 30 November 2026: how to move to Sonnet 5.5

Requests to claude-sonnet-4-5-20250929 fail on the Claude API from 30 November 2026. The replacement, Claude Sonnet 5.5, costs less per token but counts about 30% more tokens, thinks by default and rejects prefill, temperature and thinking budgets. A 5-step runbook, with what changes for the features you use.

Tecyfy · Published · 8 min read

A hand moving a plug from an old socket tagged 4.5 to a new wall outlet tagged 5.5

Claude Sonnet 4.5 stops answering on the Claude API on 30 November 2026. After that day, every request to claude-sonnet-4-5-20250929 fails. Anthropic's named replacement is Claude Sonnet 5.5 (claude-sonnet-5-5), which costs a third less per token. It is not a drop-in swap, though: prefill, temperature, thinking budgets and forced tool choice all return a 400 error on it, and it thinks before answering unless you tell it not to.

Changing one string takes a minute. Finding the places that break takes longer, so start now rather than in the last week of November.

The dates

ModelStatusRequests fail from
Claude Sonnet 4.5Deprecated 30 September 202630 November 2026
Claude Opus 4.5ActiveNot sooner than 24 November 2026
Claude Haiku 4.5ActiveNot sooner than 15 October 2026

These dates cover the Claude API, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry. Amazon Bedrock and Claude Models on Google Cloud (Google managed) set their own, so if you call Sonnet 4.5 there, check that platform's page instead. Anthropic notifies customers with active deployments at least 60 days before it retires a publicly released model, and this deprecationModel DeprecationThe notice that a model will be switched off on a set date. Until then it still answers; after its retirement date, every request to it fails, so code must move to a newer model first. notice went out on 30 September.

Step 1: find every caller

In the Claude Console, open Usage and export it. The CSV breaks usage down by API key and model, so each key that still sends Sonnet 4.5 traffic stands out, including the ones in a forgotten cron job. Then search your code and configuration, including environment variables and prompt files, for claude-sonnet-4-5.

Step 2: see what breaks for you

Tick what your code does today and see what each one needs on Sonnet 5.5:

Try itMoving from Sonnet 4.5 to 5.5: what breaks in your code
My code
  • 400 errorPrefill the answer

    A partial assistant turn at the end of the messages returns 400.

    Before: messages=[..., {"role": "assistant", "content": "{"}]

    After: output_config={"format": {"type": "json_schema", "schema": SCHEMA}}

  • Changes quietlyRead content[0].text

    Thinking is on by default, so the first block can be a thinking block. Read blocks by type.

    Before: text = response.content[0].text

    After: text = next(b.text for b in response.content if b.type == "text")

  • Changes quietlyA tight max_tokens

    The same text is about 30% more tokens, and thinking counts too, so answers can be cut short.

    Before: max_tokens=800

    After: max_tokens=2000 # recount with the token counting endpoint

1 of the things your code does return a 400 error on Sonnet 5.5, and 2 more still answer but behave differently. Fix the errors first: they show up on the first call.

From Anthropic's migration guide for Sonnet 5.5. The Claude API skill in Claude Code applies most of these edits: /claude-api migrate this project to claude-sonnet-5-5.

The changes most teams hit:

  • Thinking is on by default. A request with no thinking field now thinks first. The response can start with a thinking block, so response.content[0].text breaks. Read blocks by type. To keep answers immediate, send thinking: {"type": "between_tools"}; {"type": "disabled"} returns 400 on this model.
  • Thinking budgets are gone. budget_tokens returns 400. Set output_config.effort instead: low, medium, high (the default), xhigh or max. There is no fixed mapping, so test 2 or 3 levels.
  • No prefill. If your last message was a partial assistant turn, for example { to force JSON, it now fails. Use structured outputs (output_config.format) for format and the system prompt for tone.
  • No sampling settings. Remove temperature, top_p and top_k.
  • No forced tool choice. tool_choice of any or tool returns 400. Send auto, mark the tool strict: true, and say in the prompt when to call it.

Anthropic's Claude API skill in Claude Code applies most of these edits for you: /claude-api migrate this project to claude-sonnet-5-5. Review its changes like any other pull request.

Step 3: recount the tokens

Sonnet 5.5 uses a newer tokenizer. The same text produces about 30% more tokens than on Sonnet 4.5, and images can take up to 2.5 times as many. So:

  • max_tokens that just fitted before may now cut answers short, especially because thinking counts against it.
  • A prompt near a context limit is less of a worry: the window grows to 1 million tokens.
  • Prompts as short as 512 tokens can now be cached, down from 1,024, so a short system prompt that never cached may start to.

Run your real prompts through the token counting endpoint on both models rather than estimating.

Step 4: compare the cost on a real day

Sonnet 4.5Sonnet 5.5
Input, per million tokens$3$2
Output, per million tokens$15$10
Tokens for the same text1xabout 1.3x
ThinkingOff unless askedOn by default, billed as output

For the same words, input works out at about 13% cheaper ($2 × 1.3 = $2.60 against $3). Output depends on how much the model thinks, which is why the effort level matters as much as the price. Replay a day of logged requests at the effort you chose, and compare the two bills. Our cost calculator and the Sonnet 5.5 price page give the per-request figures.

Step 5: test the answers, then switch

A newer model gives different answers, not only better ones. Before switching production:

  1. Take 50 to 100 real requests with answers you know are good.
  2. Run them on Sonnet 5.5 at the effort level you picked.
  3. Check the things your users notice: format, length, refusals, tool calls made or skipped.
  4. Move traffic in steps behind a setting you can flip back, while 4.5 still answers.

The eval sample size calculator tells you how many test questions you need before a difference in scores means anything.

Why this happens again

Anthropic regularly retires older models as new ones launch, so the model you build on today will get a deprecation notice too. The teams that find this routine keep the model ID in one setting, not in 40 files, keep a saved set of test requests, and record usage by key so they can see who calls what. Build those once and the next deprecation notice is an afternoon's work.

Questions

When is Claude Sonnet 4.5 retired?
On the Claude API, claude-sonnet-4-5-20250929 was deprecated on 30 September 2026 and retires on 30 November 2026. After that date requests to it fail. The same dates apply on Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry; Amazon Bedrock and Claude Models on Google Cloud (Google managed) set their own schedules.
What replaces Claude Sonnet 4.5?
Anthropic names Claude Sonnet 5.5, model ID claude-sonnet-5-5, as the replacement. It has a 1 million token context window and costs $2 per million input tokens and $10 per million output tokens, against $3 and $15 for Sonnet 4.5.
Will my Sonnet 4.5 code work on Sonnet 5.5 unchanged?
Often not. Sonnet 5.5 returns a 400 error for an assistant prefill, for thinking with budget_tokens, for thinking type disabled and for forced tool choice (any or tool), and temperature, top_p and top_k must be removed. It also thinks by default, so a response can start with a thinking block and code that reads content[0].text breaks.
Is Claude Sonnet 5.5 cheaper than Sonnet 4.5?
Per token, yes: a third less for input and output. But the same text produces about 30% more tokens on Sonnet 5.5, and thinking, now on by default, is billed as output. Recount your real prompts with the token counting endpoint and compare a day of traffic before you assume a saving.
How do I find which of my apps still call Sonnet 4.5?
In the Claude Console, open Usage and export the data: the CSV breaks usage down by API key and by model, so every key still sending claude-sonnet-4-5 requests shows up. Then search your code and configuration for the model ID and its alias.