On the Claude API (also Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry), claude-sonnet-4-5-20250929 and its alias claude-sonnet-4-5 retire on 30 November 2026. After that the Messages API returns 404 not_found_error. Anthropic's recommended replacement is claude-sonnet-5-5 ($2 / $10 per million input/output tokens vs $3 / $15). Before you switch, remove temperature, top_p and top_k, remove any assistant prefill, replace thinking: {type: "enabled", budget_tokens} with an effort level, replace tool_choice any/tool with auto plus strict tools, and read the reply by block type instead of content[0].text: each of the first four returns a 400 error on Sonnet 5.5, and Sonnet 5.5 thinks by default. A smaller stopgap is claude-sonnet-4-6 (same price and tokenizer as 4.5, active until at least 17 Feb 2027), but it also rejects prefill. Separately, Lovable retires Claude Haiku 4.5 for apps' AI features on 2 December 2026 at 00:00 UTC and routes those requests to Haiku 5.5, which rejects a custom temperature. Amazon Bedrock and Google-managed Vertex set their own dates.
What retires, when, and where
Anthropic notified developers on 30 September 2026 that Claude Sonnet 4.5 would retire on the Claude API on 30 November 2026. The retirement covers the dated ID claude-sonnet-4-5-20250929 and the alias claude-sonnet-4-5. Once a model is retired, Anthropic's deprecation page says requests to it fail, and on the Claude API the Messages API returns a 404 not_found_error.
Anthropic's dates apply to the platforms it operates: 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 retirement schedules, so the same model can keep working there longer, or stop at another date.
| Model | Where | Retires | After that date |
|---|---|---|---|
Claude Sonnet 4.5 (claude-sonnet-4-5, claude-sonnet-4-5-20250929) | Claude API and other Anthropic-operated platforms | 30 Nov 2026 | Requests fail (404 not_found_error on the Claude API); replacement: claude-sonnet-5-5 |
| Claude Haiku 4.5 | Lovable apps' AI features (Lovable AI connector) | 2 Dec 2026, 00:00 UTC | Lovable routes requests to Claude Haiku 5.5; settings Haiku 5.5 rejects, such as a custom temperature, make requests fail |
Claude Opus 4.5 (claude-opus-4-5, claude-opus-4-5-20251101) | Claude API and other Anthropic-operated platforms | 22 Jan 2027 | Requests fail; replacement: claude-opus-5-5 |
Claude Haiku 4.5 (claude-haiku-4-5) | Claude API | No date: listed as Active, no deprecation announced | Keeps working; Anthropic promises at least 60 days' notice before retiring a public model |
| Claude Sonnet 4.5 and others | Amazon Bedrock, Claude Models on Google Cloud (Google managed) | Set by AWS / Google | Check AWS's model lifecycle page or Google Cloud's Claude models page |
Anthropic doesn't publish a time of day for the 30 November retirement. Treat 30 November as the deadline and switch before the weekend if you can.
Is my app affected? Find the model ID
You're affected if your app calls the Anthropic API with your own API key and asks for a Sonnet 4.5 model ID. In AI-built apps that call usually sits in server-side code: a Supabase Edge Function (common in Lovable and Bolt apps that connect their own Supabase), a Next.js or Express API route, a Cloudflare Worker, or a no-code automation. The model name can also live in an environment variable such as ANTHROPIC_MODEL.
You're not affected by this date if your Lovable app uses Lovable's built-in AI without your own Anthropic key (see the Lovable section below), or if you only use Claude inside a coding tool such as Claude Code or Cursor, unless you pinned a Sonnet 4.5 model ID in its settings.
- Search the code: clone or export the repo and run the search below. It also catches gateway-style IDs like
anthropic/claude-sonnet-4.5. - Check environment variables and secrets on your host and in Supabase (Edge Function secrets) for a variable that holds the model name.
supabase secrets listonly shows names and digests, so look at what your code reads. - Check usage: in the Claude Console go to Usage → Export. Anthropic's deprecation page recommends this CSV to see usage broken down by API key and model.
- Check your inbox: Anthropic says it emails customers with active deployments of a model that is about to retire.
# ripgrep (rg) or grep both work
rg -n "claude-(sonnet|opus|haiku)-4-5|claude-(sonnet|opus|haiku)-4\.5|claude-3" .
grep -rnE "claude-(sonnet|opus|haiku)-4[-.]5|claude-3" --exclude-dir=node_modules . Switch to Claude Sonnet 5.5 without new 400 errors
Changing the model string is step one of Anthropic's migration checklist, not the whole job. Sonnet 5.5 rejects five settings with a 400 error that Sonnet 4.5 code often sends, and it runs adaptive thinking on requests that don't mention thinking at all. This table lists what Anthropic's Sonnet 5.5 migration guide says to change when coming from Sonnet 4.5.
| If your code… | On Sonnet 5.5 | Change it to |
|---|---|---|
Sends temperature, top_p or top_k | 400 error | Remove them; steer output with the prompt |
Ends messages with an assistant turn (prefill, for example { to force JSON) | 400: "This model does not support assistant message prefill. The conversation must end with a user message." | Structured outputs (output_config.format) for JSON, or put the instruction in the system prompt or user message |
Sends thinking: {type: "enabled", budget_tokens: N} | 400: "thinking.type.enabled" is not supported for this model | Leave thinking out (adaptive) and set output_config.effort |
Sends thinking: {type: "disabled"} | 400 invalid_request_error | thinking: {type: "between_tools"} (no up-front thinking; works at effort high or lower) |
Forces a tool with tool_choice any or tool | 400: tool_choice: type "tool" and "any" are not supported for this model. | tool_choice: {type: "auto"} with strict: true on the tool, and say in the prompt when to use it |
Reads the answer as content[0].text | Breaks when the reply starts with a thinking block | Pick blocks where type is text |
Uses a small max_tokens | Thinking counts toward max_tokens and is billed as output | Raise max_tokens or lower effort |
Sends output_format | 400 without a beta header | output_config.format |
Sends beta headers interleaved-thinking-2025-05-14 or fine-grained-tool-streaming-2025-05-14 | Not needed / can 400 with toolsets | Remove the first; replace the second with eager_input_streaming: true on the tool |
Anthropic also notes that Sonnet 4.5 has no effort parameter, so set an effort level explicitly after switching and test two or three levels; there's no fixed mapping from a thinking budget to an effort level. If you use Claude Code, Anthropic's guide suggests running /claude-api migrate this project to claude-sonnet-5-5 to let it make these edits, which you should still review.
Before and after: a typical AI-builder call
This is the pattern we see most in AI-generated backends: a TypeScript call with a low temperature, a JSON prefill and content[0].text. The after version follows Anthropic's migration guide. Keep your own prompt and error handling; this only shows the fields that change.
// BEFORE (Sonnet 4.5): fails with 404 after 30 Nov 2026
const msg = await anthropic.messages.create({
model: "claude-sonnet-4-5",
max_tokens: 1024,
temperature: 0.2,
messages: [
{ role: "user", content: prompt },
{ role: "assistant", content: "{" }, // prefill
],
});
const text = msg.content[0].text;
// AFTER (Sonnet 5.5)
const msg = await anthropic.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 4096, // leave room for thinking
thinking: { type: "between_tools" }, // no up-front thinking, closest to 4.5
output_config: { effort: "medium" },
system: "Reply with JSON only, no preamble.",
messages: [{ role: "user", content: prompt }],
});
const text = msg.content
.filter((b) => b.type === "text")
.map((b) => b.text)
.join(""); If you need guaranteed JSON, use structured outputs with output_config.format instead of the system-prompt line; Anthropic's migration guide recommends it as the replacement for format prefills. If TypeScript complains about thinking or output_config, upgrade the SDK. Anthropic's API-version guide says @anthropic-ai/sdk 1.0.0 and Python anthropic 2.0.0 are the first versions that send API version 2026-10-21, which removes temperature, top_p and top_k for every model, so remove them in the same change.
Stopgap: Claude Sonnet 4.6
If you can't test a bigger change before 30 November, claude-sonnet-4-6 is the smaller jump. Anthropic lists it as Active, with retirement not sooner than 17 February 2027. Per Anthropic's docs it costs the same as Sonnet 4.5, uses the same (older) tokenizer, and runs without thinking unless you ask for it. On API version 2023-06-01 (what SDKs before the versions above send) it still accepts a non-default temperature, and it still accepts thinking budgets as a deprecated setting.
The catch: Sonnet 4.6 already rejects assistant prefill, the same 400 error as Sonnet 5.5. So remove prefills either way. Our take: use 4.6 only to buy time, and plan the move to 5.5, because 4.6 is the older generation and its retirement can be announced with 60 days' notice.
What it costs after the switch
| Model | Input | Output | Cache read | Tokenizer |
|---|---|---|---|---|
| Claude Sonnet 4.5 (retiring) | $3 | $15 | $0.30 | Older |
| Claude Sonnet 4.6 | $3 | $15 | $0.30 | Older (same as 4.5) |
| Claude Sonnet 5.5 | $2 | $10 | $0.10 | Newer: about 30% more tokens for the same text |
| Claude Haiku 4.5 | $1 | $5 | $0.10 | Older |
| Claude Haiku 5.5 (prompts up to 100,000 tokens) | $0.10 | $0.50 | $0.01 | Newer |
Per-token prices drop with Sonnet 5.5, but Anthropic says the same text produces about 30% more tokens, and thinking tokens are billed as output. Our arithmetic with Anthropic's figures: text that cost $3 of input on Sonnet 4.5 comes to roughly 1.3 × $2 = $2.60 on Sonnet 5.5, and output text roughly 1.3 × $10 = $13 instead of $15, before any thinking tokens. Whether your bill goes up or down depends on how much the model thinks, so compare a day of real usage in the Console after switching. Images can also cost more: a 2000×1500 image uses about 2.5 times as many tokens on Sonnet 5.5.
Lovable apps: Claude Haiku 4.5 retires on 2 December
Apps built in Lovable can use Claude through Lovable's AI connector, with no Anthropic account. Lovable's changelog of 26 November 2026 says Claude Haiku 4.5 retires there on 2 December 2026, and its deprecated-models page puts the cut-off at 00:00 UTC. After that Lovable sends the app's Haiku 4.5 requests to Claude Haiku 5.5, so the feature keeps running, but Haiku 5.5 rejects some settings Haiku 4.5 accepted, such as a custom temperature, and those requests fail.
Lovable says it emails the owner of every project whose app calls a deprecated model, and it doesn't change the model in your code by itself. The fix is a prompt in the project chat, for example: "Switch every Claude Haiku 4.5 call in this app to a current Claude model and remove the temperature setting." Then publish again and test the feature. Lovable notes that the replacement can cost a different amount per request.
Lovable's page also lists OpenAI GPT-5, GPT-5 mini and GPT-5 nano retiring for apps' AI features on 11 December 2026, routed to GPT-5.6 models. If your Lovable app calls Claude through your own Anthropic key in a Supabase Edge Function instead, the 30 November Claude API date above applies.
Test the new model before you deploy
Send one request with the new model ID and your real prompt before you change production. This request is taken from Anthropic's migration guide; set ANTHROPIC_API_KEY in your terminal first. A 200 response with a text block means the ID and settings are accepted. Then deploy the function (for Supabase: supabase functions deploy <name>) and run the feature once in the live app.
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2026-10-21" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 4096,
"messages": [{"role": "user", "content": "Say hello"}],
"output_config": {"effort": "medium"}
}' Confirmed vs not published
| Question | Status |
|---|---|
| Sonnet 4.5 retires on the Claude API on 30 Nov 2026, dated ID and alias | Confirmed (Anthropic model deprecations page, Sonnet 4.5 model page, release notes of 30 Sep 2026) |
Retired models return 404 not_found_error on the Claude API | Confirmed (Anthropic model deprecations page) |
Recommended replacement is claude-sonnet-5-5 | Confirmed (Anthropic) |
| The settings that return 400 on Sonnet 5.5 | Confirmed (Anthropic Sonnet 5.5 migration guide and model page) |
| Lovable retires Haiku 4.5 on 2 Dec 2026 00:00 UTC and routes to Haiku 5.5 | Confirmed (Lovable changelog 26 Nov 2026 and deprecated models page) |
| Time of day of the Claude API retirement | Not published |
| Sonnet 4.5 retirement dates on Amazon Bedrock and Google-managed Vertex | Set by AWS and Google; not checked here |
| How third-party gateways (Vercel AI Gateway, OpenRouter and others) handle the retired ID | Not checked; see your gateway's model list |
| Exact cost change for your app | Depends on your prompts and thinking; our 30% example is arithmetic on Anthropic's figures |
Common questions
When does Claude Sonnet 4.5 stop working?
On the Claude API (and Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Microsoft Foundry) Claude Sonnet 4.5 retires on 30 November 2026. Both claude-sonnet-4-5-20250929 and the alias claude-sonnet-4-5 are included. Anthropic doesn't publish a time of day.
What error do I get after Claude Sonnet 4.5 is retired?
The Messages API returns HTTP 404 with a not_found_error. In an app that usually shows up as a generic "something went wrong" from your chatbot or AI feature, and a 404 in your Edge Function or server logs.
Can I just replace claude-sonnet-4-5 with claude-sonnet-5-5?
Only if your request sends none of the settings Sonnet 5.5 rejects. Remove temperature, top_p and top_k, assistant prefill, thinking budgets, thinking type disabled, and forced tool_choice, and read text blocks by type. Otherwise the 404 becomes a 400.
Is Claude Sonnet 5.5 more expensive than Sonnet 4.5?
Per token it's cheaper ($2 input and $10 output per million vs $3 and $15), but the same text produces about 30% more tokens and thinking runs by default, billed as output. Measure real usage after switching.
Does this affect my Lovable app?
If your Lovable app uses Lovable's built-in AI, the date to watch is 2 December 2026 at 00:00 UTC, when Lovable retires Claude Haiku 4.5 and routes its requests to Haiku 5.5. If the app calls Anthropic with your own key, the 30 November Claude API date applies.
Does it affect Amazon Bedrock or Google Vertex?
Not on Anthropic's date. Bedrock and Claude Models on Google Cloud (Google managed) set their own retirement schedules; check AWS's model lifecycle page and Google Cloud's Claude models page.
Related on VibeLiftoff
- Fix: environment variables missing after export
- Fix: Stripe webhook in a Supabase Edge Function
- Lovable managed Google Maps credits
- Supabase CLI v3: db push and --remote
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE
- Claude Code: deploy options
- Custom domain cost & setup by builder
- Vercel Hobby commercial use explained
- Replit deployment costs & spend caps
- Supabase vs Neon vs Firebase vs Turso
- Supabase 42501 on new tables (Oct 30 change)
- Vercel Hobby Data Cache → Runtime Cache (29 Nov)
- Cursor Live Apps: built-in hosting explained
- Netlify Server: Express and WebSockets on Netlify
- Cloudflare Workers spending limit
- Vercel Security Review: setup and cost
- Vercel build minutes: Standard builds now billed
- vercel.toml: convert vercel.json
- Cloudflare Email Sending on the free plan
- Cloudflare Search for Agents