Skip to content

How to replace a retired LLM before it breaks your app

· 6 min read

This post gives a five-step test for replacing a large language model (LLM) that your app depends on before its provider shuts it down. The test needs a benchmark platform; the steps use LLM Prover, which your agent can drive over MCP. The post draws on a study of open-source migrations and on our own test of 13 models on two tasks, and it ends with a replacement chosen from your own results.

Most apps move to a new model only after they break

A study of GitHub commits looked at what happens when OpenAI, Anthropic or Google retire a model. It mined 22,555 commits across 17,703 repositories and matched 5,139 of them to an official shutdown announcement (arXiv 2609.31288, open-source apps only). It found:

  • 82% of migrations came after the shutdown date (95% confidence interval 79-84), when the app had already started failing.
  • 94% of migrating apps wrote the model name directly into their code, so each change meant finding and editing it by hand.
  • The median change was 6 added lines for apps that use a prompt only, and nearly 700 for apps using a fine-tuned model (a model trained further on your own data).
  • Only 8% of migrations switched provider. The share of late migrations tracked the notice period. It was 89% for Anthropic’s 60 to 114 day notices and 13% for OpenAI’s one-year notice on the Assistants API.
    Insight: Neither experience with past retirements nor a provider-abstraction layer made apps migrate earlier. Testing a replacement on your own task is a step those do not include.

Five steps to a replacement you can defend

Steps 1 and 2 are housekeeping in your own code. Steps 3 to 5 need a benchmark platform: a service that sends the same prompt to many models, scores each answer against your known answer and records what each answer cost. You can build that yourself with one script per provider. LLM Prover does it in one request, and your agent can make that request for you over MCP, the protocol agents use to call outside tools (MCP quickstart).

  1. Find every place your code names a model. Search for the model name as written in your code, such as gpt-4o. On OpenAI, a fine-tuned model follows the shutdown schedule of the base model it was trained from. Check:

    • application code
    • config files
    • scheduled jobs
    • saved prompts
  2. Read the shutdown date from the provider’s own page. The official sources are:

  3. Set up the test on a benchmark platform. In LLM Prover, a test is one prompt, the answer you would accept as correct and a pass mark, for example 80 out of 100 (evaluations guide). The task needs a known right answer. Examples that fit:

    • a support-ticket category
    • a data extraction
    • a date calculation

    Once your agent is connected, ask it to compare the old model and the candidates on that task, and it calls LLM Prover’s evaluation tool.

  4. Score the old model and every candidate in one evaluation. List the models you want to test, from any provider LLM Prover supports. Each gets the same prompt, and each answer is scored against your known answer. The result shows, per model:

    • the quality score and whether it met your pass mark
    • the cost of the answer
    • how long it took
    • the cheapest model that passed

    If a model in the evaluation has an announced shutdown date, its result also carries the date and a warning.

  5. Choose the cheapest candidate that passes, then keep checking. Save the same test as a scheduled benchmark (benchmark guide). It repeats on a schedule and shows a change in score or cost after a provider updates a model. Scheduled benchmarks are available on Pro and above.

What our test of 13 models showed

We ran steps 3 and 4 in LLM Prover on two small tasks, with the four OpenAI models that have announced shutdown dates and nine current models from OpenAI, Anthropic and Google. Each answer was scored against a known correct answer with a pass mark of 80 out of 100.

TaskWhat it testsScoresCost per 1,000 answersCheapest model
CodeWrite a function that removes duplicate email addresses and keeps the first of each90 to 100, all passed$0.0478 to $2.356 (about 49 times)GPT-6 Luna
DatesWork out ship dates around two closed days100, all passed$0.0654 to $7.948 (about 120 times)GPT-4o Mini

Evaluations df6ee660, 13bd407a, fdaa708c and 0420eaeb, 2 December 2026 (judge grok-4.3, temperature 0, scored against a known correct answer)

  • Every one of the 13 models passed both tasks.
  • Because quality tied, cost per answer separated the models.
  • Which model cost least changed between the two tasks.
Both tasks are small and have one right answer. A harder prompt, a longer document or a stricter pass mark can split the field, so run the test on your own task before you choose. The table shows the method; it is not a recommendation of any model.

Pick your replacement model from your own scores

Score the old model and each candidate on your own task and compare quality and cost in one result. On Pro and above.

See Pro

The cheapest token is not always the cheapest answer

Per-token prices are the number every pricing page quotes, but an answer costs the price of every token the model reads and writes. On the date task, Claude Haiku 5.5 wrote 530 output tokens where Claude Sonnet 5.5 wrote 66. Haiku’s answer cost $0.2937 per 1,000 and Sonnet’s cost $1.234, a smaller gap than their per-token prices alone would predict. That gap only shows up when you measure a real task. A model that writes more, or thinks longer, before answering can erase part of a lower price. For more on how this happens, see what a token really costs.

Keep checking after you switch

Choosing a replacement settles the question for today. Providers update models, and new versions arrive on their own schedule. A scheduled benchmark in LLM Prover repeats the same test and shows a change in quality or cost as soon as it happens, so the next retirement is a routine check and not a scramble. For setting that up, see how to monitor LLM quality.

Questions

How much notice do providers give? It varies by provider and model. OpenAI states at least 6 months for generally available models, 3 months for specialised variants and image models, and as little as 2 weeks for preview models (OpenAI deprecations page, checked 2 December 2026). Anthropic states at least 60 days for publicly released models (Anthropic model deprecations page, checked 2 December 2026).

Should I wait for the provider’s recommended replacement? The provider names a replacement for each retired model. It is a reasonable candidate, and the test above tells you whether it works on your task and what it costs against the others.

How many candidates should I test? Start with the provider’s named replacement and one or two cheaper and pricier alternatives. Add more if none passes your bar.

What if no candidate passes? Look at where the answers fail. The prompt may need changes for the new model, which is cheaper to find before the shutdown date than after.

Score your old model and its candidates on your own task, from your agent over MCP, on Pro and above: see the plans.

model-migration model-deprecation evaluation