All posts

LLM model deprecation: how to plan a model migration before your provider retires the model

LLM model deprecation is a recurring cost, not an incident. What provider notice periods actually look like, what breaks besides the model name, and a migration plan built on evals.

CodeKrypt 5 min read

Sooner or later the model your product runs on gets a retirement date. LLM model deprecation is not an outage or a surprise. It is a scheduled, recurring cost of building on someone else's model, and teams that plan for it spend a sprint on it. Teams that don't spend a scramble. This post covers what notice you can expect, what breaks besides the model name, and a model migration plan you can run before the deadline.

How much warning do you get before a model is retired?

Not much, and sometimes only a couple of months. Anthropic's model deprecations page defines four states: active, legacy, deprecated, and retired. It says it provides "at least 60 days' notice before model retirement for publicly released models", and that requests to retired models fail.

The history on that same page shows what this looks like in practice (dates as listed there):

ModelAnnouncedRetiredGap
claude-3-5-haiku-20241022Dec 19, 2025Feb 19, 20262 months
claude-opus-4-20250514Apr 14, 2026Jun 15, 20262 months
claude-opus-4-1-20250805Jun 5, 2026Aug 5, 20262 months
claude-sonnet-4-5-20250929Sep 30, 2026Nov 30, 20262 months

Two months is not long if the model sits behind a revenue feature, needs a prompt rework, and has to clear a release cycle. Also note that those dates apply to Anthropic-operated platforms; the page says Amazon Bedrock and Google-managed Claude set their own retirement schedules. Other providers publish their own deprecation pages, so read the one for the exact platform you call.

What breaks besides the model name?

Swapping the string is the easy part. The failures that cost time are these:

What should a model migration plan include?

Five steps, in order.

1. Inventory what you actually call. Anthropic's docs describe exporting usage from the Console as a CSV broken down by API key and model. Do this routinely. Forgotten scripts, staging keys and a single cron job on an old model are how deadlines get missed. Whatever provider you use, you want a list of every model ID in production, by feature.

2. Centralise the model choice. One config value per feature, not model strings scattered through the codebase. This makes a rollback a config change instead of a deploy. A thin wrapper also makes it easy to add a fallback provider later.

3. Build the eval set before you need it. Take real inputs from production logs (handling sensitive data according to your privacy obligations), add the failures you already know about, and define pass criteria per feature. Anthropic's own guidance is to consider "thorough testing of your applications with the new models well before the retirement date". Without a fixed set, "it feels fine" is the only evidence you will have. Our agent evaluation framework post goes deeper on what to check.

4. Run old and new side by side. Replay the eval set through both models and compare quality, cost, latency and failure rate. Then, in production, canary or shadow: send a small share of traffic to the new model, or run it silently alongside the old one and compare outputs without showing them to users.

5. Roll out gradually, keep the rollback. Increase traffic in stages, watch the same metrics, and keep the old model selectable until the retirement date. Never make the cutover the last week.

Should you always move to the provider's recommended replacement?

Not automatically. A deprecation notice names a replacement, but it is a default, not a verdict. Anthropic's Sonnet 4.5 notice, for example, recommends claude-sonnet-5-5; whether that, a smaller model or a different provider is right depends on your eval results and your cost per request.

OptionGood whenWatch out for
Provider's recommended replacementYou have little eval coverage and want the path of least surprisePrompts may still need rework
A cheaper or smaller tierYour evals show it clears the quality barEdge-case failures that only show up at volume
A different providerYou already want redundancy or better pricingDifferent API behaviour, new compliance review
Staying put until the last dayAlmost neverDocs warn deprecated models are likely to be less reliable

Migration is also the best moment to re-test whether you need the largest model at all. If your evals show a smaller tier passes, that saving compounds for as long as the feature runs.

How do you stop this being a fire drill next time?

What to do next

If you are on a model with a retirement date, start with the inventory and an eval set from real traffic; those two things turn the migration from a guess into a measurement. If you don't have either yet, that is the gap to close first, and it pays off beyond this one deadline.

Teams adding AI to a product they already run hit this early, and our AI SaaS work covers building model routing and evaluation into the platform from the start. If you want to talk through a migration, send us a brief.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

How much notice do LLM providers give before retiring a model?
It varies by provider. Anthropic's deprecations page says it provides at least 60 days' notice before retirement for publicly released models. Its history table shows gaps of about two months between announcement and retirement for recent models. Cloud partners such as Amazon Bedrock set their own schedules, so check the platform you actually call.
What happens when a model is retired?
Requests to it fail. Anthropic's docs state that requests to retired models fail, and that deprecated models are likely to be less reliable than active ones, so waiting for the last day is a poor strategy.
Is changing the model name enough to migrate?
Rarely. Prompts tuned to one model can behave differently on another, and APIs also change. Anthropic's API version 2026-10-21 removes the temperature, top_p and top_k parameters, and requests that set them return a 400 error.
How do I know a new model is good enough?
Run it against a fixed evaluation set built from real traffic and compare it with the current model on your own pass criteria, including cost and latency. Provider benchmarks do not measure your task.

Related reading

Chat on WhatsApp