How Much Does Codex Cost? Plans, API and Limits

How much does Codex cost? Which ChatGPT plans include it, from Free to Pro and Business, the usage limits, API prices for Codex models and Claude Code cost.

Josh Pocock7 min read

Codex pricing cover

AI Coding

Codex pricing

Stride AI Academy

Codex costs nothing extra if you already pay for ChatGPT: it's included on every ChatGPT plan, from Free at $0 to Plus at $20 a month and Pro from $100 a month. Free and Go get limited access for light tasks, Plus gets the full set of Codex surfaces with five-hour message limits, and Pro has no five-hour limit. You can also skip the plan and pay per token with an OpenAI API key.

This guide covers what each ChatGPT plan gives you in Codex, how the usage limits and credits work, what Codex costs on the API, and how that compares with Claude Code. Everything here was checked against OpenAI's Codex pricing page, the ChatGPT pricing page, the Help Center article Using Codex with your ChatGPT plan and the OpenAI API pricing page on November 22, 2026. Prices are in US dollars. OpenAI's old developers.openai.com/codex/pricing link now redirects to the Codex pricing page.

Codex pricing by ChatGPT plan

From the Codex pricing page on November 22, 2026:

Plan Price What you get in Codex
Free $0/month Quick coding tasks. GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Go $8/month Lightweight coding tasks. Same model access as Free.
Plus $20/month Codex on web, CLI, IDE extension and iOS. GPT-6.1 Sol and GPT-6 Luna. Cloud integrations.
Pro From $100/month ($100, $200 or $500 plans) Everything in Plus, no five-hour limit. Ultrafast mode on the $500 plan.
Business $20/user/month billed yearly, $25 monthly, 2+ users ChatGPT and Codex across desktop and mobile, larger cloud VMs, ChatGPT credits.
Enterprise and Edu Contact sales Everything in Business, priority processing, enterprise security and controls.
API key API pricing Codex in the CLI, SDK or IDE extension, billed per token.

The ChatGPT pricing page sums it up the same way: Free has "Limited Codex access," Plus has "Expanded Codex usage" and Pro has longer Codex sessions.

Codex Cloud isn't on every plan

The Help Center article says Codex is included on all ChatGPT plans, including Free and Go, but Codex Cloud is narrower. It's available to eligible Plus, all Pro tiers, Business, Enterprise, Healthcare and Education accounts, subject to rollout and workspace settings. Free and Go don't get it. On Enterprise, cloud access is off until an admin turns it on.

Codex usage limits

Plus and standard Business seats get a number of local messages every five hours that depends on the model you pick. From the pricing page:

Model Local messages per 5 hours
GPT-6.2 Astra 6 to 50
GPT-6.2 Sol 17 to 180
GPT-6 Astra 5 to 45
GPT-6.1 Sol 15 to 160
GPT-6.1 Terra 35 to 285
GPT-6 Sol 15 to 150
GPT-6 Luna 350 to 3,000

The ranges are wide because a short question and a long task use very different amounts. A few rules from the pricing page and Help Center:

  • Weekly limits may also apply. OpenAI doesn't publish the weekly numbers.
  • Local and cloud work share one allowance, and cloud tasks may use more of it.
  • Codex shares a pool with other features. The Help Center says Codex, ChatGPT Work, ChatGPT for Excel and Workspace Agents draw from one shared allowance and credit pool where your plan has them.
  • Code reviews run locally or outside GitHub count toward your general limits.
  • Pro has no five-hour limit, though weekly limits may apply.
  • Enterprise and Edu on credit-based pricing have no fixed rate limits. Without it, seats get the same limits as Plus for most features.

To see where you stand, the Help Center points you to your usage dashboard.

What happens when you hit the limit

You can wait for the window to reset, upgrade, or use credits. Eligible Plus and Pro users can buy credits without changing plans, and Business and Enterprise workspaces on credit-based pricing can buy workspace credits.

Credits are charged per million tokens, at a rate that depends on the model. Some examples from the pricing page:

Model Input Cached input Output
GPT-6.2 Astra 200 credits 10 1,000
GPT-6.2 Sol 50 credits 2.5 250
GPT-6.1 Sol 50 credits 2.5 250
GPT-6.1 Terra 25 credits 1.25 125
GPT-6 Luna 2.5 credits 0.25 12.5

The page says a typical GPT-5.6 Sol task may use 2 to 15 credits. It doesn't list a dollar price per credit. It says credit prices and discounts depend on your plan or agreement, so check the purchase screen in your account.

