Own Weights

Model deprecation: when your API model is shut off

Model deprecation means your API provider shuts off a model you call. Here is what breaks, what to check, and how to plan a safe move before the date.

Updated

Model deprecation is when an API provider announces that a model will stop working on a set date. After that date, calls to the model fail, or the provider quietly sends them to a newer model that answers differently, and your application changes without a deploy on your side.

What a retirement does to a running app

Providers usually publish a notice with a shutoff date. Until that date the old model keeps working. On the date, requests to that model name return errors, or the name starts pointing at a successor.

Errors are the easy case, because they show up in logs and alerts. A silent swap is harder. Picture a nightly job that reads vendor agreements and returns five fields as JSON: counterparty, effective date, governing law, auto-renewal and notice period. The old model wrote “New York” for governing law. Its successor may write “New York (see Section 14)”, and a parser that expects a bare value starts rejecting rows. A smoke test that checks for a non-empty reply still passes. The first sign of trouble is a blank field in a report someone reads a week later.

Measure your largest real request against the successor’s context limit, not your average one. A replacement that handles the typical input can still fail on the long ones.

Find every place that calls the model

Start with a search for the model name, but do not stop there. Hard-coded names hide in config files, environment variables, notebooks, prompt templates and scheduled jobs. The monthly reconciliation script and the internal tool nobody has opened since it was written are the usual misses.

Then read the code around each call:

  • Output parsers often expect one model’s formatting, including quotation marks and how it words an unknown answer.
  • Retry logic may assume a particular error shape, so a new error type is retried forever or never retried.
  • Prompts are tuned to one model’s habits. Treat a replacement as a new prompt to test, not a new name in a config file.

Read the billing export over a full billing cycle too, since some calls only run at month end and a code search can miss them.

A worked example: contract clause extraction

A legal operations team runs clause extraction on every new agreement. The model name appears in three places: a config file, a notebook used to re-run old batches, and a weekly job that checks renewal dates. That job reads its model name from a server environment variable, so a repository search misses it. When the shutoff notice arrives, the search finds two of the three.

The fix starts with a sample of recent agreements. Reviewers who own the task mark the correct value for each field, and the current model’s answers are recorded beside them. The replacement is scored field by field, because overall accuracy can stay flat while notice period gets worse. A single total hides that.

A safe plan for a model change

  1. Build the test set from real traffic before you touch the model name. Record the current model’s answers and have the task owners mark which ones are acceptable. Without that baseline, you are comparing outputs by eye.
  2. Run the replacement on the same inputs and score both models against the approved answers. Comparing the new output with the old output only shows that they differ, not which one is right.
  3. Write down the reason for each rejected answer. Those notes become the checklist for the next change.
  4. If you can, send a small share of live traffic to the new model and log both answers. Keep the old model as a fallback until the daily review of differences finishes.
  5. Store the model name in one config value. The next change should be a one line edit with a test run behind it, not a search across the repository at deadline time.

Common mistakes to avoid:

  • Pinning to an alias the provider can repoint, when the provider offers a specific version identifier.
  • Testing only that the call returns text, not that the text matches what the team approved.
  • Judging the replacement on easy examples. Include the long, messy and unusual inputs.
  • Changing the model and the prompt in one step, so a regression has two possible causes.

Our contract benchmark follows the same discipline. It uses 510 documents in a five-fold split, so no contract appears in both training and testing. See the full results.

Hosted model or your own weights

A hosted model can be retired on the provider’s schedule. If you own the weights, the model file is yours. It runs on your own servers or cloud account, and you choose when to upgrade. A retirement becomes a planned upgrade on your timeline, not a forced migration on theirs.

Owning weights has costs. Someone on your side must run serving and updates, and a hosted API is faster to start with. A second provider configured as a fallback covers the gap while you decide.

Own Weights fine-tunes an open-weight model for one high-volume task a company now sends to a frontier API, tests it against the current model on the company’s own data, and serves it in the customer’s cloud account or on-prem. The customer owns the weights, and each version can be kept, tested and rolled back. For more on keeping the version you tested, see keeping the model you tested. For the wider dependency question, see AI vendor lock-in and how to avoid it. Our main page at Own Weights explains the process.

What to check when a notice arrives

  • The shutoff date, and whether it is a hard stop or a redirect to a successor. A redirect needs the same test as a replacement.
  • Every call site, found by search, by the billing export and by asking whoever owns each scheduled job.
  • Whether a test set with approved answers exists for that task. If not, building it is the first job.
  • Who owns the decision, and who signs off on the replacement.
  • Whether a fallback provider or previous version is configured for calls that cannot wait.

If you are not sure which of your AI calls depend on a model on a retirement path, start with the free audit. It runs on your machine and uploads nothing. If you want help turning one task into a tested replacement you own, book a free audit call with us.

Questions

What happens when an AI model is deprecated?

The provider sets a shutoff date for the model. Past that date, the old model name returns errors, or it may be pointed at a successor. Your team should plan for either outcome before the date arrives.

How much notice do API providers give before a model is retired?

Check the provider's deprecation page and your account notices for the stated shutoff date. Do not assume a fixed notice period, because it can differ by model. Write the date down the day you read it.

How can I tell if my code calls a retired model?

Search the repository for each model name, including config files, environment variables and scheduled jobs. A code search is the quickest first pass. Then check your billing export, since some calls only run at month end.