TokenSave logo TokenSave

Codex Pricing 2026: Free, Plus and Pro Plans, Credits and API

Jonhisking · October 11, 2026

Codex Pricing 2026: Free, Plus and Pro Plans, Credits and API

Codex pricing is simpler than it looks, and you may already be paying for it. OpenAI's coding agent is included in every ChatGPT plan, from Free at $0 to Pro 500 at $500 a month, and there is a separate pay-as-you-go route through an API key. What changes between plans is which models you get, whether you can run cloud tasks, and how much you can do before you hit a limit. This guide covers each plan, how Codex credits work, what the API costs, and what happened when we built the same small game twice on the free plan.

Codex pricing at a glance (2026)

Plan Price per month (US) Codex models 5-hour limit Cloud tasks
Free $0 GPT-6 Luna (desktop app) None seen; one monthly meter –
Go $8 GPT-6 Luna (desktop app) Not published –
Plus $20 GPT-6 Astra, 6.1 Sol, 6 Sol, Luna Yes ✓
Pro 100 / 200 / 500 $100 / $200 / $500 Same as Plus, Ultrafast on Pro 500 None ✓
Business $20 per user (annual), $25 (monthly) Same as Plus Yes, same as Plus ✓
Enterprise and Edu Contact sales Same as Plus Depends on contract ✓
API key Pay per token API models None (pay per use) –

What each plan gets in Codex

The plans differ in more than the size of the allowance. Going by OpenAI's pricing page and help center:

On every plan, Codex shares one allowance with ChatGPT Work, ChatGPT for Excel and Workspace Agents. A long Codex session can leave less room for the other agent features, and the reverse is also true.

Codex usage limits by model

Codex usage limits by model: Model, Local messages per 5 hours (Plus and Business Standard)

OpenAI publishes estimated local messages per 5-hour window for Plus and Business Standard seats. These are ranges, not fixed limits:

Model Local messages per 5 hours (Plus and Business Standard)
GPT-6 Astra 5–45
GPT-6.1 Sol 15–160
GPT-6 Sol 15–150
GPT-6 Luna 350–3,000

The full breakdown of the 5-hour window, the weekly cap and resets is in Codex usage limits explained.

How Codex credits work

How Codex credits work: Model, Input, Cached input, Output

Credits are how you keep going after the included allowance runs out. Your plan's included usage is spent first; after that, Codex draws from your credit balance.

OpenAI's rate card lists credits per million tokens for each model at standard speed:

Model Input Cached input Output
GPT-6 Astra 250 25 1,250
GPT-6.1 Sol 50 2.5 250
GPT-6 Sol 50 5 250
GPT-6 Luna 2.5 0.25 12.5
GPT-5.6 Sol 100 10 500
GPT-5.6 Luna 5 0.5 30

What does one Codex credit cost?

OpenAI doesn't publish a fixed dollar price for credits on personal plans. The help center says purchase amounts and prices can vary by account, region and plan, and are shown in the purchase flow.

What we can say is how the credit rates line up with OpenAI's API prices. For the three models we checked, the credit rate is exactly 25 credits for every dollar of the API list price:

Model API price per 1M input / output Credits per 1M input / output Credits per $1 of API price
GPT-6 Luna $0.10 / $0.50 2.5 / 12.5 25
GPT-6.1 Sol $2 / $10 50 / 250 25
GPT-6 Astra $10 / $50 250 / 1,250 25

In our reading, that means a credit is designed to be worth about $0.04 of API usage. If your purchase flow shows credits at that price, buying credits costs about the same as using an API key. This is our arithmetic, not an OpenAI price, so check the actual number before you buy.

Codex API pricing

If you would rather pay per token, you can sign in to the Codex CLI or IDE extension with an API key. You are then billed at standard API rates, with no plan limits:

Model Input per 1M Cached input per 1M Output per 1M
GPT-6 Luna $0.10 $0.01 $0.50
GPT-6.1 Sol $2 $0.10 $10
GPT-6 Astra $10 $1 $50

To compare a month of API use with a plan, enter your task size and tasks per day in the coding agent cost calculator.

We tested Codex on the free plan

Published limits only tell you so much, so we ran a small test on October 11, 2026.

Codex free plan test: the medium and extra high games side by side

