GPT-5, o3, GPT-4o and GPT-4.1 API Shutdown Dates: Find the Exact Model Names in Your Code

OpenAI removes GPT-5 and o3 from the API on Dec 11, 2026 and some GPT-4o and GPT-4.1 snapshots on Jan 14, 2027. How to find the exact names in use.

OpenAI API model shutdown dates. Figure: the December 11, 2026 names with their recommended replacements and the snapshots shutting down on January 14, 2027.

This post is for people who call the OpenAI API from code or from an automation tool. OpenAI is removing two groups of older models from the API: a set of gpt-5 and o3 models on December 11, 2026, and certain gpt-4o and gpt-4.1 snapshots on January 14, 2027. Only the exact names in the two tables below are affected. Other names that start the same way do not all end on the same day.

If you only use the ChatGPT app, don’t read these dates as news about the app. Both shutdowns apply to the API, and this post covers the API only.

There are three things to do. Search for the shutdown names using an exact list. Widen the search to aliases, fine-tuned models and automation tool settings. Then, for every place you find, write down the shutdown date and who will change it. If you don’t read the code yourself, send the three questions in the section “If someone else built it” below to the person who does.

A horizontal timeline with two date markers. Above the left marker, labeled Shuts down Dec 11, 2026, are the name tags gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro; below it are gpt-5.6-sol, gpt-5.6-terra and gpt-5.6-luna. Above the right marker, labeled Shuts down Jan 14, 2027, are gpt-4o-2024-08-06, gpt-4o-2024-11-20, gpt-4o-mini-2024-07-18, gpt-4.1-2025-04-14 and gpt-4.1-mini-2025-04-14; below it is gpt-6-luna.
Figure 1. Made by Rove. Checked November 12, 2026. Names above the line are scheduled to shut down on that date, and names below it are the recommended replacements. Each name has its own replacement, so see the tables below.

The dates, names and replacements here are current as of November 12, 2026. OpenAI can change them, so open the deprecations page again before you migrate.

Does this affect you?

  • Yes, if your code calls an OpenAI model by name with an API key, or if you picked an OpenAI model in an automation tool’s workflow. A service that a contractor built for you counts too, if it calls the API behind the scenes.
  • Not covered here: the model picker in the ChatGPT app. That is a separate matter.
  • Check your email too. OpenAI notifies customers who are actively using a deprecated model by email. Look in the account owner’s inbox as well.

Which model names shut down on December 11, 2026 and January 14, 2027

An alias is a name with no date, such as gpt-5. A snapshot is a name that pins one specific version, such as gpt-5-2025-08-07. The December 11 shutdown covers both forms of each name. OpenAI notified developers of it on June 11, 2026.

Name (alias · snapshot) Recommended replacement
gpt-5 · gpt-5-2025-08-07 gpt-5.6-sol
gpt-5-mini · gpt-5-mini-2025-08-07 gpt-5.6-terra
gpt-5-nano · gpt-5-nano-2025-08-07 gpt-5.6-luna
gpt-5-pro · gpt-5-pro-2025-10-06 gpt-5.6-sol(reasoning.mode: pro)
o3 · o3-2025-04-16 gpt-5.6-sol
o3-pro · o3-pro-2025-06-10 gpt-5.6-sol(reasoning.mode: pro)

The January 14, 2027 shutdown names snapshots only. OpenAI notified developers of it on October 14, 2026, and the recommended replacement for every snapshot is gpt-6-luna.

Model Snapshots shutting down
GPT-4o gpt-4o-2024-08-06, gpt-4o-2024-11-20
GPT-4o mini gpt-4o-mini-2024-07-18
GPT-4.1 gpt-4.1-2025-04-14
GPT-4.1 mini gpt-4.1-mini-2025-04-14

For both dates, fine-tuned versions of these models follow the same shutdown schedule as their underlying base models.

Other names start the same way but have different shutdown dates. If you group names by how they begin, you will get some of them wrong.

  • gpt-5.1 and gpt-5.4-nano: April 1, 2027
  • gpt-4o-mini-tts: January 6, 2027 · gpt-4o-realtime and gpt-4o-audio: January 20, 2027 · gpt-4o-transcribe: February 26, 2027
  • gpt-4.1-nano, gpt-4o-2024-05-13 and o3-mini: shut down on October 23, 2026, which has already passed. A model that has been shut down is no longer accessible. If one of these names is still in your setup, fix that place first.

A recommended replacement is the name to move to. It is not a promise of the same answers at the same cost. OpenAI gives advance notice so that customers have time to evaluate the recommended replacement, test how their application behaves and complete the migration. Run your own inputs through the new model and compare the results before you switch.

Aliases vs. snapshots: gpt-4o is not in the January 14 table

Code often uses undated aliases such as gpt-4o or gpt-4.1-mini. The December 11 shutdown names aliases such as gpt-5 and o3 directly. The January 14 shutdown names no aliases.

Each alias points to one snapshot. gpt-4o currently points to gpt-4o-2024-08-06, and that snapshot is marked Deprecated. In the same way, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini point to gpt-4o-mini-2024-07-18, gpt-4.1-2025-04-14 and gpt-4.1-mini-2025-04-14, all three in the January 14 table.

One thing is left open by OpenAI’s shutdown schedule and model pages: what happens to a request sent to an alias after January 14. So include the aliases when you search, and set the new model name explicitly when you migrate.

Fine-tuned models: look inside the ft: ID