Codex API pricing

With an API key, Codex doesn't touch your ChatGPT allowance. You pay standard API rates for the model you use. From the OpenAI API pricing page, standard tier, prompts up to 272K input tokens, per million tokens:

Model Input Cached input Output
gpt-6.2-astra $8.00 $0.40 $40.00
gpt-6.2-sol $2.00 $0.10 $10.00
gpt-6.1-sol $2.00 $0.10 $10.00
gpt-6.1-terra $1.00 $0.05 $5.00
gpt-6-sol $2.00 $0.20 $10.00
gpt-6-luna $0.10 $0.01 $0.50
gpt-5.3-codex $1.75 $0.175 $14.00

Prompts over 272K input tokens cost more on these models. Check the pricing page for those rates.

What you give up with an API key, per the Codex pricing page:

  • Cloud features such as GitHub code review and Slack aren't included.
  • Model choice follows the models your API key can use.
  • ChatGPT Voice in the desktop app isn't available.

To sign in with your ChatGPT plan instead, run codex in your project and choose your ChatGPT account when prompted. Our Codex CLI tutorial walks through setup.

Which Codex option is cheapest for you

  • Trying it out: Free or Go. Enough for quick tasks in the desktop app.
  • Regular solo use: Plus at $20. It adds the CLI, IDE extension, web and cloud tasks.
  • All-day use: Pro from $100. No five-hour limit.
  • A team: Business at $20 per user per month billed yearly.
  • Scripts and automation: an API key, so you pay only for the tokens each run uses.

If you hit Plus limits on most days, compare buying credits against moving to Pro.

Codex cost vs Claude Code cost

Claude Code works the same way: a subscription or an API key. From Claude's pricing page on November 22, 2026:

Codex Claude Code
Free plan Limited Codex access Not included
Entry plan Go $8 (limited), Plus $20 Pro $20/month, or $17/month billed yearly
Heavy use Pro from $100 ($100, $200, $500) Max $100, Ultra $200
No five-hour limit Pro Ultra (verified accounts)
Team Business $20/user/month yearly, $25 monthly Team standard $20/seat/month yearly, $25 monthly
Over the limit Credits Usage credits at API rates

On the API, Claude Opus 5.5 is $4 per million input tokens and $20 per million output, and Sonnet 5.5 is $2 and $10 (Claude API pricing). GPT-6.1 Sol is $2 and $10. Token prices only tell part of the story, because models use different numbers of tokens for the same task.

For the full Claude side, see how much Claude Code costs and Claude usage limits, or estimate your own bill with the Claude Code cost calculator. Weighing Codex against an editor instead? See Codex vs Cursor, and Claude Code vs Codex for features.

Learn to build with Claude Code

The Stride AI Coding course teaches Claude Code and Codex for building client tools, written for non-programmers, with weekly live calls to review your builds. Many of the free guides cover Claude Code and Codex setups, and the Claude Code community is where members compare theirs.

FAQ

Is Codex free?

Yes, with limits. OpenAI's Help Center says Codex is included on all ChatGPT plans, including Free. Free gets quick coding tasks with GPT-6 Luna in the desktop app, subject to rollout, and doesn't include Codex Cloud.

Is Codex included with ChatGPT Plus?

Yes. Plus is $20 a month and includes Codex on the web, CLI, IDE extension and iOS, with GPT-6.1 Sol and GPT-6 Luna and cloud integrations. Usage is capped per five hours, and weekly limits may apply.

How much does Codex Pro cost?

ChatGPT Pro comes in $100, $200 and $500 monthly plans. All include everything in Plus with no five-hour limit, and the $500 plan adds Ultrafast mode. OpenAI says weekly limits may still apply.

How much does Codex cost with an API key?

You pay standard API token rates for the model you use. On November 22, 2026, gpt-6.1-sol is $2 per million input tokens and $10 per million output, and gpt-6-luna is $0.10 and $0.50. API-key usage doesn't count against a ChatGPT plan.

Is Codex cheaper than Claude Code?

Entry plans cost the same: ChatGPT Plus and Claude Pro are both $20 a month. Codex has a free tier and an $8 Go plan with limited use, which Claude Code doesn't. Which costs less in practice depends on how much you use it and which models you pick.

Build it with us in Stride AI Academy

Four courses, weekly live calls and a community of people building and selling AI. Or start with 320+ free guides.

Keep reading

Free AI Coding guides