Did you know?
OpenAI's List models API shows a shutdown_date for retiring models, so a script can warn you in advance.
Check /v1/models monthly for shutdown_date and alert on any model ID your code or settings still use.
- AI & LLMs
- Last checked
Explained
OpenAI gives at least six months’ notice before it shuts down a generally available model, but the notice only helps if someone sees it. The List models endpoint (GET /v1/models) has an optional shutdown_date field on each model, and OpenAI’s deprecations page recommends checking it to monitor shutdowns programmatically.
This one-liner prints every model available to your API key that has a shutdown date:
curl -s https://api.openai.com/v1/models -H "Authorization: Bearer $OPENAI_API_KEY" | jq -r '.data[] | select(.shutdown_date != null) | "\(.id) \(.shutdown_date)"'
Run it from a monthly cron job and compare the IDs with the ones your code uses. For example, gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro all shut down on 11 December 2026, and requests to them fail after that date because OpenAI does not reroute them to a newer model. A check like this catches the next retirement months before it breaks anything.
Learn more
- OpenAI Shuts Down GPT-5, GPT-5 mini and o3 on 11 December 2026: How to Migrate Full guide · Updated Dec 2026
-
curlcommand cheat sheet Options and copy-ready examples
