Codex Pricing: What OpenAI Codex Costs, and Codex vs Claude Code vs Cursor

OpenAI Codex comes with every ChatGPT plan, or you pay per token with an API key. Plan limits, credits, the student offer and how it compares with Claude Code.

Codex Pricing: What OpenAI Codex Costs, and Codex vs Claude Code vs Cursor

OpenAI doesn't sell Codex on its own. Codex, OpenAI's coding agent, comes with every ChatGPT plan, from Free and Go to Plus at $20 a month, Pro from $100 a month, Business and Enterprise. The more you pay, the more you can use it. You can also skip the subscription, connect Codex to an OpenAI API key and pay per token.

For most developers, ChatGPT Plus is the realistic starting point. Pro makes sense when you code with Codex for hours every day and keep hitting Plus's limits.

Plans with a coding agent: US price per month
US prices as of December 2026, from the providers' own pricing pages. Prices vary by country and change often.

What is Codex?

Codex is an AI agent that writes, edits, runs and reviews code for you. You describe a task, such as fixing a bug, adding a feature or writing tests, and Codex works through it in your project and shows you the changes.

In 2026 OpenAI folded the standalone Codex app into the new ChatGPT desktop app for Mac and Windows. You can now use Codex there, on the web and on mobile, in your terminal with the Codex CLI, in your editor with the IDE extension, in the cloud, and from your own code with the Codex SDK. "ChatGPT Codex" and "OpenAI Codex" mean the same product.

Codex pricing by plan

PlanUS priceCodex usage
Free$0Included, limited
Go$8/monthIncluded, limited
Plus$20/monthIncluded, with five-hour and weekly limits
Pro$100, $200 or $500/monthLarger allowance, no five-hour limit
Business, Standard seat$25/user/month, or $20 billed yearlyAbout the same as Plus
Business, Premium seat$125/user/month, or $100 billed yearlyHigher limits, no five-hour limit
Enterprise and EduThrough OpenAI's sales teamSet by contract
API keyPay per tokenNo plan limits, billed per use

How Codex limits work

OpenAI publishes estimates rather than fixed numbers, because a small edit uses far less than a big refactor. On Plus and a Business Standard seat, it estimates these messages per five hours:

