Guides · Choose, switch and retire models

GPT-4o API retirement (January 14, 2027): what to switch to and how to test it

Updated 2026-12-02

Short answer: on October 14, 2026 OpenAI announced that gpt-4o (the 2024-08-06 and 2024-11-20 snapshots), gpt-4o-mini, gpt-4.1 and gpt-4.1-mini shut down in the API on January 14, 2027. OpenAI's recommended replacement is gpt-6-luna. After the shutdown date the old model IDs no longer accept requests. Run your own prompts on the replacement before you change the model ID in production.

What exactly is being shut down

ModelAnnouncedShutdownOpenAI's replacement
gpt-4o-2024-08-06, gpt-4o-2024-11-20Oct 14, 2026Jan 14, 2027gpt-6-luna
GPT-4o miniOct 14, 2026Jan 14, 2027gpt-6-luna
GPT-4.1, GPT-4.1 miniOct 14, 2026Jan 14, 2027gpt-6-luna

Source: OpenAI's deprecations page, read on December 2, 2026. Check it for the exact list of IDs, which can include more snapshots than shown here.

This is about the API. ChatGPT, Azure OpenAI and other platforms that host these models follow their own schedules: check your platform's page, not just OpenAI's.

What happens on January 14

OpenAI defines a shut-down model as one that "no longer accepts requests through the standard API". The page doesn't describe an automatic redirect to a newer model, so plan as if every call to the old ID fails from that day. Anything still pointing at it breaks: your app, scheduled jobs, n8n / Make / Zapier steps, and scripts nobody remembers writing.

Find every place you use these models

  1. Search your code and config for gpt-4o and gpt-4.1. Include environment variables, prompt-management tools and database rows that store a model name.
  2. Open your automation tools and check every OpenAI step's model field.
  3. Check the Usage page of your OpenAI dashboard, grouped by model, for the last 30 days. Anything with traffic on these models is something you missed.
  4. From code, GET /v1/models returns each model's shutdown_date: OpenAI recommends checking that field.

Don't just change the model ID: test first

The recommended replacement is newer and usually stronger, but "stronger" on benchmarks doesn't mean "the same" on your prompts. The things that usually break in a swap:

The test that catches these takes an afternoon:

  1. Collect 30–100 real prompts your app sends, with their inputs. How to build that test set.
  2. Write down what a correct answer looks like for each: exact checks (valid JSON, required fields, label, max words) where you can, a plain-English rule checked by a second model where you can't.
  3. Run them on GPT-4o today to get your baseline, then on the replacement and one or two alternatives from other labs.
  4. Compare pass rate, cost per 1,000 runs and p95 latency. Fix the prompts that fail, re-run, then switch.

The full method, with a results table you can copy, is in how to compare AI models on your own prompts.

Is this a good moment to try another lab?

Yes, if you're re-testing anyway. A forced migration costs the same test whether you stay with OpenAI or not, and there are models from several labs at very different prices: see the price comparison. Run the same test set on two or three candidates and pick on your numbers.

Next time, hear about it early

OpenAI gives at least 6 months' notice for generally available models and emails customers who are actively using them. Anthropic and Google have their own rules: see AI model deprecations: OpenAI, Anthropic and Google.

Let every new model take your test, automatically

Modeldrop (in development) keeps your prompts and your rules for a correct answer. Every time a major lab releases a model, it runs your prompts on it, compares the results with the model you use today and emails you the verdict: how many pass, what it would cost at your volume and how fast it is. No API keys, no eval code.

See the founding offer

Related guides