Codex pricing: which ChatGPT plan you need, and API costs

Codex comes with ChatGPT plans from $0 to $500 a month; Plus at $20 is the first with the CLI and IDE. On an API key, GPT-6.1 Sol costs $2/$10 per 1M tokens.

OpenAI doesn’t sell Codex on its own. You get it with a ChatGPT plan: Free and Go ($8 a month) include limited trial access, Plus ($20 a month) is the first plan with Codex in the CLI, IDE extension, web and iOS, and Pro costs $100, $200 or $500 a month for more usage. You can also sign in with an OpenAI API key and pay per token instead. On a key, GPT-6.1 Sol costs $2 per million input tokens and $10 per million output tokens. All prices are as of November 15, 2026.

How we built this: plan prices, usage estimates, credit rates and feature lists come from OpenAI’s Codex pricing and docs pages and ChatGPT’s pricing pages. Claude prices come from Anthropic’s pricing page and help center. We read all of them on November 15, 2026. API token prices come from OpenAI’s and Anthropic’s API pricing pages and match our AI model data, checked November 2, 2026. We haven’t used Codex or Claude Code for this guide. The session costs below are arithmetic on published prices, using token counts we picked as an example. They are not measured usage.

How much does Codex cost per month?

OpenAI’s Codex pricing page has two tabs, individual and business. Here is what each plan costs and how it gets Codex:

Plan Price Codex access, as OpenAI describes it
Free $0 GPT-6 Luna at Standard speed in the desktop app, “subject to rollout”
Go $8/month Same as Free: GPT-6 Luna in the desktop app, subject to rollout
Plus $20/month Codex on the web, CLI, IDE extension and iOS; cloud integrations such as automatic code review and Slack; GPT-6.1 Sol and GPT-6 Luna; extra usage with ChatGPT credits
Pro $100, $200 or $500/month Everything in Plus; Ultrafast mode only on Pro $500
Business $20/user/month billed annually, $25 monthly; 2+ users Codex and ChatGPT in a workspace with admin controls, SAML SSO and MFA; credits for extra usage
Enterprise & Edu Contact sales Business features plus SCIM, EKM, RBAC, audit logs, retention and residency controls
API key Pay per token Codex in the CLI, SDK or IDE extension; no cloud features

ChatGPT’s own Codex page describes Free and Go as “Limited trial access to Codex.” It calls Plus the plan to “power a few focused coding sessions each week.” Pro is “designed for longer, higher-intensity sessions each day.”

The ChatGPT Codex page also mentions a “$100 Business plan” next to the $20 one. Neither page we read gives its billing terms, so the table lists only the $20 Business price that OpenAI prints in full.

What a year costs

Plan Monthly 12 months
Plus $20 $240
Pro $100 $100 $1,200
Pro $200 $200 $2,400
Pro $500 $500 $6,000
Business, 2 users, annual 2 × $20 = $40 $480
Business, 2 users, monthly billing 2 × $25 = $50 $600
Business, 5 users, annual 5 × $20 = $100 $1,200
Business, 5 users, monthly billing 5 × $25 = $125 $1,500

These are plan fees only. Extra credits and any API-key usage come on top.

Is Codex free?

Yes, with limits. OpenAI lists Codex on the Free plan as GPT-6 Luna at Standard speed in the ChatGPT desktop app, “subject to rollout.” ChatGPT’s Codex page calls it “Limited trial access.”

What Free and Go don’t include, going by the Plus card on the same page:

  • Codex in the terminal (CLI) and the IDE extension
  • Codex on the web and iOS
  • Cloud integrations such as automatic code review on GitHub and Slack
  • GPT-6.1 Sol, the model OpenAI lists for Plus and up
  • Image generation, which OpenAI says “isn’t available on the Free plan”

The other free route is an API key. Codex itself costs nothing extra on a key, but every token is billed at API rates, so it isn’t free in practice.

What usage do you get on Plus and Pro?

OpenAI doesn’t publish a fixed number of messages. It gives a range of local messages per five-hour window for Plus and Standard Business, and says “weekly limits may also apply”:

Model Plus and Standard Business: local messages per 5 hours
GPT-6 Astra 5-45
GPT-6.1 Sol 15-160
GPT-6.1 Terra 35-285
GPT-6 Sol 15-150
GPT-6 Luna 350-3,000

Some points OpenAI makes about these numbers:

  • They are “estimates,” not fixed limits. Usage depends on the model, context, reasoning, tool use and caching, so “prompt length alone isn’t a reliable estimate.”
  • Local messages and cloud chats share one allowance, and cloud tasks “may use more of your allowance than local messages.”
  • Pro plans “currently have no five-hour limit.” OpenAI doesn’t publish a weekly figure for Pro.
  • ChatGPT Work uses the same pricing, credits and usage limits as Codex, so agent work in ChatGPT draws from the same pool.
  • GPT-6 Astra is included in the normal allowance on Pro $100 and $200 and on the $100 Business plan. Plus and the $20 Business plan get “limited” Astra usage, with credits for more.