Medium Extra high
Time to finish 39 s 39 s
Game code 398 lines 273 lines
Title Codex chose Brick Breaker Neon Breakout
Levels 2 (5×10 bricks, then 7×12) 2 (5×10, then 6×11 with a shaped layout)
Effects None Particle bursts when a brick breaks, neon glow
Tokens (Codex's own estimate) About 4,000–5,000 About 4,000-something
Free-plan usage Both runs together: 1% of the monthly meter

Both games met every requirement in the prompt: two levels, a score, three lives, and keyboard and mouse controls. Both have a title screen, a pause control and win and game-over screens.

What playing them felt like

The person who ran the test played both games. In his words, translated from Korean:

What the numbers mean (our reading)

For comparison, the same prompt in Claude Code took 37 seconds and $0.25 on Sonnet 5.5 at medium effort, and 1 min 50 s and $0.75 on Opus 5.5 at high effort, measured with ccusage. Those runs are in Claude Sonnet 5.5 vs Opus 5.5. The Claude figures are measured and the Codex token figures are self-reported, so treat the comparison as rough.

What a bigger Codex task costs

Our test was small on purpose. Real work usually means more steps, and every step re-sends the growing context.

The practical upshot: the model you pick matters more than the plan you are on. A Plus user who sends routine work to Luna can go much further than a Pro user who sends everything to Astra.

Codex pricing changes in 2026

Codex pricing has changed several times this year, which is why older guides disagree with each other. The changes that matter, from OpenAI's own release notes and help center:

Date Change
April 2, 2026 Codex moved from per-message pricing to credits based on API token usage, for Plus, Pro, Business and new Enterprise plans
April 23, 2026 The same token-based rate card extended to all existing Enterprise, Edu, Health, Gov and ChatGPT for Teachers plans
Late July 2026 GPT-5.6 Terra became 20% cheaper and GPT-5.6 Luna 80% cheaper
September 29, 2026 Pro split into Pro 100, Pro 200 and Pro 500; new Pro 200 subscribers get a smaller allowance than before, and Ultrafast is Pro 500 only
October 14, 2026 GPT-5.5 retires from ChatGPT, ChatGPT Work and Codex on all plans (the API is not affected)

Which Codex plan should you pick?

Which Codex plan should you pick?: You..., Pick, Why

You... Pick Why
Want to try Codex on small tasks Free GPT-6 Luna in the desktop app at no cost
Code a few times a week and want cloud tasks Plus ($20) Full GPT-6 line, cloud tasks, GitHub review
Hit the 5-hour window several times a week Pro 100 No 5-hour limit, a larger weekly allowance
Run Codex most of the day Pro 200 or Pro 500 Larger weekly allowance; Ultrafast on Pro 500
Use Codex now and then, in your own tools API key Pay only for what you use, no cloud features
Need it for a team Business Plus-level limits per seat, workspace credit plans

Codex vs Claude Code vs Copilot: entry prices

Tool Free option Entry paid plan Next step
Codex (ChatGPT) Yes, GPT-6 Luna Plus $20 Pro 100 $100
Claude Code No (Claude Free has no Claude Code) Claude Pro $20 Max 5x $100
GitHub Copilot Yes, 2,000 completions and limited chat Pro $10 Pro+ $39

For a monthly cost comparison by workload, see Claude Code vs Codex vs Cursor: cost.

How to make your Codex usage last longer

  1. Match the model to the task. Use GPT-6 Luna for small edits, explanations and boilerplate, GPT-6.1 Sol for normal feature work, and GPT-6 Astra only when the others get stuck.
  2. Keep tasks small and specific. A clear request about one file costs less than "look through the project and improve it," because the agent reads less.
  3. Avoid Fast mode unless you need it. It uses included usage at 250% of the standard rate.
  4. Check your remaining usage. In the Codex CLI, /status shows the current session's token usage, and /usage shows your account's token activity by day, week or in total, and lets you apply a rate-limit reset if one is available. In the ChatGPT desktop app, Settings > Usage shows when your limit resets. Check before starting a long job.
  5. Use resets and credits deliberately. When you hit a limit, the options can include adding credits, applying a reset, upgrading or waiting. If you only hit the wall once in a while, credits or waiting are cheaper than a bigger plan.

Verdict

FAQ

Is Codex free? Yes, in a limited form. Codex is included in the ChatGPT Free plan with GPT-6 Luna at standard speed in the desktop app. OpenAI doesn't publish the free plan's limits. On our account, Codex showed one monthly usage meter rather than 5-hour or weekly windows. Cloud tasks need Plus or higher.

How much does Codex cost? Codex has no separate price. It comes with ChatGPT plans: Free $0, Go $8, Plus $20, Pro $100, $200 or $500, and Business $20 per user billed annually. You can also use it with an API key at standard API rates.

Is Codex included in ChatGPT Plus? Yes. Plus includes Codex on the web, CLI, IDE extension and iOS, cloud tasks and the GPT-6 models, within a rolling 5-hour window.

How much is one Codex credit? OpenAI doesn't publish a fixed price for personal plans; it is shown in the purchase flow and can vary by region and plan. The credit rates equal 25 credits per dollar of API list price, which works out to about $0.04 per credit of API-equivalent usage.

What is Codex API pricing? With an API key you pay standard API rates, for example $0.10 input and $0.50 output per million tokens on GPT-6 Luna, $2 and $10 on GPT-6.1 Sol, and $10 and $50 on GPT-6 Astra.

What happens when I hit the Codex limit? Codex can finish the turn it is on. After that, depending on your plan, you can add credits, apply an available reset, upgrade, or wait for the 5-hour or weekly window to reset.

Run the numbers

The coding agent cost calculator estimates a month of agent work on GPT-6, Claude Opus 5.5 and Sonnet 5.5 from your task size and tasks per day, and compares the API cost with each plan. For one prompt, the token counter shows the exact cost on each model.

Plan details and credit rates checked on OpenAI's pricing page and help center on October 11, 2026. The free-plan test is one run per effort level on October 11, 2026; Codex's token figures are its own estimates.

Sources

More articles

Enter task size and tasks per day to estimate a month of Codex or Claude Code work at API prices and compare it with each plan.

Open the coding agent cost calculator →