Anthropic retires claude-sonnet-4-5 on 30 November 2026: what to change
On 30 November 2026, Anthropic removes claude-sonnet-4-5 from the API, together with its dated version. From that day, API calls to it fail. Anthropic's recommended replacement (as of 13 November 2026): claude-sonnet-5-5
On 30 November 2026, Anthropic removes claude-sonnet-4-5 from the API, together with its dated version. From that day, API calls to it fail. Anthropic's recommended replacement (as of 13 November 2026): claude-sonnet-5-5.
What retires, and what replaces it
Anthropic lists this model on its deprecations page. The dates and replacements on this page come from Driftline's registry, which is checked against that page several times a day, so they stay current if Anthropic changes them.
claude-sonnet-4-5 is the short name for claude-sonnet-4-5-20250929, so both stop working.
| Model | Replacement | Moving to it |
|---|---|---|
claude-sonnet-4-5-20250929 |
claude-sonnet-5-5 |
Parameter changes |
More than a new model name
For this model, changing the name isn't the whole job:
- Claude 4.7 and later accept only the default temperature, top_p and top_k: if your code sets them, remove them. Anthropic's guide
Find every place your code uses them
Run this in the root of your repository. No install, account or API key; it lists every OpenAI, Anthropic and Google model ID it finds, with file, line, retirement date and replacement:
npx -y @aidriftline/driftline .
A plain search works too:
grep -rnE '"(claude-sonnet-4-5-20250929)"' .
It misses model names set outside the code: environment variables, deployment settings, values stored in a database, and defaults inside SDKs or agent frameworks you never configured.
Test before 30 November 2026
A new model answers the same prompt differently: format, length, tone, and whether JSON still parses. Take 10 to 20 real prompts from your logs, run each on the old model and the replacement, and compare. Do it while the old model still answers; after the date there is nothing left to compare against.
Driftline Pro does this in your GitHub Actions: it runs the prompts your app sends on the current model and the replacement, and shows what changed in the pull request.
Get a reminder
The free Driftline GitHub Action flags retired and soon-to-retire model IDs on every pull request, so the next retirement doesn't come as a surprise.
Questions
Will calls to claude-sonnet-4-5 keep working after 30 November 2026?
No. Anthropic removes the model from the API on that day, and requests to it return an error.
I build Driftline, which tracks these retirement dates. The current list, with one page per model: aidriftline.com/models.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.