As of August 2026 Codex runs the GPT-5.6 family: gpt-5.6-sol (flagship), gpt-5.6-terra (balanced), and gpt-5.6-luna (fast and cheapest), plus gpt-5.3-codex-spark as a text-only research preview for ChatGPT Pro. Every model id that carried -codex in its name from the 5.1 and 5.2 generations was shut down on the API on 23 July 2026, and gpt-5.4 and gpt-5.4-mini leave Codex on 31 August 2026. Pin a model with codex -m <model> for one run, or model = "gpt-5.6-terra" in ~/.codex/config.toml for every run.
- The live list is short: Sol, Terra, Luna, plus Spark on Pro.
- There is no
gpt-5.6-codex. OpenAI stopped shipping Codex-suffixed models after 5.3. - Every
-codexid from 5.1 and 5.2 was shut down on the API on 23 July 2026. gpt-5.4andgpt-5.4-minileave Codex on 31 August 2026. Move to Terra and Luna.- One flag pins a run:
codex -m gpt-5.6-luna. One line pins every run. - Luna is 25x cheaper per token than Sol. Routing by task is the whole game.
The three models Codex runs in August 2026
OpenAI rolled the GPT-5.6 family out to ChatGPT, Codex and the API on 9 July 2026. It replaced a naming scheme that had produced a new Codex-suffixed model roughly every two months, and the new one has no Codex variant at all: the same three general models serve the chat window, the CLI, the IDE extension and Codex cloud.
| Model id | What OpenAI calls it | Reach for it when |
|---|---|---|
gpt-5.6-sol | Flagship, strongest capability for complex coding, computer use, research and cybersecurity | The task already resisted one attempt |
gpt-5.6-terra | Balanced, competitive with GPT-5.5 at lower cost | Ordinary feature work, most of the day |
gpt-5.6-luna | Fast and affordable, lowest cost in the family | The spec is complete and the edit is mechanical |
gpt-5.3-codex-spark | Text-only research preview for near-instant iteration | You are on Pro and want the tight loop |
All three take the same reasoning ladder: low, medium, high, extra high, max and ultra. Effort moves cost and latency far more than most people expect, so it is worth treating as a second dial rather than something you set once and forget. The CLI reads it from model_reasoning_effort, and you can override it for a single run.
The Continuum coding-agent card for the flagship is GPT-5.6 Sol.
gpt-5.6-sol: the flagship, and the one to use least
Sol is the strongest model in the family and the default in most Codex installs. It is also the most expensive by a wide margin, and the reason people burn a weekly cap in three days.
| Model | Input | Cached input | Output |
|---|---|---|---|
gpt-5.6-sol | $5.00 | $0.50 | $30.00 |
gpt-5.6-terra | $2.00 | $0.20 | $12.00 |
gpt-5.6-luna | $0.20 | $0.02 | $1.20 |
The gap between Sol and Luna is 25x on input and 25x on output. That is not a rounding difference between two similar models, it is the difference between a habit that costs $40 a month and one that costs $1,000. On a subscription the same ratio shows up in the credit rate card: 125 credits per million input tokens on Sol against 5 on Luna.
gpt-5.6-terra and gpt-5.6-luna: the two you should use more
Terra
OpenAI positions Terra as competitive with GPT-5.5, the previous generation flagship, at a fraction of Sol's price. That framing is the point: a model that matched the best available option four months ago is not a compromise, it is the sane default for feature work. It is also the migration target for anyone still on gpt-5.4.
Luna
Luna is the cheapest model in the family and the one most people never try. It is genuinely good at work where the thinking has already been done: renames across a repository, applying a spec you wrote, generating a commit message, converting a fixture, writing the boring half of a test suite. Handing that class of task to Sol is paying a research model to do typing.
# mechanical, complete spec, no judgement required
codex -m gpt-5.6-luna "rename Config.Timeout to Config.RequestTimeout across the repo"
# ordinary feature work
codex -m gpt-5.6-terra "add pagination to the /orders endpoint, follow the pattern in /invoices"
# the thing that already failed twice
codex -m gpt-5.6-sol -c model_reasoning_effort="high" "why does the worker deadlock under load?"
gpt-5.3-codex-spark: the last model with codex in its name
Spark arrived in research preview on 12 February 2026, a week after GPT-5.3-Codex itself, as a smaller text-only sibling built for near-instant iteration rather than depth. It is still listed in Codex today, and it is the only surviving member of the Codex-suffixed generation.
| Property | Detail |
|---|---|
| Model id | gpt-5.3-codex-spark |
| Status | Research preview |
| Plan | ChatGPT Pro only |
| Input | Text only, no images |
| Best at | Tight edit and check loops where latency is the cost |
| Not for | Anything needing a screenshot, a diagram, or long deliberation |
Which ChatGPT plan and which API tier serves each model
Codex has two independent rails and they do not carry the same models. The subscription rail is what the CLI uses after codex login; the API rail is what an API key uses, and what CI needs.
| Plan | Models it can select |
|---|---|
| Free | Terra, at small volumes |
| Go, $8/mo | Terra, lightweight use |
| Plus, $20/mo | Sol, Terra and Luna, with effort selectable per model |
| Pro, $200/mo | Sol, Terra, Luna, plus gpt-5.3-codex-spark |
| Business and Enterprise | The full family, extended with workspace credits |
| API key | The full family, priced per token, no windows |
Every surface draws on the same plan: the CLI, the openai.chatgpt IDE extension, the ChatGPT desktop app in Codex mode, Codex cloud and the iOS app all count against one set of limits, not five. The API is the exception, and the only rail with no rolling window and no weekly cap.
How to pin a model in the CLI
Four scopes, from narrowest to widest. Verified against codex-cli 0.144.1.
# -m and --model are the same flag
codex -m gpt-5.6-terra
codex --model gpt-5.6-luna
# non-interactive, same flag
codex exec -m gpt-5.6-luna "write a conventional commit message for the staged diff"
# model plus effort, for one run only
codex -m gpt-5.6-sol -c model_reasoning_effort="xhigh"
model = "gpt-5.6-terra"
model_reasoning_effort = "medium"
# -p layers $CODEX_HOME/<name>.config.toml over your base config
# so ~/.codex/cheap.config.toml holds the mechanical-work settings
codex -p cheap "apply the rename in RENAME.md"
Inside a session, /model switches without losing the conversation, which is the right move the moment a task turns out to be more mechanical or more stubborn than it looked. The TUI shows the active model, so there is never a reason to guess which one is answering.
Codex 5.1: gpt-5.1-codex, gpt-5.1-codex-max and gpt-5.1-codex-mini
The 5.1 generation is where the Codex-suffixed naming peaked, and it is why so many search results still name models you cannot select. Three ids shipped in November 2025 and all three are gone.
| Model id | Shipped | What it was |
|---|---|---|
gpt-5.1-codex | 13 November 2025 | The coding-tuned variant of GPT-5.1 |
gpt-5.1-codex-max | 19 November 2025 | Long-horizon agentic model, first trained natively to work across multiple context windows via compaction |
gpt-5.1-codex-mini | 13 November 2025 | The cheap tier of the 5.1 Codex line |
Codex-Max is the one worth remembering, because its headline capability did not disappear with it. Compaction, the technique that let a single task run coherently across millions of tokens and several hours, is now ordinary behaviour rather than a model you select. If you came here looking for gpt-5.1-codex-max because you needed multi-hour sessions, you already have them.
Codex 5.3: gpt-5.3-codex, and where the 5.3 codex line went
GPT-5.3-Codex landed on 5 February 2026 and was, briefly, the most talked-about coding model of the year. It is also the clearest example of the thing this page exists to prevent: it was the recommended replacement in April, and it was gone from ChatGPT sign-in by summer.
- 5 February 2026.
gpt-5.3-codexships, multimodal, initially Pro-gated. - 12 February 2026.
gpt-5.3-codex-sparkfollows in research preview, text only. - 14 April 2026. The 5.1 and 5.2 Codex ids retire, and
gpt-5.3-codexis named as one of their replacements. - Mid 2026.
gpt-5.3-codexitself stops being offered to ChatGPT-signed-in Codex accounts. Spark survives on Pro.
The practical reading of the 5.3 story: search volume for a model name lags its availability by months. If you arrived here searching "codex 5.3" or "5.3 codex", the honest answer is that the thing you read about is either Pro-only preview software or gone, and the model you actually want is gpt-5.6-terra.
Every Codex model, and what replaced it
| Model id | Shipped | Status in August 2026 | Replacement |
|---|---|---|---|
gpt-5-codex | September 2025 | API shutdown 23 July 2026 | gpt-5.6-sol |
gpt-5.1-codex | November 2025 | API shutdown 23 July 2026 | gpt-5.6-sol |
gpt-5.1-codex-max | November 2025 | API shutdown 23 July 2026 | gpt-5.6-sol |
gpt-5.1-codex-mini | November 2025 | API shutdown 23 July 2026 | gpt-5.6-terra |
gpt-5.2-codex | December 2025 | API shutdown 23 July 2026 | gpt-5.6-sol |
gpt-5.3-codex | February 2026 | Not offered on ChatGPT sign-in | gpt-5.6-terra |
gpt-5.3-codex-spark | February 2026 | Live, Pro only, research preview | None needed |
gpt-5.4 | March 2026 | Leaves Codex 31 August 2026 | gpt-5.6-terra |
gpt-5.4-mini | March 2026 | Leaves Codex 31 August 2026 | gpt-5.6-luna |
gpt-5.5 | April 2026 | Superseded by the 5.6 family | gpt-5.6-terra |
gpt-5.6-sol | July 2026 | Live | Current |
gpt-5.6-terra | July 2026 | Live | Current |
gpt-5.6-luna | July 2026 | Live | Current |
Questions people ask
What models does Codex use in 2026?
Codex runs the GPT-5.6 family: gpt-5.6-sol, gpt-5.6-terra and gpt-5.6-luna, which rolled out on 9 July 2026. ChatGPT Pro accounts can also select gpt-5.3-codex-spark, a text-only research preview. There is no Codex-suffixed model in the 5.6 generation.
Is there a gpt-5.6-codex model?
No. OpenAI stopped shipping Codex-suffixed models after the 5.3 generation. The general GPT-5.6 models serve Codex directly, so gpt-5.6-sol is what you select where you would previously have selected a -codex id.
What happened to gpt-5.1-codex-max?
It was removed from Codex with ChatGPT sign-in on 14 April 2026 and shut down on the API on 23 July 2026. OpenAI points migrations at gpt-5.6-sol. Its signature capability, compaction across multiple context windows, is now standard behaviour rather than a model you select.
Can I still use gpt-5.3-codex?
Not through Codex with a ChatGPT sign-in. The 5.3 Codex model is no longer offered there, though gpt-5.3-codex-spark remains available to ChatGPT Pro as a research preview. The API and the subscription deprecate on separate schedules, so check OpenAI's deprecations page before pinning it in anything.
Which Codex model is cheapest?
gpt-5.6-luna, at $0.20 per million input tokens and $1.20 per million output tokens on the API, against $5.00 and $30.00 for gpt-5.6-sol. That is a 25x gap, and it is the single largest lever on what Codex costs you.
How do I change the model in Codex?
Pass codex -m gpt-5.6-terra for one run, set model = "gpt-5.6-terra" in ~/.codex/config.toml for every run, or type /model inside a session to switch mid-conversation without losing context.
What reasoning effort levels does Codex support?
Low, medium, high, extra high, max and ultra, set with model_reasoning_effort in config.toml or overridden per run with -c model_reasoning_effort="high". Effort moves cost and latency substantially, so treat it as a second dial rather than something set once.
Do I need ChatGPT Pro to get the best Codex model?
No. Plus at $20 a month selects gpt-5.6-sol, the flagship, and lets you set effort per model. Pro at $200 adds much higher limits and access to gpt-5.3-codex-spark, but it does not unlock a better general model.
When do gpt-5.4 and gpt-5.4-mini stop working in Codex?
31 August 2026 for Codex with ChatGPT sign-in. OpenAI recommends replacing gpt-5.4 with gpt-5.6-terra and gpt-5.4-mini with gpt-5.6-luna in saved configurations, custom agents and scheduled tasks.
Sources
Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.
- Codex documentation: models model ids, descriptions, reasoning levels and plan availability, read 19 August 2026
- OpenAI API deprecations the 22 April 2026 announcement and the 23 July 2026 shutdown of the -codex API ids
- openai/codex discussion: Codex model deprecations the 14 April 2026 removal from ChatGPT sign-in
- Codex pricing and usage limits
- OpenAI: building more with GPT-5.1-Codex-Max compaction and the 19 November 2025 release
- OpenAI API pricing