Skip to content

Codex pricing: ChatGPT plans, usage limits and what uses them

Which ChatGPT plans include Codex, how many messages each model allows, how API-key use is billed, and a measured test of which model passed a coding task for the least.

Codex comes with your ChatGPT plan, or pay per token with an API key

Every ChatGPT plan includes Codex, from a limited trial on Free and Go to cloud tasks and integrations on Plus, Pro and Business. With an API key you pay per token (a token is a small piece of text the model reads or writes) and get no plan limit, but no cloud features. Extra plan usage is paid with prepaid credits. Sources: Codex pricing and Codex pricing docs, checked 9 November 2026.
Free / Go
Plus
Pro
Business
API key
Codex includedLimited trial✓✓✓✓
Codex cloud, GitHub code review, Slack--✓✓See OpenAI's plan table--
Five-hour usage limitNot publishedYesNone currentlyYesNo plan limit
How extra usage is paid--Prepaid ChatGPT creditsPrepaid ChatGPT creditsPrepaid workspace creditsPer-token API rates

How many messages each model allows, per five hours

Local messages are messages sent from your own machine rather than cloud tasks. On Plus and Standard Business, OpenAI estimates from 5-45 local messages per five hours on GPT-6 Astra to 350-3,000 on GPT-6 Luna. These are estimates, not fixed limits: model, context, reasoning and tool use all change how much each message uses.

Local messages per five hours on Plus and Standard Business (OpenAI's estimates, not fixed limits; checked 9 Nov 2026)

Current OpenAI model rates, per million tokens

ModelInputOutputBatch inBatch outCache read
GPT-4.1$2.00$8.00$1.00$4.00$0.50
GPT-4.1 Mini$0.40$1.60$0.20$0.80$0.10
GPT-4.1 Nano$0.10$0.40$0.05$0.20$0.03
GPT-4o$2.50$10.00$1.25$5.00$1.25
GPT-4o Mini$0.15$0.60$0.07$0.30$0.07
GPT-5$1.25$10.00$0.62$5.00$0.12
GPT-5 Mini$0.25$2.00$0.12$1.00$0.03
GPT-5.1$1.25$10.00$0.62$5.00$0.12
GPT-6 Astra$10.00$50.00$5.00$25.00$1.00
GPT-6.1 Sol$2.00$10.00$1.00$5.00$0.10
GPT-6.1 Terra$1.00$5.00$0.50$2.50$0.05
o3$2.00$8.00$1.00$4.00$0.50
o3 Mini$1.10$4.40$0.55$2.20$0.55
o4 Mini$1.10$4.40$0.55$2.20$0.28

All prices in USD per 1M tokens. Batch runs asynchronously at a reduced rate; cache read applies to reused input tokens. A dash means the provider does not publish that rate.

With an API key, Codex is billed at these live per-token rates. Full table: OpenAI API pricing.

Best model for Codex: on our task, GPT-6.1 Terra passed for half of Sol's cost

Three OpenAI models did the same small coding task, each answer scored against a known correct answer with a pass mark of 80 out of 100. All three scored 100 with the same 56-token function. GPT-6.1 Terra cost half as much as GPT-6.1 Sol and a tenth as much as GPT-6 Astra.

Cost per 1,000 answers, same coding task (evaluation 75cdd5e8, 9 Nov 2026; all scored 100)

Have your agent test which OpenAI model to use

Before you pick a model in Codex, your agent can score Terra, Sol and Astra on your own task and compare their cost. Figures are from evaluation 75cdd5e8 (9 November 2026); the prompt is illustrative and we wrote the summary line.
Agent
engineer: which OpenAI model should I use for this coding task? (example prompt)
> run_evaluation models: gpt-6.1-terra, gpt-6.1-sol, gpt-6-astra pass mark: 80
waiting for scores ... done
gpt-6.1-terra: score 100 pass $0.000354 56 output tokens
gpt-6.1-sol: score 100 pass $0.000708 56 output tokens
gpt-6-astra: score 100 pass $0.003540 56 output tokens
summary (written by us): all three pass; terra costs half of sol and a tenth of astra

Fast mode uses your included usage 2.5 times faster

Fast mode uses included subscription usage at 2.5 times the Standard rate, and purchased credits at 2 times. Ultrafast, on GPT-6 Astra and GPT-6.1 Sol, uses 8 times on included usage and 6 times on purchased credits. Source: Codex pricing docs, checked 9 November 2026.

How fast each speed mode uses your allowance, vs Standard (OpenAI, checked 9 Nov 2026)

Find the cheapest OpenAI model that passes your task

Score Terra, Sol and Astra on your own task, from your agent or the dashboard. On Pro and above.

See Pro

Turns and tool calls eat a coding agent's allowance

OpenAI says reasoning and tool use change how much each Codex message uses, and the pattern is plain in a Kiro workflow of ours: 44 turns and 111 tool calls cost 12.05 credits, 7 turns and 8 calls cost 1.07. Agent analysis reads Kiro workflows and Claude Code sessions today, not Codex.

Tool calls vs credits, one point per step of a Kiro workflow of ours (agent analysis, 4 Nov 2026)

On Pro: for Codex users

  • Score OpenAI models on your own task
  • Terra, Sol and Astra compared on cost, score and speed
  • Step-by-step analysis of Kiro workflows and Claude Code sessions
  • Scheduled re-tests flag when an OpenAI model's quality slips

Use it next to Codex, over MCP (the protocol agents use to call outside tools)

  • Your agent runs the tests and reports back
  • Connect it to Codex as an MCP server
  • Agent analysis for Kiro workflows and Claude Code sessions, the trace formats it reads today

$129/mo $10 for your first week

Then $129/mo. Cancel anytime.

Plan contents, usage estimates and speed multipliers are from OpenAI's Codex pages, checked 9 November 2026; OpenAI lists plan prices on its own pricing page. Per-token rates come from our live model registry. The measured result is one evaluation of ours; your own task will score differently.

Questions

Is Codex free?
Codex is included in every ChatGPT plan, including Free and Go, which give limited trial access. Plus, Pro and Business add cloud tasks and integrations such as GitHub code review (OpenAI Codex pricing, checked 9 November 2026).
What are the Codex usage limits?
OpenAI gives estimates of local messages (messages sent from your own machine, not cloud tasks) per five hours by model for Plus and Standard Business, for example 15-160 on GPT-6.1 Sol and 350-3,000 on GPT-6 Luna. They are estimates, not fixed limits; weekly limits may also apply, and Pro currently has no five-hour limit. Check your usage dashboard, or /status in the Codex CLI.
Plan or API key: which should I use?
With an API key, Codex usage is billed at API token rates, with no plan limit, but without cloud features such as GitHub code review or Slack. OpenAI suggests API keys for automation in shared environments like CI (automated build and test servers).
How do I make my Codex usage last longer?
OpenAI’s tips: keep prompts precise and remove unneeded context, provide only relevant files, match the output length to the need, keep AGENTS.md (the instructions file Codex reads) small, and disable MCP servers you don’t need. Switching to a lower-cost model also helps (OpenAI Codex pricing docs, checked 9 November 2026).

Score models on your own coding task and analyse your agent workflows from your agent over MCP, on Pro and above: see how agent evaluation works.