GPT-5.4 Retired from Codex on August 31: What to Use Now
As of 2026-10-07, OpenAI's Codex models page states that gpt-5.4 and gpt-5.4-mini retired from Codex with ChatGPT sign-in on 2026-08-31, and now maps gpt-5.4 to gpt-6-sol and gpt-5.4-mini to gpt-6-luna (when available to your plan and client). The OpenAI API and Codex authenticated with your own API key aren't affected. The mapping at the 2026-07-31 announcement was gpt-5.6-terra and gpt-5.6-luna, kept here as the historical record. As of 2026-10-08, QCode does not support gpt-6-luna or gpt-5.6-luna for now (both removed from /models); please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra.
The retirement only applies to Codex signed in with a ChatGPT account. OpenAI states that the OpenAI API and Codex authenticated with your own API key aren't affected by the GPT-5.4 retirement, and GPT-5.4 is still listed in the OpenAI API model catalog. That said, OpenAI's replacements for ChatGPT sign-in are now the GPT-6 generation, and for complex coding and agentic workflows it recommends GPT-6.1 Sol, so API-based projects are worth evaluating for migration too.
Last verified: 2026-10-07 (OpenAI's Codex models page now uses the past tense, retired … on August 31, 2026, with gpt-6-sol and gpt-6-luna as replacements).
Migration Mapping and Price Comparison
The table shows the official mapping at the 2026-07-31 announcement (gpt-5.4 to gpt-5.6-terra, gpt-5.4-mini to gpt-5.6-luna) with the prices recorded then, kept for reference. As of 2026-10-07 the official replacements are gpt-6-sol and gpt-6-luna. As of 2026-10-08, QCode does not support gpt-6-luna or gpt-5.6-luna for now (both removed from /models); please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra.
| Old model to new model | Old price (in/out, per million tokens) | New price (in/out, per million tokens) | Change | Note |
|---|---|---|---|---|
| gpt-5.4-mini to gpt-5.6-luna | $0.75 / $4.50 | $0.20 / $1.20 | Cheaper and stronger | Luna got another 80% price cut on 7/30, now well below 5.4-mini's price |
| gpt-5.4 to gpt-5.6-terra | $2.50 / $15.00 | $2.00 / $12.00 | Cheaper and stronger | Terra got a 20% price cut on 7/30, with higher benchmark scores than 5.4 |
| (If you need more) gpt-5.6-sol | — | $5.00 / $30.00 | Flagship tier | OpenAI hasn't published a 5.4-to-sol migration mapping; sol is the strongest of the three tiers |
What to Know Before You Migrate
What exactly is being retired
It's the ChatGPT-signed-in Codex: the model list you see when signing into the Codex CLI, IDE extension or desktop app with a ChatGPT account (including Plus / Pro / Work). OpenAI states that the OpenAI API and Codex authenticated with your own API key aren't affected; with an API key, Codex model availability follows the API models available to your key.
Why migrate even if you're not directly affected
As of 2026-10-07, the official replacement GPT-6 Sol lists at $2 input and $10 output per 1M tokens on the API, below GPT-5.4's $2.5 input and $15 output (OpenAI API changelog and model page). Also note that GPT-5.5 retires from ChatGPT, ChatGPT Work and Codex on 2026-10-14, so don't make gpt-5.5 your new default when moving off 5.4.
Saved configs, custom agents, scheduled tasks
OpenAI's migration guidance at the 2026-07-31 announcement said to update workspace defaults, saved model settings, managed configurations, custom agents and scheduled tasks before the cutoff, replacing gpt-5.4 with gpt-5.6-terra and gpt-5.4-mini with gpt-5.6-luna. As of 2026-10-07 the OpenAI Codex models page lists gpt-6-sol and gpt-6-luna as the replacements instead. As of 2026-10-08, QCode does not support gpt-6-luna or gpt-5.6-luna for now (both removed from /models); please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra.
Three Steps to Migrate
Worth doing all three regardless of how you authenticate.
1. Confirm how you authenticate
Check how you authenticate first: Codex signed in with a ChatGPT account no longer offers gpt-5.4 / gpt-5.4-mini since 2026-08-31, while API-key Codex and direct OpenAI API calls aren't affected by this retirement.
2. Swap models by task
Swap to the current official replacements: gpt-5.4 to gpt-6-sol and gpt-5.4-mini to gpt-6-luna (when available to your plan and client; in Enterprise and Edu an administrator must enable Luna first). For complex coding and agentic workflows OpenAI recommends GPT-6.1 Sol (gpt-6.1-sol). If you call through QCode: as of 2026-10-08 QCode does not support gpt-6-luna for now, so please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra.
3. Update saved configurations
Update saved configurations: wherever gpt-5.4 or gpt-5.4-mini appears in workspace defaults, saved model settings, managed configurations, custom agents or scheduled tasks, swap in an available replacement.
Timeline
Four key dates from 5.4's launch to its retirement.
GPT-5.4 and GPT-5.4 Pro launch
OpenAI releases the GPT-5.4 family at an official $2.50/$15.00 (per million tokens) input/output price.
GPT-5.6's three tiers (Sol/Terra/Luna) launch
The new generation arrives, with terra positioned as 5.4's successor and luna as 5.4-mini's.
Terra cut 20%, Luna cut 80%
Terra drops to $2.00/$12.00, Luna to $0.20/$1.20, widening the price gap with the 5.4 family further.
GPT-5.4 / GPT-5.4-mini retire from ChatGPT-signed-in Codex
Official migration path at the 2026-07-31 announcement: gpt-5.4 to gpt-5.6-terra, gpt-5.4-mini to gpt-5.6-luna. API-key access isn't directly affected. As of 2026-10-07, OpenAI's Codex models page lists gpt-5.4 to gpt-6-sol and gpt-5.4-mini to gpt-6-luna instead. As of 2026-10-08, QCode does not support gpt-6-luna or gpt-5.6-luna for now (both removed from /models); please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra.
Primary Sources
OpenAI's Codex models page (learn.chatgpt.com/docs/models, captured 2026-10-07): gpt-5.4 and gpt-5.4-mini retired from ChatGPT-signed-in Codex on 2026-08-31, replaced by gpt-6-sol / gpt-6-luna, with the OpenAI API and API-key Codex unaffected. Codex changelog (learn.chatgpt.com/docs/changelog, entry dated 2026-07-31): the original announcement and the gpt-5.6-terra mapping at the time. OpenAI API model catalog and changelog (developers.openai.com, captured 2026-10-07): GPT-5.4 still listed, GPT-6 Sol list price. Historical price table: LiteLLM model_prices_and_context_window.json.
FAQ
Will my API key still work with gpt-5.4 after August 31?
Yes. OpenAI states that the OpenAI API and Codex authenticated with your own API key aren't affected by the GPT-5.4 retirement, and as of 2026-10-07 GPT-5.4 is still listed in the OpenAI API model catalog. With an API key, Codex model availability follows the API models available to your key.
Is gpt-5.6-terra just gpt-5.4 renamed?
No, they are two different model generations. At the 2026-07-31 announcement OpenAI named gpt-5.6-terra as the replacement for gpt-5.4; as of 2026-10-07 the OpenAI Codex models page lists gpt-6-sol as its replacement instead.
What happens if I do nothing?
If you sign in to Codex with ChatGPT: gpt-5.4 / gpt-5.4-mini retired on 2026-08-31, and OpenAI asks you to update workspace defaults, saved model settings, managed configurations, custom agents and scheduled tasks with an available replacement (gpt-6-sol / gpt-6-luna). If you use an API key: this retirement doesn't affect you, though OpenAI's replacements for ChatGPT sign-in are now the GPT-6 generation.
Which replacement models can I use on QCode now?
As of 2026-10-08, gpt-6-sol, gpt-6.1-sol, gpt-5.6-terra and gpt-5.6-sol are all callable on QCode, switchable with the same key by changing the model field. QCode does not support gpt-6-luna or gpt-5.6-luna for now (both removed from /models): OpenAI's replacement for gpt-5.4-mini is gpt-6-luna, but on QCode please use another GPT model, such as gpt-6.1-sol, gpt-6-sol or gpt-5.6-terra. Usage is billed per token; per-model rates are on /models.
Create a QCode account
One key across Claude, GPT and Chinese models, billed per token — live rates on /models.
Related Guides
Sol vs Terra vs Luna: How to Choose
Tier selection guidance for coding workloads
GPT-5.6 Pricing Guide
Full price table and cache pricing for all three tiers
AI Coding Models 2H 2026: How to Choose
The full landscape and a decision framework
This site is not affiliated with OpenAI. Retirement scope and dates follow OpenAI's official pages, and model availability is as listed on /models. Information here is as of 2026-10-07.