Model migration · Guide
GPT-4o shutdown: a migration checklist before January 14, 2027
Checked against OpenAI and Microsoft’s deprecation pages on November 28, 2026
Short answer: OpenAI removes gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini from the API on January 14, 2027. Changing the model name is the easy part. The work is proving each feature still behaves on the replacement, gpt-6-luna, before you switch. With about two weeks of side-by-side running needed, most teams should start by mid-December 2026.
The checklist
- Find every call to a retiring model. Search code, config and environment variables for gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini, including fine-tune IDs (they start with ft:gpt-4o or ft:gpt-4.1). Check scheduled jobs, internal tools and anything a no-code platform calls on your behalf. Note whether each one goes to OpenAI or Azure: the dates differ.
- Write down what each feature must do. For each call: the output format it must return, any tools it calls, and what a wrong answer costs. This becomes your pass/fail list.
- Build a test set from real traffic. Pull a few hundred real inputs from your logs, not clean demo examples. Redact or replace personal data first. Keep the current model's outputs as the baseline.
- Check structure with code first. Run the replacement on the test set and check JSON schema validity, tool-call order and stop reasons automatically. Format breaks are the most common failure and the cheapest to catch.
- Then judge the answers. Compare quality with your team's own verdicts on a sample, and use a grader from a different model family where you automate it, since graders favour their own family's answers.
- Re-tune prompts and settings. Newer models reason by default, answer at different lengths and bill reasoning tokens as output. Adjust prompts, reasoning settings and token limits, and re-check cost and latency per request.
- Shadow-run, then canary. Run the new model beside the old one on live traffic for about two weeks without showing its answers. Then send 1–10% of traffic to it behind a flag you can switch back.
- Cut over before the deadline, and keep the tests. Switch fully with time to spare, and keep the test set: the next retirement will come, and it turns the next migration into a rerun instead of a project.
What usually breaks
- Hard errors. Removed parameters and endpoints return errors. Easy to spot, and usually the smallest part of the work.
- Silent changes. The new model returns differently shaped answers, calls tools differently or refuses different things. Nothing errors, so nobody notices until a customer does.
- Cost and speed. Reasoning tokens bill as output, so the same request can cost more and take longer.
- Fine-tunes. gpt-6-luna can’t be fine-tuned, and OpenAI stops new fine-tuning jobs on December 15, 2026. See what to do with fine-tuned models.