What eats the allowance faster

Setting Draw on included usage Draw on purchased credits
Standard speed 1x 1x
Fast mode 2.5x 2x
Ultrafast (GPT-6 Astra or GPT-6.1 Sol) 8x 6x

Image generation uses included limits “~3-5x faster on average.” Voice in the desktop app uses your Codex budget at $0.05 a minute, or 1.25 credits a minute on credit-billed plans. You can check what’s left at chatgpt.com/codex/settings/usage, or with /status in the Codex CLI.

What happens when you hit the limit, and how do Codex credits work?

If you hit a limit in the middle of a turn, OpenAI says the agent can finish that turn, “subject to fair use limits.” After that you have three choices:

  1. Buy credits (Plus and Pro) and keep working on the same plan. Business, Edu and Enterprise plans with flexible pricing buy workspace credits.
  2. Wait for the limit to reset.
  3. Switch to an API key for extra local chats, billed at standard API rates.

Credits are priced per million tokens. OpenAI’s rate table, at Standard speed:

Model Input Cached input Output Same model on the API (input / cached / output)
GPT-6 Astra 250 credits 25 1,250 $10 / $1 / $50
GPT-6.1 Sol 50 2.5 250 $2 / $0.10 / $10
GPT-6.1 Terra 25 1.25 125 $1 / $0.05 / $5
GPT-6 Sol 50 5 250 $2 / $0.20 / $10
GPT-6 Luna 2.5 0.25 12.5 $0.10 / $0.01 / $0.50

Put the two price lists next to each other and every credit rate is exactly 25 times the API dollar rate. For example, 50 credits ÷ $2 = 25 for GPT-6.1 Sol input, and 1,250 ÷ $50 = 25 for Astra output. So 2,500 credits cover the same tokens as $100 of API usage at list price, on any of these models.

That doesn’t tell you what a credit costs in dollars. OpenAI’s docs say credit purchase prices “depend on your plan or agreement” and point to help-center articles we couldn’t read. OpenAI also says a “typical GPT-5.6 Sol task may use 2-15 credits.” Codex credit billing has “no separate cache-write charge,” but the API does charge for cache writes.

What does Codex cost on an API key?

With a key, OpenAI says Codex is billed “through your OpenAI Platform account at standard API rates,” and ChatGPT’s credit multipliers don’t apply. Prices per million tokens for prompts under 272K tokens:

Model Input Cached input Output Over 272K tokens (input / output)
GPT-6 Astra $10.00 $1.00 $50.00 $20 / $75
GPT-6.1 Sol $2.00 $0.10 $10.00 $4 / $15
GPT-6.1 Terra $1.00 $0.05 $5.00 $2 / $7.50
GPT-6 Luna $0.10 $0.01 $0.50 $0.20 / $0.75

One detail is easy to miss. On the API, a prompt over 272K tokens is billed at the higher long-context rate: $4 input and $15 output per million on GPT-6.1 Sol. OpenAI says GPT-6.1 Sol usage drawn from a subscription “has no long-context surcharge in Codex or ChatGPT Work.” If you work in large repositories, that alone can make a plan better value than a key.

What you lose with a key: Codex cloud (OpenAI says it “requires signing in with ChatGPT”), GitHub code review, and the Slack and Linear integrations. The CLI, SDK, IDE extension and desktop app all work with a key.

Worked example: one coding session on a key

Say one session reads 2,000,000 input tokens, 1,600,000 of them from the cache, and writes 60,000 output tokens. These token counts are our example, not an OpenAI figure. On GPT-6.1 Sol:

  • Uncached input: 400,000 × $2 ÷ 1,000,000 = $0.80
  • Cached input: 1,600,000 × $0.10 ÷ 1,000,000 = $0.16
  • Output: 60,000 × $10 ÷ 1,000,000 = $0.60
  • Total: $1.56 per session (before any cache-write charges, listed at $2.50 per million for 30-minute writes)

In credits, the same session is 20 + 4 + 15 = 39 credits, which is $1.56 × 25.

The same session on other models:

Model Per session 20 sessions/month 60 sessions/month 150 sessions/month
GPT-6 Luna $0.086 $1.72 $5.16 $12.90
GPT-6.1 Sol $1.56 $31.20 $93.60 $234.00
GPT-6 Astra $8.60 $172.00 $516.00 $1,290.00

At 20 GPT-6.1 Sol sessions a month, a key costs $31.20 against $20 for Plus. OpenAI warns that API token prices shouldn’t be used “to estimate included tasks,” though. The table shows what a key would cost. It doesn’t show whether Plus would actually cover that much work.

Claude Code vs Codex: which costs less?