A fine-tuned model ID starts with ft:. You can copy it from the Output model field in the right pane of your fine-tuning job in the dashboard. OpenAI’s own example ID, ft:gpt-4.1-nano-2025-04-14:openai::BTz2REMH, carries the base model’s snapshot name inside it. That means a search has to catch base model names inside fine-tuned IDs too. The command further down treats : as a boundary before and after a name.

Model names that live outside your repository

A code search does not reach every place a model name can sit.

  • The model field in an automation tool. A model you picked on a tool’s screen may not be in your code repository at all. n8n, for example, saves workflows in JSON format, and the Workflow menu in its Canvas header has a Download option that saves the current workflow as a JSON file to your computer. Once you have that file, the same command works on it. Exported n8n workflow files include credential names and IDs, and HTTP Request nodes may contain authentication headers when imported from cURL. Remove or anonymize that information before sharing a file, and for this search keep the file on your own computer.
  • Deployment settings and settings stored in a database. The sample file in the repository and the value that is actually deployed can differ.
  • Names built from pieces. A name assembled in code, like f"gpt-{family}-{size}", does not show up in a string search.
  • A check through the API. The List models endpoint (GET /v1/models) returns an optional shutdown_date field for each model. When present, it holds the shutdown date as a YYYY-MM-DD string, or null if no shutdown date has been announced. The field is optional, so it can be absent, and the meaning of an absent field is not defined. The endpoint lists the models that are currently available. It does not tell you which models your own service calls.

Four ways to grep for the model names, tested on a sample repo

Rove built a fictional sample repository with Python and JavaScript code, a sample settings file, and JSON and YAML files shaped like automation exports. It holds no keys. It has 23 lines to judge: 12 targets for the two shutdown dates (undated aliases included), 10 lines with other model names (replacement models, and look-alike names with different dates), and 1 comment. Aliases were counted as names to check, not as confirmed shutdowns. Names already shut down on October 23 were counted as outside the two dates for this test, although in real code they are the first thing to fix. The four searches ran with GNU grep 3.0 in Git Bash on Windows. Comments and node labels in the sample files are written in Korean; the model names are plain ASCII strings, the same ones you would search for in any codebase.

Search method Found, out of 12 targets Missed Other names matched by mistake Comment lines matched
Prefix only (gpt-5, gpt-4o, gpt-4.1, o3) 11 1 9 1
Prefix + whole word (-w) 11 1 9 1
Table names only, with boundaries on both sides 9 3 0 0
Table names + January 14 aliases, with boundaries on both sides 11 1 0 1
  • The prefix search also matched 9 other lines, including the replacement model gpt-5.6-terra, gpt-5.1-2025-11-13 and gpt-4o-mini-tts with their different dates, and the already shut down o3-mini and gpt-4.1-nano. Adding -w gave the same result, because grep treats - and . as non-word characters.
  • Searching for the table names alone missed two undated aliases, gpt-4o and gpt-4.1-mini.
  • All four methods missed the one name built from pieces. The method that includes aliases also matched a comment line that mentions gpt-4o. Read every hit yourself.
A dark panel listing the 12 lines found by the last search method, each with a file name, line number, the model name found, a shutdown date and a recommended replacement. Three lines with undated aliases carry question marks, and one of them is tagged as a comment. Below, a small table gives the found, missed, false match and comment line counts for the four methods.
Figure 2. Local sample search test (made by Rove · fictional files). This is the grep output of the last method, arranged with the shutdown date and recommended replacement added. A question mark marks an alias that is not in the January 14 table, so the date shown belongs to the snapshot it points to now. How an alias is handled after the shutdown is the open question covered above.

This is the command for the last method. It contains the 12 names from the December 11 table, the 5 snapshots from the January 14 table and 4 aliases.

ids='gpt-5|gpt-5-2025-08-07|gpt-5-mini|gpt-5-mini-2025-08-07|gpt-5-nano|gpt-5-nano-2025-08-07|gpt-5-pro|gpt-5-pro-2025-10-06|o3|o3-2025-04-16|o3-pro|o3-pro-2025-06-10|gpt-4o-2024-08-06|gpt-4o-2024-11-20|gpt-4o-mini-2024-07-18|gpt-4\.1-2025-04-14|gpt-4\.1-mini-2025-04-14|gpt-4o|gpt-4o-mini|gpt-4\.1|gpt-4\.1-mini'
grep -rnE "(^|[^A-Za-z0-9._-])($ids)([^A-Za-z0-9._-]|\$)" .

The pattern checks the character before and after each name. That stops gpt-5.6-sol from being matched as gpt-5, while "gpt-5" in quotes and names inside ft: IDs are still caught. These results come from 23 lines in fictional files, so check separately with another grep version or on a real repository. The search also matches names in comments and documentation that are not model settings, so look at each hit. And finding every name does not mean the migration is finished.

If someone else built it: three questions to ask

If you don’t read the code yourself, ask your developer or contractor these three things.

  1. Every OpenAI model name our service calls, including undated aliases and fine-tuned IDs that start with ft:.
  2. Where each name sits: code, deployment settings, automation tools, database.
  3. The official shutdown date for each name. Ask them to say so when a date has not been announced or still needs checking. Also ask who will change it before that date, and who will check the result.

Sources and further reading

As of this post’s date, November 28, 2026, the December 11 shutdown is less than two weeks away. Find the exact names and sort them by date, and you can decide what to change first.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

All posts