ModelEstimated messages per 5 hours
GPT-6.2 Sol (OpenAI's everyday model)17 to 180
GPT-6.2 Astra (its most capable model)6 to 50
GPT-6 Luna (its light model)350 to 3,000

Weekly limits may also apply. Pro removes the five-hour limit and gives a much larger allowance.

One change landed in December 2026: on Plus, Pro and Business, your allowance is now shared between ChatGPT and Codex. A long Codex session leaves less room for heavy chats that week, and the other way round. Quick "Instant" chats don't count.

Codex credits

When you run out on Plus or Pro, you don't have to upgrade. You can buy credits and carry on. OpenAI's rate card says a typical GPT-6.2 Sol task uses 2 to 15 credits. Its help center doesn't give a dollar price per credit, but OpenAI's promotional offers value 2,500 credits at $100, about 4 cents a credit. By that measure, a typical Sol task costs roughly 8 to 60 cents in credits.

Codex API pricing

If you connect Codex to an API key instead of signing in with ChatGPT, you pay OpenAI's API rates. These are the standard prices per million tokens:

ModelInputCached inputOutput
GPT-6.2 Astra$8$0.40$40
GPT-6.2 Sol$2$0.10$10
GPT-6.1 Terra$1$0.05$5
GPT-6 Luna$0.10$0.01$0.50
GPT-5.3 Codex$1.75$0.175$14

Prompts longer than 272,000 tokens cost about twice as much for input. Batch processing is half price, and Fast mode costs double.

What a coding session costs on the API. Coding agents reread the same files constantly, so most input is cached. Take a long session with 2 million input tokens, 80% of them cached, and 200,000 output tokens:

  • On GPT-6.2 Sol: $0.80 of fresh input, $0.16 of cached input and $2.00 of output, about $3.
  • On GPT-6.2 Astra: $3.20 + $0.64 + $8.00, about $12.

Do that every working day on Sol and you spend around $60 a month, three times the price of Plus. The API makes sense for occasional use, automation and teams that need per-token billing. For daily interactive coding, a subscription is usually cheaper.

Did Codex switch to pay-as-you-go?

Not for most people. Some 2026 headlines said Codex had moved to pay-as-you-go, but the change was narrower. In April 2026 OpenAI added optional Codex-only seats for Business and Enterprise: seats with no monthly fee, billed by the tokens they use. On June 24, 2026, it stopped selling new pay-as-you-go seats on Business, though existing ones still work.

For individuals, nothing changed: Codex comes with your ChatGPT plan, and you can add credits or use an API key if you need more.

Codex for students

OpenAI gives verified university students in the US and Canada $100 of Codex credits (2,500 credits). You verify through SheerID, and the credits work on Free, Go, Plus or Pro. They expire 12 months after you claim them, and each student gets the offer once. Details are on OpenAI's Codex student page.

Codex vs Claude Code vs Cursor

CodexClaude CodeCursor (now Grok Build)
Made byOpenAIAnthropicCursor, now part of SpaceX
Entry plan with full accessChatGPT Plus, $20/monthClaude Pro, $20/month ($17 yearly)X Subscription Premium, $30/month
Heavy-use plansPro, $100 to $500Max $100, Ultra $200Super $100, Ultra $200
Pay per token insteadYes, with an API keyYes, with an API keyThird-party models at API price
ModelsOpenAI's GPT-6 familyClaude Opus 5.5, Sonnet 5.5, Haiku 5.5Grok and Composer models, plus Claude and others
Where it runsChatGPT apps, terminal, IDE, cloudTerminal, IDE, desktop, webIts own code editor and a terminal agent
Included with the planAll of ChatGPTAll of ClaudeGrok, Grok Bot and X Premium+ perks

Codex vs Claude Code

On price, the two are level: both start at $20 a month with your chat subscription and offer a $100 tier for heavy users. Claude Pro is a little cheaper if you pay yearly. Both run in the terminal and your editor, and both let you switch to an API key.

The practical differences:

  • What else you get. A ChatGPT plan also covers image generation and OpenAI's other tools. A Claude plan covers Claude's chat, Research and Cowork, but no image generation.
  • How limits feel. Both use five-hour windows and weekly caps on their $20 plans. ChatGPT Pro and verified Claude Ultra accounts both drop the five-hour window.
  • Models. You choose between OpenAI's and Anthropic's models, and each improves every few months.

Rankings between the two change with every model release, so the best test is your own: give both the same real task from your codebase on their entry plans and keep the one whose changes you accept with the fewest edits. Our Claude pricing guide explains Claude's plans and limits in full.

Cursor vs Claude Code

These are different kinds of tools. Cursor is a code editor with AI built in, where you see and accept changes as you type. Claude Code is an agent you give a task to in your terminal or IDE, which then works through it.

Cursor changed a lot in 2026. SpaceX bought it in August, new customers now get it through The X Subscription, and on November 30 it was renamed Grok Build. The $30 Premium tier is the plan that replaces Cursor Pro, and existing Cursor Pro subscribers keep their $20 plan. On Premium and above you can still use Claude models inside Grok Build, billed at Anthropic's API list price from the first request. Our Cursor Pro pricing guide explains the change.

Many developers use both: the editor for hands-on work, and an agent for longer tasks.

Codex API credits from The Token Jar

The Token Jar sells Codex API credits in 10-million, 50-million and 100-million token packs. You activate a code on your order page and get an API key for a third-party API that serves OpenAI models, which you can use with Codex, Cursor and VS Code. Each pack runs for one to three days after activation, and you can keep the code for up to 30 days before you activate it. The listing names the models in each pack.

Know the trade-offs:

  • It's not an OpenAI account. You won't get OpenAI's billing, dashboard or support, and the access can stop if the provider changes its terms.
  • Keep sensitive code out of it. Your code and prompts pass through a provider you don't have a contract with.
  • Codes that don't work as described are replaced or refunded. Usage and limits follow the provider's terms.

It suits a short burst of coding or trying Codex with a bigger model. For daily work on a codebase you care about, use your own ChatGPT plan or OpenAI API account.

No. 087 Instant
Accounts & Top-ups

Codex API credits

OpenAI Codex API access in 10M, 50M or 100M token amounts.

From
$1.89

FAQ

Is Codex free?

Yes, with limits. Codex is included on ChatGPT's free plan and on Go at $8 a month, but the allowance is small. For regular coding you need Plus at $20 a month or higher.

How much does Codex cost?

Codex comes with your ChatGPT plan: $20 a month on Plus, $100 to $500 a month on Pro, or $25 per user a month on Business ($20 billed yearly). With an API key, GPT-6.2 Sol costs $2 per million input tokens and $10 per million output tokens.

Is Codex included in ChatGPT Plus?

Yes. Plus includes Codex, with five-hour and weekly limits. From December 2026, that allowance is shared with your ChatGPT usage.

Is Codex cheaper than Claude Code?

At the entry level, they cost the same: $20 a month with ChatGPT Plus or Claude Pro. Claude Pro is slightly cheaper billed yearly, at $200 a year. Both offer $100 plans for heavy use.

Can I use Codex with an API key?

Yes. Codex can sign in with your ChatGPT account or use an OpenAI API key. With an API key, you pay standard API rates per token and ChatGPT's plan limits don't apply.

Prices and plans change often and vary by country; check the provider’s own page for the latest. The Token Jar is an independent seller, not affiliated with or endorsed by the brands mentioned.

+

Keep readingMore guides

All guides
Dec 3, 2026 · 8 min read

ChatGPT Business Price: Seats, Plans and How It Compares With Plus

ChatGPT Business (formerly Team) costs $25 per user a month, or $20 billed yearly. Compare Standard and Premium seats, what it adds over Plus and who needs it. Read the guide
Dec 2, 2026 · 7 min read

Is ChatGPT Plus Worth It? An Honest Look at Features and Limits

Is ChatGPT Plus worth $20 a month? An honest look at its features, real limits on images and deep research, Plus vs Pro, Claude Pro, and who should pay. Read the guide
Dec 2, 2026 · 8 min read

How Much Is ChatGPT Plus? Price, Plans and Cheaper Options

ChatGPT Plus costs $20 a month in the US. See every ChatGPT plan price for 2026, the truth about free trials and student discounts, and cheaper ways to get it. Read the guide