OpenAI GPT-5, o3, GPT-4o & GPT-4.1 Retirement Schedule and Migration Guide (2026–2027)
OpenAI will shut down gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, and o3-pro on 11 December 2026 — seven days from 4 December 2026 — followed by gpt-4o, gpt-4o-mini, gpt-4.1, and gpt-4.1-mini on 14 January 2027. Audio, TTS, Realtime, image, and transcription models exit across January and February 2027, and fine-tuned checkpoints follow their base model's exact cutoff. Replace pinned IDs with gpt-6.2-sol, gpt-6.1-terra, or another active model before requests stop being accepted.
QCode is an independent third-party model API service, not affiliated with or endorsed by OpenAI or Anthropic. Facts in this guide were verified on 2026-12-04 against the official documentation linked below.
Updated 2026-12-04
Key facts
- 2026-12-11 wave:
gpt-5,gpt-5-mini,gpt-5-nano,gpt-5-pro,o3, ando3-pro(snapshots and fine-tunes) stop accepting standard API requests (notice2026-06-11). - 2027-01-14 wave:
gpt-4o(2024-08-06,2024-11-20),gpt-4o-mini(2024-07-18),gpt-4.1(2025-04-14), andgpt-4.1-mini(2025-04-14) shut down (notice2026-10-14). - Audio, image, and endpoint cuts: TTS retires
2027-01-06, Realtime/Audio on2027-01-20,gpt-5.5-cyber-previewon2027-02-01,gpt-image-2on2027-02-10, andwhisper-1,gpt-4o-transcribe*, plus/v1/audio/translationson2027-02-26. - Official vs. QCode replacements: OpenAI maps
gpt-5/o3togpt-6.2-sol,gpt-5-minitogpt-6.1-terra, andgpt-4o/gpt-4.1/gpt-5-nanotogpt-6-luna. On QCode/models(2026-12-04),gpt-6.2-sol($2/$10 ×1.0),gpt-6.2-astra($8/$40 ×1.0), andgpt-6.1-terraare live;gpt-6-lunais not listed. - Pro-tier rule: Both
gpt-5-proando3-promap togpt-6.2-solwithreasoning.mode: proon the Responses API. - GPT-6.2 >272K tier: Exceeding 272K total input tokens switches the whole request to 2× input/cached input and 1.5× output.
- Anthropic schedule:
claude-sonnet-4-5retired2026-11-30(claude-sonnet-5-5);claude-opus-4-5retires2027-01-22(claude-opus-5-5).
Complete OpenAI API shutdown calendar (Dec 2026 – Feb 2027)
Every shutdown date below comes directly from OpenAI's official Deprecations documentation, checked on 2026-12-04, and applies equally to fine-tuned versions built on any listed base model.
| Shutdown Date | Notice Date | Affected Models, Snapshots, or Endpoints | Official Recommended Replacement |
|---|---|---|---|
| 2026-12-11 | 2026-06-11 | gpt-5, gpt-5-2025-08-07, o3, o3-2025-04-16 |
gpt-6.2-sol |
| 2026-12-11 | 2026-06-11 | gpt-5-mini, gpt-5-mini-2025-08-07 |
gpt-6.1-terra |
| 2026-12-11 | 2026-06-11 | gpt-5-nano, gpt-5-nano-2025-08-07 |
gpt-6-luna |
| 2026-12-11 | 2026-06-11 | gpt-5-pro (2025-10-06), o3-pro (2025-06-10) |
gpt-6.2-sol (reasoning.mode: pro) in Responses API |
| 2026-12-15 | 2026-05-07 | Self-serve fine-tuning job creation (Restricted access) | See OpenAI fine-tuning timeline |
| 2027-01-06 | 2026-10-01 | tts-1, tts-1-hd, gpt-4o-mini-tts (2025-03-20, 2025-12-15) |
gpt-realtime-2.1-mini |
| 2027-01-11 | 2026-11-18 | GPT-5.2, GPT-5.4, GPT-5.4 mini with EU data residency and service_tier: fast or priority |
Same models with service_tier: default, or GPT-6.2 family |
| 2027-01-14 | 2026-10-14 | gpt-4o (2024-08-06, 2024-11-20), gpt-4o-mini (2024-07-18), gpt-4.1 (2025-04-14), gpt-4.1-mini (2025-04-14) |
gpt-6-luna |
| 2027-01-20 | 2026-07-20 | gpt-realtime (2025-08-28), gpt-4o-realtime |
gpt-realtime-2.1 |
| 2027-01-20 | 2026-07-20 | gpt-realtime-mini (2025-12-15), gpt-4o-mini-realtime |
gpt-realtime-2.1-mini |
| 2027-01-20 | 2026-07-20 | gpt-audio (2025-08-28), gpt-4o-audio, gpt-audio-mini (2025-12-15), gpt-4o-mini-audio |
gpt-audio-1.5 |
| 2027-01-20 | 2026-07-20 | gpt-4o-mini-transcribe-2025-03-20 |
gpt-4o-mini-transcribe-2025-12-15 |
| 2027-02-01 | 2026-11-05 | gpt-5.5-cyber-preview |
Most capable cyber model available to your account |
| 2027-02-10 | 2026-11-10 | gpt-image-2, gpt-image-2-2026-04-21 |
gpt-image-2.6-sunburst or gpt-image-2.6-flare |
| 2027-02-26 | 2026-08-26 | whisper-1, gpt-4o-transcribe, gpt-4o-mini-transcribe (2025-12-15), gpt-4o-transcribe-diarize |
gpt-live-transcribe or gpt-transcribe |
| 2027-02-26 | 2026-08-26 | /v1/audio/translations endpoint |
/v1/realtime/translations |
This two-stage timeline hits reasoning and coding workloads (gpt-5, o3, and -pro variants) on 2026-12-11 — one week away as of 4 December 2026 — then removes the entire gpt-4o and gpt-4.1 text family on 2027-01-14, affecting older extraction pipelines and IDE fallback profiles.
At Shutdown, OpenAI states that a model "no longer accepts requests through the standard API." OpenAI's Error Codes guide documents 400, 401, 403, 429, and 503 (plus WebSocket errors) without formally documenting a post-shutdown 404 or model_not_found code, though developers commonly see 404 rejections on retired IDs. Treat any unretryable 4xx error on a pinned model string as a hard outage rather than a rate limit.
Official replacements vs. practical coding-agent models on QCode
OpenAI's official migration matrix points several retiring models to gpt-6-luna, so QCode users need a clear map of what is actually live on /models as of 2026-12-04 and how pricing compares across OpenAI, Anthropic, and Google endpoints.
| Retiring Model | OpenAI Official Replacement | Live Replacement on QCode (2026-12-04) | QCode Endpoint | Token Price (In / Out / Cache Read per 1M) |
|---|---|---|---|---|
gpt-5, o3 |
gpt-6.2-sol |
gpt-6.2-sol |
/openai/v1 or /openai |
$2.00 / $10.00 / $0.10 (×1.0) |
gpt-5-pro, o3-pro |
gpt-6.2-sol (reasoning.mode: pro) |
gpt-6.2-sol or gpt-6.2-astra |
/openai (Responses API) |
$2.00 / $10.00 (Sol) · $8.00 / $40.00 (Astra) |
gpt-5-mini |
gpt-6.1-terra |
gpt-6.1-terra |
/openai/v1 or /openai |
Live rate on /models |
gpt-4o, gpt-4.1, gpt-4o-mini, gpt-4.1-mini, gpt-5-nano |
gpt-6-luna |
gpt-6.2-sol or gpt-6.1-terra (gpt-6-luna not listed on QCode) |
/openai/v1 or /openai |
$2.00 / $10.00 (Sol) · live rate for Terra |
claude-sonnet-4-5 (retired 2026-11-30) |
claude-sonnet-5-5 |
claude-sonnet-5-5 |
/api |
$2.00 / $10.00 / $0.10 (×1.0, 1M flat) |
claude-opus-4-5 (retires 2027-01-22) |
claude-opus-5-5 |
claude-opus-5-5 |
/api |
$4.00 / $20.00 / $0.20 (×1.0, 1M flat) |
Two availability rules prevent cutover failures:
gpt-6-lunaandgpt-5.6-lunaare not listed on QCode. Do not copygpt-6-lunafrom OpenAI's table into a QCode client. Move OpenAI-protocol workloads on QCode togpt-6.2-sol(recommended GPT default) orgpt-6.1-terra;gpt-6.1-sol,gpt-6-sol,gpt-6-astra, andgpt-5.6-terraalso remain on/models.- Cross-provider replacements on one
cr_key: For low-costgpt-4o-miniorgpt-4.1-minipipelines, QCode servesclaude-haiku-5-5on/api($0.10/$0.50 up to 100K input tokens; $0.50/$2.50 above 100K, cache read $0.01) andgemini-4-neonon/gemini(live since2026-12-03, $3/$15 ×1.0, implicit cache read $0.15, 1M context). Supported Chinese models (deepseek-v4.1-flash,kimi-k3.1-pro,glm-5.3,qwen3.8-max) work on/apiand/openai/v1and are billed at the rate shown on /models.
Parallel Anthropic Claude 4.5 retirements
While auditing model strings, also clear Anthropic's winter retirements (Anthropic deprecations, pricing):
claude-sonnet-4-5(claude-sonnet-4-5-20250929): Deprecated2026-09-30, retired2026-11-30on Anthropic-operated platforms (still deprecated on Amazon Bedrockbedrock-runtime). Retired Claude API IDs return HTTP404 not_found_error; replace withclaude-sonnet-5-5($2/$10, 1M flat).claude-opus-4-5(claude-opus-4-5-20251101): Deprecated2026-11-23, retires2027-01-22— replace withclaude-opus-5-5($4/$20, 1M flat).claude-haiku-4-5(claude-haiku-4-5-20251001): Active; no retirement date announced (not sooner than2026-10-15).
Step-by-step migration checklist: audit IDs and check shutdown_date
Before changing a single client config, find every hardcoded model slug in code, CI secrets, and local agent dotfiles, then verify live availability against the actual /models endpoint you call.
1. Audit repositories and local CLI configs for retiring model strings
Run a fast regex sweep across your repository and home dotfiles (~/.codex, ~/.claude, ~/.config/opencode, .env files) to surface both exact model IDs and fine-tune prefixes (ft:gpt-4o-..., ft:gpt-4.1-...):
# Audit current repo and local agent configs for retiring OpenAI & Claude 4.5 IDs
rg -n --hidden --glob '!.git' \
'(gpt-5(-(mini|nano|pro|2025-[0-9-]+))?|o3(-pro|-2025-[0-9-]+)?|gpt-4o(-(mini|audio|realtime|transcribe)[a-z0-9-]*)?|gpt-4\.1(-mini)?(-2025-[0-9-]+)?|tts-1(-hd)?|whisper-1|gpt-image-2|claude-(sonnet|opus)-4-5)' \
. ~/.codex ~/.claude ~/.config/opencode 2>/dev/null || true
Check matches for retry fallbacks (often hardcoded to gpt-4o or gpt-4o-mini), eval scripts pinning snapshots like gpt-4.1-2025-04-14, and fine-tuned ft: IDs tied to retiring base models.
2. Check shutdown_date on OpenAI and live QCode models
OpenAI exposes an optional shutdown_date field on GET /v1/models (Deprecations docs). On QCode, unauthenticated or invalid-key calls to GET /openai/v1/models return HTTP 401 JSON (invalid_api_key), while a valid Bearer cr_your_key returns HTTP 200 with live OpenAI-protocol model IDs:
# Check shutdown_date metadata directly against OpenAI (requires OPENAI_API_KEY)
curl -sS https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" \
| jq -r '.data[] | select(.shutdown_date != null) | "\(.shutdown_date)\t\(.id)"' \
| sort
# Verify live GPT-6.2 / GPT-6.1 replacement IDs on QCode
curl -sS https://api.qcode.cc/openai/v1/models \
-H "Authorization: Bearer cr_your_key" \
| jq -r '.data[].id' \
| grep -E '^gpt-6' | sort
Validate the 200 list from https://api.qcode.cc/openai/v1/models before rolling new model environment variables into production.
Switching endpoints: Chat Completions vs. Responses API and the 272K context tier
Migrating from gpt-4o, gpt-4.1, gpt-5, or o3 to gpt-6.2-sol is mostly a model-ID swap on standard chat apps, unless you are migrating gpt-5-pro / o3-pro or running prompts larger than 272K tokens.
Codex CLI and OpenAI Responses API (/openai)
For Codex CLI (~/.codex/config.toml, documented in OpenAI's Codex config reference), point your provider block at https://api.qcode.cc/openai with wire_api = "responses" and switch model to gpt-6.2-sol. Both /openai/v1/responses and /openai/responses are routed on QCode:
# ~/.codex/config.toml
model_provider = "qcode"
model = "gpt-6.2-sol"
model_reasoning_effort = "high"
[model_providers.qcode]
name = "qcode"
base_url = "https://api.qcode.cc/openai"
wire_api = "responses"
requires_openai_auth = true
Put your key in ~/.codex/auth.json as {"OPENAI_API_KEY": "cr_your_key"} when using requires_openai_auth = true (or omit requires_openai_auth and use env_key — never mix both).
Smoke-testing Responses (reasoning.mode: pro) and Chat Completions (/openai/v1)
If you previously called gpt-5-pro or o3-pro, OpenAI's Deprecations page directs you to gpt-6.2-sol with reasoning.mode: pro on the Responses API. For legacy gpt-4o / gpt-4.1 services using Chat Completions, keep OPENAI_BASE_URL="https://api.qcode.cc/openai/v1" and swap the model string to gpt-6.2-sol (or gpt-6.1-terra):
# 1) Responses API smoke test for gpt-5-pro / o3-pro replacements
curl -sS https://api.qcode.cc/openai/v1/responses \
-H "Authorization: Bearer cr_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.2-sol",
"reasoning": {"mode": "pro"},
"input": "List three migration checks when moving from o3-pro to gpt-6.2-sol."
}'
# 2) Chat Completions smoke test for gpt-4o / gpt-4.1 replacements
curl -sS https://api.qcode.cc/openai/v1/chat/completions \
-H "Authorization: Bearer cr_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.2-sol",
"messages": [{"role": "user", "content": "Return {\"status\":\"ok\"} as valid JSON."}]
}'
Budget gotcha: 272K long-context tier and protocol boundaries
On GPT-6.2, exceeding 272K total input tokens switches the whole request to OpenAI's long-context tier (2× input and cached input, 1.5× output): gpt-6.2-sol shifts from $2/$10 ($0.10 cache read) to $4/$15 ($0.20 cache read), and gpt-6.2-astra shifts from $8/$40 ($0.40 cache read) to $16/$60 ($0.80 cache read).
For 300K–900K repo contexts, compare that jump against flat-rate 1M models: claude-sonnet-5-5 ($2/$10) or claude-opus-5-5 ($4/$20) on /api, or gemini-4-neon ($3/$15, $0.15 implicit cache read) on /gemini. Keep QCode's protocol boundaries strict: gpt-* runs only on /openai/v1 or /openai, claude-* only on /api, and gemini-4-neon only on /gemini.
FAQ
When do GPT-5, o3, GPT-4o, and GPT-4.1 stop accepting API requests?
Checked on 2026-12-04, gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, and o3-pro (plus dated snapshots) stop accepting requests on 11 December 2026. gpt-4o (2024-08-06, 2024-11-20), gpt-4o-mini (2024-07-18), gpt-4.1 (2025-04-14), and gpt-4.1-mini (2025-04-14) shut down on 14 January 2027.
What happens to fine-tuned GPT-4o, GPT-4.1, and GPT-5 models on shutdown day?
Fine-tuned models follow the exact shutdown date of their base model: gpt-5 fine-tunes stop on 2026-12-11, and gpt-4o or gpt-4.1 fine-tunes stop on 2027-01-14. Self-serve fine-tuning job creation also enters restricted access on 2026-12-15.
Does QCode offer gpt-6-luna as a drop-in replacement for GPT-4o and GPT-4.1?
No. Although OpenAI maps gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, and gpt-5-nano to gpt-6-luna, neither gpt-6-luna nor gpt-5.6-luna is listed on QCode /models as of 2026-12-04. On QCode, migrate OpenAI-protocol workloads to gpt-6.2-sol ($2/$10 ×1.0) or gpt-6.1-terra, or route lightweight non-OpenAI tasks to claude-haiku-5-5 on /api.
How do I migrate from gpt-5-pro or o3-pro without losing pro-tier reasoning?
OpenAI replaces gpt-5-pro (2025-10-06) and o3-pro (2025-06-10) with gpt-6.2-sol using reasoning.mode: pro in the Responses API. On QCode, send requests to https://api.qcode.cc/openai/v1/responses (or set base_url = "https://api.qcode.cc/openai" in Codex CLI) with "reasoning": {"mode": "pro"}, or choose gpt-6.2-astra ($8/$40 ×1.0).
What error does OpenAI return after a model reaches its shutdown date?
OpenAI states that at Shutdown "The model no longer accepts requests through the standard API" and recommends polling shutdown_date on GET /v1/models. Its formal Error Codes page lists 400, 401, 403, 429, and 503 without explicitly documenting a post-shutdown 404 / model_not_found code, so alert immediately on any unretryable 4xx error for pinned IDs.
Are any Anthropic Claude models retiring during the same winter 2026–2027 window?
Yes. On Anthropic-operated platforms, claude-sonnet-4-5 (20250929) retired on 30 November 2026 (claude-sonnet-5-5), and claude-opus-4-5 (20251101) retires on 22 January 2027 (claude-opus-5-5). Retired Claude API models return HTTP 404 not_found_error; claude-haiku-4-5 stays active with no announced cutoff.
Migrating across GPT-6.2, Claude 5.5, and Gemini 4 Neon with one key
To benchmark gpt-6.2-sol, gpt-6.1-terra, claude-opus-5-5, claude-sonnet-5-5, and gemini-4-neon before the December 11 and January 14 cutoffs, one QCode cr_ key covers /openai, /api, and /gemini at official upstream token prices ×1.0. Test migrations on a 7-day pay-as-you-go pack starting at $4 ($30 quota, stackable on renewal), or run daily production pipelines on 30-day plans from $9 ($5/day) to $53.57 ($35/day) and $252.57 ($4,000/month, no daily cap) resetting daily at 00:00 UTC+8. See /pay-as-you-go, /pricing, and /models.