Your app's AI feature stopped answering? Claude Sonnet 4.5 was retired on November 30
If Cursor, Claude Code, Bolt, Replit or another AI tool built your app a feature that calls Anthropic's Claude API with your own API key, check which model it names. Anthropic retires Claude Sonnet 4.5 on November 30, 2026. From then on, requests to it fail with a 404 not_found_error, and the AI part of your app stops answering. Switching to the newest model isn't a one-word change: it rejects some settings that worked before. This guide shows how to check in two minutes, the smallest safe fix for today, and what to tell your AI agent.
What changes, and when
- Claude Sonnet 4.5 is retired on November 30, 2026. This covers
claude-sonnet-4-5-20250929and the short nameclaude-sonnet-4-5. Anthropic recommendsclaude-sonnet-5-5instead. - Next: Claude Opus 4.5 on January 22, 2027 (
claude-opus-4-5-20251101andclaude-opus-4-5). The recommended replacement isclaude-opus-5-5. - Already retired, so requests fail today:
claude-sonnet-4-20250514andclaude-opus-4-20250514(June 15, 2026),claude-3-7-sonnet-20250219andclaude-3-5-haiku-20241022(February 19, 2026),claude-3-haiku-20240307(April 20, 2026). - Where these dates apply: the Claude API, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry. Amazon Bedrock and the Google-managed Google Cloud models set their own dates.
Source: Anthropic: Model deprecations and Claude Sonnet 5.5 migration guide, checked November 30, 2026.
Lovable's built-in AI is a separate service with its own dates. If your Lovable app uses it, read our Lovable AI model guide instead.
Am I affected? Check in two minutes
- Open your repo on GitHub and search the code for
claude-. Note every model name you find. If none of the names above appear, these dates don't affect your code. - Check your host's settings too. Some apps read the model name from an environment variable such as
ANTHROPIC_MODEL. A code search doesn't see it there. Look in the environment variables on Vercel, Netlify, Replit or wherever the app runs. - Or ask Anthropic's records. In Claude Console, open the Usage page and click Export. The CSV shows your usage by API key and model, including keys you forgot about.
What you might see
| What you see | Why | What to do |
|---|---|---|
The AI feature shows an error or spins forever. The logs show 404 and not_found_error | The model your code names is retired | Switch the model (below) |
After switching to Claude Sonnet 5.5, every request fails with 400 and mentions temperature, top_p or top_k | Newer models reject these settings | Remove them from the request |
After the switch, the answer is empty or says undefined | The response can now start with a thinking block, and code that reads content[0].text finds no text there | Read the block whose type is text |
| After the switch, answers stop halfway and the bill goes up | Claude Sonnet 5.5 thinks by default. Thinking counts toward max_tokens and is billed as output | Raise max_tokens, or turn up-front thinking off (below) |
The smallest safe fix today: Claude Sonnet 4.6
If the feature is down now and you can't test a bigger change today, switch the model name to claude-sonnet-4-6. Anthropic lists it as active, with retirement not sooner than February 17, 2027. Like Sonnet 4.5, it doesn't think unless you ask, so your code gets the same kind of answer back. That makes it the smallest change. Use it to get the feature working again, then plan the move to Sonnet 5.5 before February.
model: "claude-sonnet-4-5-20250929" → model: "claude-sonnet-4-6"
If a request still fails with a 400 that names temperature, top_p or top_k, remove that setting. API version 2026-10-21 rejects them on every model, and a newer SDK can send a newer API version. So don't let the AI agent update the Anthropic SDK in the same change.
If the name lives in an environment variable, change it there and redeploy. A new value in the host's settings only takes effect after the next deploy.
Moving to Claude Sonnet 5.5: the traps
Anthropic's migration guide lists more changes for code coming from Sonnet 4.5. These are the ones that most often break small AI-built apps:
- Remove
temperature,top_pandtop_k. A changed value returns a 400 error. Guide the style in the prompt instead. - Read the answer by type. Thinking runs by default, so the first block can be a thinking block. Take the text from the block whose
typeistext, and pass thinking blocks back unchanged in tool loops. - To turn up-front thinking off, send
thinking: {"type": "between_tools"}. The old{"type": "disabled"}returns a 400 error on Sonnet 5.5. - Forced tool use is gone. A
tool_choiceof typeanyortoolreturns a 400 error. Useauto, mark the toolstrict, and say in the prompt when to use it. - Replace assistant prefills. If your code ends the conversation with a half-written assistant message to steer the answer, the migration guide says to replace it.
Prompt for your AI agent
Claude Sonnet 4.5 is retired on November 30, 2026 (requests return 404). 1) List every place this app sets a Claude model name: code, config and environment variables. Show me the list before changing anything. 2) Today: change claude-sonnet-4-5 / claude-sonnet-4-5-20250929 to claude-sonnet-4-6. Change nothing else. 3) Then, as a separate change, plan the move to claude-sonnet-5-5 using Anthropic's Claude Sonnet 5.5 migration guide: remove temperature, top_p and top_k, read content blocks by type instead of content[0].text, no forced tool_choice, no assistant prefill. 4) Don't change prompts, the API key or unrelated code. Show me the diff.
Never paste your Anthropic API key into the chat. If you see it in your code, move it to an environment variable on your host and create a new key in Claude Console.
Check that it works like a user would
- Open the AI feature in your live app and use it three times with real questions, including one that needs a long answer.
- Look at your host's logs for
404or400errors from the Claude API. - The next day, check the Usage page in Claude Console: the old model should show no new requests.
A build that passes doesn't prove this. The error only shows when the feature sends a request.
FAQ
Will Claude Sonnet 4.5 come back?
No. Anthropic says requests to retired models fail, and on the Claude API they return a 404 not_found_error. Your code has to name another model.
Why not just switch to the newest model?
You can, but test it first. Claude Sonnet 5.5 rejects temperature, top_p and top_k, thinks by default and can put a thinking block first in the answer. Code written for Sonnet 4.5 can break in each of these places. claude-sonnet-4-6 is the smaller step for today.
Does this affect Lovable's built-in AI?
Not these dates. Lovable's built-in AI has its own list of retired models and dates. These dates apply to apps that call Anthropic's API with their own key, for example from a Supabase Edge Function or a server route.
I use Claude through Amazon Bedrock. Does November 30 apply?
Not necessarily. Amazon Bedrock and the Google-managed Claude models on Google Cloud set their own retirement dates. Check their model tables, which Anthropic links from the same page.