Claude Sonnet 5.5 is the replacement to move to now, because Claude Sonnet 4.5 no longer answers on the Claude API. Anthropic retired Claude Sonnet 4.5 from the Claude API on 30 November 2026. Requests to claude-sonnet-4-5-20250929 and the alias claude-sonnet-4-5 now return a 404 not_found_error, so any code or automation that still names the old model will fail outright. This tutorial covers the switch in order: find every reference, update the model name, fix the three code changes Sonnet 5.5 requires, recheck your token budget, and test.
What retired, and where the retirement applies
The retirement covers the Claude API, and it also applies to Claude Platform on AWS, Microsoft Foundry, and Anthropic-managed Google Cloud. If your calls go through any of those routes, they need the same update. Amazon Bedrock is the exception: it keeps Claude Sonnet 4.5 until 8 April 2027. That is a delay, not a reprieve, so plan the same switch there. The Sonnet 4.5 retirement and migration guide sets out the retirement date, the replacement, and the cost changes.
How the price changes with Claude Sonnet 5.5
Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens. Sonnet 4.5 cost $3 per million input tokens and $15 per million output tokens, so the headline rates are lower on the new model. Cache reads are cheaper too: $0.10 per million tokens on Sonnet 5.5, against $0.30 on Sonnet 4.5. On paper, that looks like a straightforward saving.
Step 1: Audit every place Sonnet 4.5 is named
Search your whole project for claude-sonnet-4-5, claude-sonnet-4-5-20250929, and any shorter alias or variable that resolves to Sonnet 4.5. Include code, configuration files, environment variables, prompt templates, scheduled jobs, and no-code automations. Also search your documentation and runbooks, because a guide that still tells a colleague to use Sonnet 4.5 will cause the same failure later, even after the code is fixed.
Make a short list as you search: file name, line or setting, and what the call does. Write the list down before you change anything, so you can tick each reference off and prove that none was missed. While you audit, note whether each call reads text from the response, sets temperature or sampling values, or sends long inputs, because those three cases need the fixes below.
Step 2: Update the model name to Claude Sonnet 5.5
Change the model name in every place on your audit list, and update the environment variable in development, staging, and production in the same session. It is easy to fix production and forget staging, then waste time later wondering why a test still fails. If the name lives in one shared setting, change it once and let every call site inherit the new value. If it is written out in several files, change every copy.
Keep the rest of the call unchanged for the first test, apart from the fixes in the next two steps, which are required rather than optional. Change the model name, run one real request, and read the full response. The guide to using Claude Code in Code Mode and the guide to using Claude Skills over MCP show how model settings can live outside the main code file, so check configuration and tool settings as well as code.
Step 3: Fix the code that reads the reply, because Sonnet 5.5 thinks by default
Sonnet 5.5 thinks by default, and that breaks code which assumes the first block of the response is text. If your code reads content[0].text, it can fail or return the wrong thing when the first block is a thinking block instead of a text block. This is the most common break in this migration, and it is easy to miss in a quick test.
Fix it by reading the response properly: walk through the content blocks and take the text from the blocks whose type is text, instead of assuming the first block holds it. Test with a prompt that needs real reasoning, such as a long document summary, because that is where thinking blocks appear. If you use a helper library that parses responses, check that it handles thinking blocks.
Step 4: Remove temperature, top_p, and top_k from Sonnet 5.5 calls
Setting temperature, top_p, or top_k returns a 400 error on Sonnet 5.5, so remove those settings from every call that now names the new model. Search for them in the same pass as the model name, because they often sit on the line next to it. A setting left in a shared defaults object is a common cause of this error. Test at least one call per workflow after removing the settings.
Step 5: Recheck your token budget under the new tokenizer
The same text counts as roughly 30 percent more tokens under the newer tokenizer in Sonnet 5.5. A prompt that used to fit comfortably now uses more of it, and a long document that used to fit may now need trimming or chunking. Run your longest typical input through the new model and record the token count, then compare it with the old count.
Adjust your budgets and limits from that measurement. If you cap input length, update the cap. If you cache prompts, remember that cache reads are cheaper on Sonnet 5.5, at $0.10 per million tokens against $0.30 before. The guide to building spreadsheets with Claude Sheets and the guide to using Claude Meetings with Google Meet are reminders that long-context workflows are where token counts bite first.
Step 6: Consider Haiku 5.5 for cheap high-volume work
For cheap high-volume work, Haiku 5.5 may be the better replacement. It costs $0.10 per million input tokens and $0.50 per million output tokens. If a task is simple, repetitive, and high volume, such as classification or short summaries, test it on Haiku 5.5 before you default everything to Sonnet 5.5.
Do not move everything to Haiku 5.5 without testing. The right split is usually by task: Sonnet 5.5 for work that needs deeper reasoning, Haiku 5.5 for work that is simple and frequent. The guide to planning with Claude Whiteboards and the guide to using Claude Duet for messages show why a stale model name in a guide misleads the next person who follows it.
Test, then check the long-term position
Test each workflow end to end after the switch, with a real prompt, a real input, and a real output check. Confirm that the response parses and the token count looks right. Watch the first scheduled run after the change too, and keep a short note of what you changed.
Sonnet 5.5 has no retirement sooner than 28 September 2027, so the new model gives you a stable window to plan around. Use it to finish the Bedrock migration before 8 April 2027 as well. Anthropic publishes its model and retirement information, so check the official source when you plan the next change.
FAQs
Why do my Claude Sonnet 4.5 requests return a 404 now?
Claude Sonnet 4.5 was retired from the Claude API on 30 November 2026. Requests to claude-sonnet-4-5-20250929 and the alias claude-sonnet-4-5 now return a 404 not_found_error. Switch to Claude Sonnet 5.5, which is the recommended replacement.
How much does Claude Sonnet 5.5 cost compared with Sonnet 4.5?
Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens, against $3 and $15 for Sonnet 4.5. Cache reads are $0.10 against $0.30. Measure your real costs from a test run, since the same text counts as roughly 30 percent more tokens under the newer tokenizer.
Why does my code break when it reads content[0].text on Sonnet 5.5?
Sonnet 5.5 thinks by default, so the first content block may be a thinking block rather than text. Walk through the content blocks and take the text from the blocks whose type is text, instead of assuming the first block holds it. Test with a prompt that needs real reasoning, where thinking blocks appear.
Can I still set temperature on Sonnet 5.5?
No. Setting temperature, top_p, or top_k returns a 400 error on Sonnet 5.5. Remove those settings from every call that names the new model, including any shared defaults object. If you need more deterministic output, tighten the prompt or ask for a specific format instead.

