# Claude Sonnet 4.5 Retires Nov 30: How to Migrate

> Claude Sonnet 4.5 deprecation: the model retires on 30 November 2026. Step-by-step migration to Claude Sonnet 5.5 and the API changes that return 400 errors.

- Author: Naman Gundaniya (https://hellonaman.com)
- Published: 2026-11-25
- Updated: 2026-11-25
- Canonical URL: https://hellonaman.com/blog/claude-sonnet-4-5-retirement

Anthropic retires `claude-sonnet-4-5-20250929`, and the undated `claude-sonnet-4-5` alias, on 30 November 2026 on the Claude API and its other Anthropic-operated platforms. After that, requests to it fail. The recommended replacement is `claude-sonnet-5-5`. Changing the model ID is not enough: sampling parameters, thinking budgets and assistant prefill all return 400 errors on Sonnet 5.5.

As of late November 2026 that leaves days, not weeks. This post is the checklist I would hand a team that still has Sonnet 4.5 in production: how to find every call, what breaks, what it costs after the switch, and what to change in Claude Code. Everything below comes from Anthropic's own documentation, linked where it is used.

## When exactly does Claude Sonnet 4.5 stop working, and where?

Claude Sonnet 4.5 retires on 30 November 2026, according to Anthropic's [model deprecations page](https://platform.claude.com/docs/en/about-claude/model-deprecations). Anthropic notified developers on 30 September 2026, and the page states that the retirement "includes `claude-sonnet-4-5`, the same model's ID without a date". Once a model is retired, "requests to it fail".

Where you call the model changes the date:

| Platform | Is 30 November 2026 your date? |
| --- | --- |
| Claude API | Yes |
| Claude Platform on AWS | Yes |
| Claude Models on Google Cloud (Anthropic managed) | Yes |
| Microsoft Foundry | Yes |
| Amazon Bedrock | No, Bedrock sets its own schedule |
| Claude Models on Google Cloud (Google managed) | No, Google sets its own schedule |

The deprecations page also says Claude Code uses the Claude API, including when you sign in with a Claude plan, so the 30 November date applies there unless Claude Code is pointed at another platform. If you run on Bedrock or Google-managed Google Cloud, check that provider's model table rather than assuming you have more time. If you are still choosing between them, my comparison of [Claude on AWS, Azure or Google Cloud](https://hellonaman.com/blog/claude-on-aws-azure-or-google-cloud) covers the trade-offs.

## How do you find every place your code still calls Sonnet 4.5?

Start with Anthropic's usage export, then search your code and config. The deprecations page describes the audit: open the Usage page in the Claude Console, click Export, and review the CSV, which breaks usage down by API key and model.

That tells you which keys still send traffic. To find the code behind them:

- Search every repository for `claude-sonnet-4-5`, which matches both the dated ID and the alias.
- Search environment files, secrets managers, feature flags and database rows that store a model name. Model IDs often live in config, not code.
- Search no-code tools and workflow platforms where someone pasted a model name into a node.
- Check Claude Code settings, subagent definitions, skills and commands (covered below).
- Match each export row to an owner. A key with traffic and no owner is the one that breaks silently on 1 December.

On client projects I also put the model ID behind one config value per workload before changing anything. It turns this migration into a one-line change per service, and it means the next deprecation notice costs an afternoon instead of a hunt through the codebase. If a key in the export cannot be traced to any code, rotate it; that is safer than guessing.

## What breaks when you switch from Sonnet 4.5 to Sonnet 5.5?

Several request settings that Sonnet 4.5 accepts return a 400 error on Sonnet 5.5. Anthropic's [Sonnet 5.5 migration guide](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide) lists them for each starting model. These are the ones that hit code written for Sonnet 4.5:

| Sonnet 4.5 code | On Sonnet 5.5 | Change to |
| --- | --- | --- |
| `temperature`, `top_p` or `top_k` set | 400 error | Remove them; steer with the prompt |
| `thinking: {"type": "enabled", "budget_tokens": N}` | 400 error | Adaptive thinking plus `output_config.effort` |
| Last message is a prefilled assistant turn | 400 error | Structured outputs, or move the instruction into the user turn |
| `tool_choice` of type `any` or `tool` | 400 error | `tool_choice: auto` with `strict: true` on the tool |
| No `thinking` field | Thinking now runs by default | Send `thinking: {"type": "between_tools"}` to keep it off |
| `output_format` parameter | 400 error without a beta header | `output_config.format` |
| `interleaved-thinking-2025-05-14` header | Not needed | Remove it |
| `computer_20250124` tool | 400 error | `computer_toolset_20260801` |

Three behaviour changes do not error but will bite if you miss them:

- **Content order.** With thinking on, a response can start with `thinking` blocks, so code that reads `content[0].text` breaks. Read blocks by `type`.
- **Text between tool calls.** Longer notes the model writes between tool calls now come back as `thinking` blocks, so a UI that showed them goes quiet.
- **New refusal categories.** Sonnet 5.5 can stop with `stop_reason: "refusal"` and a category such as `"cyber"` or `"general_harms"`. The guide notes that real-time cyber safeguards are new for code coming from Sonnet 4.5. Handle the stop reason and decide whether to configure fallback.

## How should you set effort after the switch?

Set `output_config.effort` explicitly, because Sonnet 4.5 had no effort parameter and Sonnet 5.5 defaults to `high` on the Claude API. The migration guide says there is no fixed mapping from an old thinking budget to an effort level, so it recommends running your evaluations at two or three levels.

Anthropic's starting points, from the same guide:

- **Agentic coding and multistep tool use:** start at `medium` for well-specified tasks, `high` for harder or longer ones.
- **Chat and other latency-sensitive work:** start at `medium` or `low`.
- **Everything else:** start at `high`.

Sonnet 5.5 has five levels: `low`, `medium`, `high`, `xhigh` and `max`. If you keep thinking off with `between_tools`, only `low` to `high` are accepted, and effort cannot change mid-conversation.

![Six-step migration path from Claude Sonnet 4.5 to Sonnet 5.5. Step 1, audit: export usage from the Claude Console by API key and model. Step 2, swap the model ID to claude-sonnet-5-5. Step 3, remove settings that return 400 errors: temperature, top_p, top_k, thinking budgets, prefill and forced tool choice. Step 4, set effort explicitly and choose adaptive or between_tools thinking. Step 5, re-run evals at two or three effort levels and recount tokens. Step 6, update Claude Code settings and subagent definitions, then ship before 30 November 2026.](https://hellonaman.com/blog/claude-sonnet-4-5-retirement/diagram.svg)

*The six steps in order. Steps 3 and 4 are where most 400 errors come from.*

## Will Sonnet 5.5 cost more or less than Sonnet 4.5?

Sonnet 5.5 has lower list prices than Sonnet 4.5, but it counts more tokens for the same text, so measure before you assume a saving. Anthropic's [pricing page](https://platform.claude.com/docs/en/about-claude/pricing) lists, per million tokens:

| Model | Input | Output | Cache hit |
| --- | --- | --- | --- |
| Claude Sonnet 4.5 | $3 | $15 | $0.30 |
| Claude Sonnet 5.5 | $2 | $10 | $0.10 |

The migration guide says Sonnet 5.5 produces "about 30 percent more tokens" than Sonnet 4.5 for the same text, depending on content. As rough arithmetic, a third off the price with 30% more tokens comes to about 13% less for the same input and visible output. Thinking can eat that: with thinking on by default and billed as output, a workload that ran without thinking on Sonnet 4.5 can cost more unless you set effort low or use `between_tools`. Images also cost more, about 2.5 times the tokens for a 2000 by 1500 image, because Sonnet 5.5 reads them at higher resolution.

Anthropic's [Sonnet 5.5 page](https://www.anthropic.com/claude-sonnet-5-5) says it can cost "up to 30% less per task" than Sonnet 5, because it typically needs fewer tokens per task. That compares against Sonnet 5, not Sonnet 4.5, and your own numbers matter more than either claim. Use the token counting endpoint on real prompts, then compare cost per finished task in your evals. My post on [AI agent evaluation](https://hellonaman.com/blog/ai-agent-evaluation) covers building that test set.

## What do you need to change in Claude Code?

Update Claude Code first, then change the model everywhere it is set, including subagents. The deprecations page gives this order: update Claude Code, because a newer model can need a newer version; check which model you are using, even if you set none; then replace the old model "everywhere you set a model, including subagent definitions", and ask your administrator to change any model they set.

The [Claude Code model configuration docs](https://code.claude.com/docs/en/model-config) list the places to look:

- `/model` and the `--model` flag
- the `ANTHROPIC_MODEL` environment variable
- the `model` field in `settings.json`
- alias pins such as `ANTHROPIC_DEFAULT_SONNET_MODEL`
- the `model` field in subagent, skill and command frontmatter
- `fallbackModel` chains

One detail worth checking: the same page shows the `sonnet` alias resolving to Sonnet 4.5 on Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, not Sonnet 5.5. On Foundry, which follows Anthropic's 30 November date, a team relying on that alias should pin a full model name. If you keep project rules for agents in a file, my guide to [writing a CLAUDE.md](https://hellonaman.com/blog/write-a-claude-md) shows where to record the pinned model so the next person does not undo it.

After retirement, the deprecations page says Claude Code shows an error beginning "There's an issue with the selected model". If a fallback chain is set, it switches to the next model, then tries Sonnet 4.5 again on your next message.

## Work with me

I build and maintain Claude-based agents and integrations for teams abroad from India, and model migrations with evals are routine work. See [AI integration](https://hellonaman.com/services/ai-integration) or [AI agent development](https://hellonaman.com/services/ai-agent-development) if you want help getting off Sonnet 4.5 before the deadline.

## FAQ

### Can I keep using Claude Sonnet 4.5 after 30 November 2026?

Not on the Claude API, Claude Platform on AWS, Anthropic-managed Google Cloud or Microsoft Foundry, where requests to a retired model fail. Amazon Bedrock and Google-managed Google Cloud set their own retirement dates, so check their model tables if you call Sonnet 4.5 there.

### Is Claude Sonnet 4.6 a safer stepping stone than Sonnet 5.5?

Sonnet 4.6 is active on the deprecations page with retirement not sooner than 17 February 2027, so it buys a few months. It still rejects prefill and has deprecated thinking budgets, and you would migrate again soon after. Anthropic recommends Sonnet 5.5 as the replacement.

### Do Claude Managed Agents need code changes?

The Sonnet 5.5 migration guide says Managed Agents users need no changes beyond updating the model name. The breaking changes in this post apply to code that calls the Messages API directly.

### Can Claude Code do the migration for me?

The migration guide suggests running `/claude-api migrate this project to claude-sonnet-5-5` in Claude Code. Treat the result like any other change: review the diff and run your evals before you deploy it.

## Sources

- [model deprecations page (platform.claude.com)](https://platform.claude.com/docs/en/about-claude/model-deprecations)
- [Sonnet 5.5 migration guide (platform.claude.com)](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide)
- [pricing page (platform.claude.com)](https://platform.claude.com/docs/en/about-claude/pricing)
- [Sonnet 5.5 page (anthropic.com)](https://www.anthropic.com/claude-sonnet-5-5)
- [Claude Code model configuration docs (code.claude.com)](https://code.claude.com/docs/en/model-config)
