OpenAI is shutting down GPT-5, GPT-5 mini and o3 in the API on 11 December 2026. The same date also applies to GPT-5 nano, GPT-5 pro and o3-pro, along with all their dated snapshots. OpenAI gave notice on 11 June 2026, the usual six months for generally available models, and the models have been marked deprecated since then.
After 11 December, these model IDs stop working. OpenAI’s deprecations page defines a shut-down model simply: it “no longer accepts requests through the standard API”. There is no automatic rerouting, so any script, app, cron job or internal tool that still sends "model": "gpt-5" or "model": "o3" will get an error instead of an answer. If you use any of these models, you have about ten days to switch.
GPT-5 and o3 Shutdown at a Glance
| Model ID (and snapshot) | Shutdown | OpenAI’s recommended replacement |
|---|---|---|
gpt-5, gpt-5-2025-08-07 | 11 Dec 2026 | gpt-6.2-sol |
gpt-5-mini, gpt-5-mini-2025-08-07 | 11 Dec 2026 | gpt-6.1-terra |
gpt-5-nano, gpt-5-nano-2025-08-07 | 11 Dec 2026 | gpt-6-luna |
gpt-5-pro, gpt-5-pro-2025-10-06 | 11 Dec 2026 | gpt-6.2-sol with reasoning.mode: pro in the Responses API |
o3, o3-2025-04-16 | 11 Dec 2026 | gpt-6.2-sol |
o3-pro, o3-pro-2025-06-10 | 11 Dec 2026 | gpt-6.2-sol with reasoning.mode: pro in the Responses API |
OpenAI also says that fine-tuned versions of these models follow the same shutdown schedule as the base model, so a fine-tune built on a retiring model stops working on the same day.
Newer GPT-5.x models are not part of this shutdown. gpt-5.1, gpt-5.3-codex and gpt-5.4-nano keep working until 1 April 2027, and models such as GPT-5.2, GPT-5.4 and GPT-5.5 have no shutdown date yet. Older o-series models like o3-mini and o4-mini were already shut down on 23 October 2026.
What the Replacement Models Cost
The replacements are newer and more capable, with a 1.05M-token context window and 128K maximum output on all three. But they are not always cheaper. Here are OpenAI’s standard API prices per million tokens, from its pricing page on 1 December 2026:
| Old model | Old price (input / output) | Replacement | New price (input / output) |
|---|---|---|---|
| GPT-5 | $1.25 / $10.00 | GPT-6.2 Sol | $2.00 / $10.00 |
| GPT-5 mini | $0.25 / $2.00 | GPT-6.1 Terra | $1.00 / $5.00 |
| GPT-5 nano | $0.05 / $0.40 | GPT-6 Luna | $0.10 / $0.50 |
| o3 | $2.00 / $8.00 | GPT-6.2 Sol | $2.00 / $10.00 |
| GPT-5 pro | $15.00 / $120.00 | GPT-6.2 Sol (pro mode) | See OpenAI pricing |
| o3-pro | $20.00 / $80.00 | GPT-6.2 Sol (pro mode) | See OpenAI pricing |
Three things stand out:
- GPT-5 mini users face the biggest price rise. The recommended replacement, GPT-6.1 Terra, costs four times as much for input and two and a half times as much for output. If you used GPT-5 mini for high-volume work such as classification, extraction or summaries, test GPT-6 Luna first. At $0.10 / $0.50 it is cheaper than GPT-5 mini was, and it may be good enough.
- GPT-5 to GPT-6.2 Sol costs 60% more for input but the same for output. Sol also has cheaper cached input ($0.10 versus $0.125 per million tokens).
- Long prompts cost more on the new models. For requests with more than 272K input tokens, input and cache rates double and output costs 1.5 times the normal rate for the whole request. GPT-5 couldn’t accept more than 272K input tokens anyway, so this only matters if you start sending larger prompts after you migrate.
API Differences to Check Before You Switch
For most code, changing the model string is enough. Check these settings first, because they differ between the old and new models:
- Reasoning effort values. GPT-5 accepted
minimal,low,mediumandhigh. GPT-6.1 Terra and GPT-6 Luna supportnone,low,medium(the default),high,xhighandmax, sominimalis not in the list. If your code sendsminimal, change it tononeorlow. - GPT-6.2 Sol rejects
none. OpenAI’s model page says the API rejects requests that set reasoning effort tononeon Sol, so uselowas the lowest setting. - Tool calling. On GPT-6.1 Terra, tool calling requires the Responses API. On GPT-6 Luna, Chat Completions supports function calling only when
reasoning_effortisnone. If you call functions through/v1/chat/completions, plan to move those calls to/v1/responses. - Pro mode. The replacement for GPT-5 pro and o3-pro is not a separate model ID. OpenAI tells you to use
gpt-6.2-solwithreasoning.modeset toproin the Responses API. - Knowledge cutoff. GPT-6.2 Sol and GPT-6.1 Terra have a 1 June 2026 knowledge cutoff, and GPT-6 Luna has 18 May 2026, so answers about recent software versions and events will differ from GPT-5’s.
How to Find GPT-5 and o3 in Your Code
Search your repositories, configuration files and scripts for the retiring model IDs. This pattern matches gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-pro and their dated snapshots, but skips newer IDs such as gpt-5.1, gpt-5.4-mini and o3-mini:
grep -rnP '(?<![\w.-])(gpt-5(-mini|-nano|-pro)?|o3(-pro)?)(-20\d\d-\d\d-\d\d)?(?![\w.-])' .
Run it in each project directory, and also in places where model names often hide:
.envfiles, Docker Compose files and Kubernetes manifests (for exampleOPENAI_MODEL=gpt-5-mini).- CI/CD variables and secrets managers, which grep in a repository won’t see.
- Cron scripts and one-off shell scripts under
/etc/cron.d/,/usr/local/bin/or your home directory. - Settings of tools that call the API for you, such as chatbot plugins, WordPress AI plugins and self-hosted front ends like Open WebUI.
You can also ask the API which models are scheduled to shut down. OpenAI’s List models endpoint has an optional shutdown_date field, and OpenAI recommends checking it to monitor shutdowns programmatically:
curl -s https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" \
| jq -r '.data[] | select(.shutdown_date != null) | "\(.id) \(.shutdown_date)"'
How to Migrate
1. Pick the replacement for each use
Start with OpenAI’s recommendation from the table above. Then check whether a cheaper model is good enough. GPT-6 Luna is a strong first test for anything that used GPT-5 mini or nano, and GPT-6.1 Terra is a good middle option for code that used GPT-5 but doesn’t need Sol’s reasoning.
2. Move the model name into one setting
If the model ID is written in several places, put it in one configuration value or environment variable, so this migration (and the next one) is a one-line change. In Python, for example:
import os
from openai import OpenAI
client = OpenAI()
MODEL = os.environ.get("OPENAI_MODEL", "gpt-6.2-sol")
resp = client.responses.create(
model=MODEL,
reasoning={"effort": "low"},
input="Summarise this log line: disk /dev/sda1 is 95% full",
)
print(resp.output_text)
3. Test with a quick request
Before you change production, send a small request to the new model from the terminal to confirm your key and settings work:
curl -s https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-6.1-terra", "reasoning": {"effort": "low"}, "input": "Reply with OK"}' \
| jq -r '.output[] | select(.type == "message") | .content[0].text'
If you replaced GPT-5 pro or o3-pro, test the pro mode the same way with "model": "gpt-6.2-sol" and "reasoning": {"mode": "pro"}.
4. Compare results and costs
Run a sample of your real prompts through the old and new models while the old one still works, and compare the answers, the response time and the token counts in the usage field. The new models may use a different number of reasoning tokens for the same task, so your cost per request can change even where the price per token didn’t.
5. Switch before 11 December
Deploy the new model ID, watch your error logs and usage dashboard for a day or two, and remove any fallback that still points at a retiring model.
Who Is Affected?
- Developers and teams using the OpenAI API with any of the six model IDs, directly or through an SDK.
- Self-hosted apps and plugins where someone chose GPT-5 or o3 in a settings page months ago and nobody has looked since.
- Fine-tuned models built on these base models, which shut down on the same date.
- Sysadmins with scripts that use the API for log summaries, alert triage or report writing.
This is an API shutdown. OpenAI’s deprecations page covers the developer platform; it doesn’t describe changes to the models offered in ChatGPT.
Other OpenAI Shutdowns Coming Soon
| Date | What shuts down | Replacement |
|---|---|---|
| 15 Dec 2026 | Creating new self-serve fine-tuning jobs (restricted access) | – |
| 14 Jan 2027 | GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini snapshots | gpt-6-luna |
| 1 Apr 2027 | gpt-5.1, gpt-5.3-codex, gpt-5.4-nano | gpt-6.2-sol, gpt-6-luna |
If you’re migrating anyway, check for these IDs at the same time so you only test once. Our AI model retirements tracker lists the dates for Anthropic, OpenAI and Google, and the GPT models page shows every current OpenAI model with its API ID.
Frequently Asked Questions
When does GPT-5 stop working in the API?
On 11 December 2026. The same date applies to GPT-5 mini, GPT-5 nano, GPT-5 pro, o3 and o3-pro, including their dated snapshots.
What happens if my code still uses gpt-5 after 11 December?
The request fails. OpenAI says a shut-down model no longer accepts requests through the standard API, and it does not reroute these model IDs to a newer model, so you need to change the model ID yourself.
What should I use instead of GPT-5 mini?
OpenAI recommends gpt-6.1-terra, which costs $1 / $5 per million tokens. If cost matters more than quality, try gpt-6-luna at $0.10 / $0.50, which is cheaper than GPT-5 mini was.
What replaces o3?
gpt-6.2-sol. For o3-pro, OpenAI recommends gpt-6.2-sol with reasoning.mode set to pro in the Responses API.
Does GPT-5.1 or GPT-5.4 also stop working on 11 December?
No. GPT-5.1 shuts down on 1 April 2027, and GPT-5.2, GPT-5.4 and GPT-5.5 have no shutdown date yet. Only the original GPT-5 family from August 2025 and the o3 models leave on 11 December.
How can I avoid forced model migrations?
Keep the model ID in one setting, check OpenAI’s deprecations page or the shutdown_date field every few months, and for workloads that don’t need a frontier model, consider an open-weight model on your own server. Use our LLM VRAM calculator to see what your hardware can run.
Conclusion
GPT-5, GPT-5 mini, GPT-5 nano, GPT-5 pro, o3 and o3-pro all leave the OpenAI API on 11 December 2026, with no automatic fallback. Search your code and settings for the old IDs, switch to GPT-6.2 Sol, GPT-6.1 Terra or GPT-6 Luna, check your reasoning-effort and tool-calling settings, and test with real prompts before the date. GPT-5 mini users should look closely at the price of the replacement and try GPT-6 Luna before settling on Terra. For the newest OpenAI models, see our roundup of November 2026 AI model releases.
Source: OpenAI API deprecations and OpenAI API pricing, checked 1 December 2026.
How did it make you feel?
