Codex models: every OpenAI model Codex runs, and the ones it dropped

Codex has changed its model list five times in a year, and most of what is written about it is describing a lineup that no longer exists. This is the current one, the retired one, and the difference between them.

By the Continuum team. We build a workbench that runs Claude Code, Codex, and their peers, so the model rates quoted here are the ones our own cost analytics ship with.

The short version

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.

What you need to know
  • 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 -codex id from 5.1 and 5.2 was shut down on the API on 23 July 2026.
  • gpt-5.4 and gpt-5.4-mini leave 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.

The GPT-5.6 family as Codex documents it, read 19 August 2026.
Model idWhat OpenAI calls itReach for it when
gpt-5.6-solFlagship, strongest capability for complex coding, computer use, research and cybersecurityThe task already resisted one attempt
gpt-5.6-terraBalanced, competitive with GPT-5.5 at lower costOrdinary feature work, most of the day
gpt-5.6-lunaFast and affordable, lowest cost in the familyThe spec is complete and the edit is mechanical
gpt-5.3-codex-sparkText-only research preview for near-instant iterationYou 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.

API list price, US dollars per million tokens, short-context tier.checked aug 2026
ModelInputCached inputOutput
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.

The same three tasks, routed properly.
# 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.

PropertyDetail
Model idgpt-5.3-codex-spark
StatusResearch preview
PlanChatGPT Pro only
InputText only, no images
Best atTight edit and check loops where latency is the cost
Not forAnything 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.

Model access by plan, from the Codex model and pricing documentation.checked aug 2026
PlanModels it can select
FreeTerra, at small volumes
Go, $8/moTerra, lightweight use
Plus, $20/moSol, Terra and Luna, with effort selectable per model
Pro, $200/moSol, Terra, Luna, plus gpt-5.3-codex-spark
Business and EnterpriseThe full family, extended with workspace credits
API keyThe 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.

One run.
# -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"
~/.codex/config.toml, for every run.
model                  = "gpt-5.6-terra"
model_reasoning_effort = "medium"
A named profile, for a whole class of run.
# -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 idShippedWhat it was
gpt-5.1-codex13 November 2025The coding-tuned variant of GPT-5.1
gpt-5.1-codex-max19 November 2025Long-horizon agentic model, first trained natively to work across multiple context windows via compaction
gpt-5.1-codex-mini13 November 2025The 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.

  1. 5 February 2026. gpt-5.3-codex ships, multimodal, initially Pro-gated.
  2. 12 February 2026. gpt-5.3-codex-spark follows in research preview, text only.
  3. 14 April 2026. The 5.1 and 5.2 Codex ids retire, and gpt-5.3-codex is named as one of their replacements.
  4. Mid 2026. gpt-5.3-codex itself 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

Codex model lineage and status, from OpenAI's deprecation notices and Codex model documentation, read 19 August 2026.
Model idShippedStatus in August 2026Replacement
gpt-5-codexSeptember 2025API shutdown 23 July 2026gpt-5.6-sol
gpt-5.1-codexNovember 2025API shutdown 23 July 2026gpt-5.6-sol
gpt-5.1-codex-maxNovember 2025API shutdown 23 July 2026gpt-5.6-sol
gpt-5.1-codex-miniNovember 2025API shutdown 23 July 2026gpt-5.6-terra
gpt-5.2-codexDecember 2025API shutdown 23 July 2026gpt-5.6-sol
gpt-5.3-codexFebruary 2026Not offered on ChatGPT sign-ingpt-5.6-terra
gpt-5.3-codex-sparkFebruary 2026Live, Pro only, research previewNone needed
gpt-5.4March 2026Leaves Codex 31 August 2026gpt-5.6-terra
gpt-5.4-miniMarch 2026Leaves Codex 31 August 2026gpt-5.6-luna
gpt-5.5April 2026Superseded by the 5.6 familygpt-5.6-terra
gpt-5.6-solJuly 2026LiveCurrent
gpt-5.6-terraJuly 2026LiveCurrent
gpt-5.6-lunaJuly 2026LiveCurrent

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.

  1. Codex documentation: models model ids, descriptions, reasoning levels and plan availability, read 19 August 2026
  2. OpenAI API deprecations the 22 April 2026 announcement and the 23 July 2026 shutdown of the -codex API ids
  3. openai/codex discussion: Codex model deprecations the 14 April 2026 removal from ChatGPT sign-in
  4. Codex pricing and usage limits
  5. OpenAI: building more with GPT-5.1-Codex-Max compaction and the 19 November 2025 release
  6. OpenAI API pricing
Try it

Which model
actually ran?

Continuum attributes every Codex turn to a model id, so spend breaks down by model and by repository instead of arriving as one number.

free app · your subscriptions · local-first