GPT-4o API retirement (January 14, 2027): what to switch to and how to test it
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
| Model | Announced | Shutdown | OpenAI's replacement |
|---|---|---|---|
gpt-4o-2024-08-06, gpt-4o-2024-11-20 | Oct 14, 2026 | Jan 14, 2027 | gpt-6-luna |
| GPT-4o mini | Oct 14, 2026 | Jan 14, 2027 | gpt-6-luna |
| GPT-4.1, GPT-4.1 mini | Oct 14, 2026 | Jan 14, 2027 | gpt-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
- Search your code and config for
gpt-4oandgpt-4.1. Include environment variables, prompt-management tools and database rows that store a model name. - Open your automation tools and check every OpenAI step's model field.
- 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.
- From code,
GET /v1/modelsreturns each model'sshutdown_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:
- Output format: JSON with a missing or renamed field, extra text around the JSON, a different date format.
- Length: newer models are often wordier, and your UI or word limit may not like it.
- Tone and refusals: a customer-facing reply that is now more formal, or a request that is now refused.
- Cost and speed: a different price per token, and reasoning models can spend many more output tokens than GPT-4o did, so the bill can move even when the list price looks similar.
The test that catches these takes an afternoon:
- Collect 30–100 real prompts your app sends, with their inputs. How to build that test set.
- 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.
- Run them on GPT-4o today to get your baseline, then on the replacement and one or two alternatives from other labs.
- 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.