Both are bundled with a chat plan, both use five-hour and weekly limits, and both let you pay per token instead. Anthropic says “Claude Code is included in all paid plans” and that it shares one usage pool with Claude chat.

OpenAI Codex Anthropic Claude Code
Free plan Limited trial (GPT-6 Luna, desktop app) Not included
Entry plan Plus $20/month Pro $20/month, or $17/month billed annually ($200 upfront)
Mid plan Pro $100/month Max $100/month: 5x Pro usage every 5 hours and every week
Top individual plan Pro $200 or $500/month Ultra $200/month: 10x Pro weekly usage, no 5-hour limit for verified accounts
Five-hour limit on top plans Pro has none “currently” Ultra has none for verified accounts
Team plan Business $20/user/month annual, $25 monthly Team Standard seat $20/seat/month annual, $25 monthly; Premium seat $100 annual, $125 monthly
After the limit Buy credits, wait, or use an API key Turn on usage credits at API rates, wait, upgrade, or use a Console (API) account
Pay-per-token option API key Claude Console account

On a yearly view, the entry plans differ by $40: Codex on Plus costs $20 × 12 = $240, and Claude Pro billed annually costs $200. Paid monthly, both cost $240. Team plans match at $20 per seat on annual billing.

Per token, the two mid-tier models cost the same. Claude Sonnet 5.5 is $2 input, $0.10 cache read and $10 output per million, the same as GPT-6.1 Sol, so the example session above costs $1.56 on either. Claude Opus 5.5, at $4 / $0.20 / $20, doubles it to $3.12. Neither company publishes its plan allowances as tokens, so you can’t compare how much work $20 buys on each.

Two Claude points that have no Codex equivalent:

  • Max and Ultra include $100 and $200 a month in API credits, but Anthropic says they “can’t be used in Claude Code or the Claude apps.”
  • If ANTHROPIC_API_KEY is set, Anthropic says Claude Code bills that key “instead of your Claude subscription.”

For Claude’s per-token prices in full, see our Claude API pricing guide. For Claude Code against Cursor, see Claude Code vs Cursor.

What to watch for

  • Unpublished limits. OpenAI’s message counts are estimates with ranges as wide as 15-160, and Pro’s weekly limit isn’t published. Watch the usage dashboard for the first week or two.
  • Speed modes cost more. Fast mode uses your included usage 2.5 times as fast, and Ultrafast 8 times. Turning Fast on as a default can use up a Plus allowance quickly.
  • Model retirements. GPT-5.5 left Codex with ChatGPT sign-in on October 14, 2026. API-key sessions weren’t affected. Models available on a plan can change.
  • Data use on personal plans. OpenAI’s feature table lists “No training on API or business data by default” as available on Business, Enterprise and API keys, but not on Plus or Pro. If your code is confidential, check your ChatGPT data controls or use Business.
  • Automation tokens are Business-only. Codex access tokens for trusted automation are listed for Business and Enterprise, not Plus or Pro. For CI, OpenAI describes the API key option as “great for automation in shared environments like CI.”
  • Promotional rates. OpenAI says GPT-5.6 Sol’s promotional pricing runs “at least through November 21, 2026.” Check the rate table before you budget for it.
  • Monthly API credits on ChatGPT plans expire. ChatGPT’s pricing page says “unused credits expire at the end of the applicable billing cycle.”
  • Refunds. Anthropic says Claude payments are “generally non-refundable” outside the cases in its terms. We didn’t read OpenAI’s refund terms for this guide.

Which plan should you choose?

  • You want to try Codex before paying: the Free plan’s desktop-app trial, or a short run on an API key with GPT-6 Luna, which costs under 9 cents for the example session above.
  • A solo developer coding a few times a week: Plus at $20 a month. It’s the cheapest plan with the CLI, IDE extension and cloud tasks, and you can buy credits instead of upgrading if you run over now and then.
  • You hit Plus limits most days: Pro $100. Pro “currently” has no five-hour limit and includes GPT-6 Astra in its normal allowance. Go to $200 only if $100 runs out, and to $500 only if you need Ultrafast.
  • Automation, CI or scripts: an API key. You pay only for tokens and get the same CLI and SDK, but no cloud tasks or GitHub reviews.
  • A team of two or more: Business at $20 per user a month billed annually ($480 a year for two). You get SSO, admin controls and no training on business data by default. Claude’s Team Standard seat costs the same.
  • Choosing between Codex and Claude Code: the entry prices are the same, and so are the per-token prices of the mid-tier models. Claude Pro is $40 a year cheaper if you pay annually, while Codex has a free trial tier and a $500 Ultrafast tier. Pick the one whose models you prefer, and watch the usage meter for the first week.

More AI coding and app-building tools, from Lovable to Replit, are compared in our AI app builders hub and in what vibe coding tools really cost.

Sources