89 LLMs Retire Before April. Find Every One in Your Code
gpt-5 and o3 leave OpenAI's API on December 11, and 89 models in all have announced shutdown dates before April. A free script finds every retiring model name in a codebase, with the file and line.
OpenAI retires gpt-5, gpt-5-mini, gpt-5-nano and o3 from its API on December 11, 2026. There is no automatic fallback: a call to a retired model fails. They are the first of many. Of the 4,105 models in the AgentCost pricing catalog, 89 have an announced retirement date between now and the end of March 2027, or 451 endpoints once regions and dated snapshots are counted separately.
What retires when. December: the original GPT-5 family and o3. January: gpt-4o and gpt-4.1 on January 14, along with fine-tunes built on them, and Claude Opus 4.1 on AWS Bedrock on January 8. February: mostly Azure-hosted models. March: the largest batch, a long list of Llama 3 and 4, Qwen3 Coder and Kimi K2 versions on AWS Bedrock. The dates are the ones each provider has announced; confirm on the provider's own deprecation page before planning a migration around one.
Why it breaks quietly. A retirement does not show up on a dashboard ahead of time. The model name sits in a config default, a fallback inside a retry helper, an evaluation script or a prompt template nobody has opened in months, and the first sign is an agent that worked yesterday and fails today. The hard part is not knowing the dates. It is knowing every place a name is written down.
Find them in ten seconds. We publish a small script that walks a folder, matches every model name it finds against the live AgentCost catalog, and prints each retiring or retired model with the file and line it appears on. It uses only the Python standard library and needs no API key. Download it from https://agentcost.tech/check_retirements.py and run python check_retirements.py path/to/your/repo. Each match prints as the model name, its retirement date and up to five file:line locations.
Not every match is a bug. A price list, a tokenizer table or a test fixture can list old models on purpose, so that calls to them are still handled correctly; our own SDKs keep retired models in their offline price lists for exactly that reason. What needs changing is any place that chooses a model: defaults, routing rules, agent configs and the examples people copy.
After you find them. Put the model name in one configuration value, so the next retirement is a one-line change. Check the replacement's price before you switch: successors are rarely priced the same, and an agent multiplies any difference by every step of every run. The AI agent cost calculator at https://agentcost.tech/ai-agent-cost-calculator prices a full agent run across models with live rates. Then run the script on a schedule in CI. It exits with status 1 whenever it finds a retiring model, so a newly announced date shows up as a failing job rather than as an outage.
The same data, for your agents. The catalog behind the script is public. It is available as an API at https://api.agentcost.tech/v1/pricing and as a remote MCP server at https://agentcost.tech/api/mcp, whose list_model_deprecations tool returns every model with an announced retirement date, soonest first. A coding agent connected to it checks a model before recommending one. Every retirement date is also listed on the model catalog at https://agentcost.tech/docs/models.