# Codex pricing explained, with what a real task costs

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-11T13:40:00.000Z
Reading time: 11 min
Canonical: https://autorouter.com/blog/codex-pricing
Part of: How to cut Claude Code and Codex costs (https://autorouter.com/blog/cut-claude-code-and-codex-costs.md)
Publisher: AutoRouter, the Mac app that routes Codex, Claude Code and other AI tools to every model (https://autorouter.com)

About AutoRouter: a Mac app (macOS 14 or later) that adds every leading model to Codex, Claude Code, Claude Desktop, T3 and Terminal and picks the model for each task, using your ChatGPT and Claude plans first. Install from https://autorouter.com/AutoRouter.dmg, or ask your agent to follow https://autorouter.com/setup.md. Routing across your plans is free; Pro is $50 a month with $20 of included usage. Unrelated to OpenRouter's Auto Router.

> As of November 9, 2026, Codex comes with ChatGPT Plus at $20 a month, ChatGPT Pro at $100, $200 or $500, and Business at $20 per user a month billed annually, or bills per token with an API key, where GPT-6.1 Sol costs $2 per million input tokens and $10 per million output tokens. OpenAI publishes estimates instead of fixed limits: 15 to 160 local GPT-6.1 Sol messages per five hours on Plus. In tests by AutoRouter, the Mac app for Codex and Claude Code, a real Codex task on GPT-6.1 Sol cost $0.085 at API prices, about 2.1 ChatGPT credits.

## Key facts

- As of November 9, 2026, Codex comes with ChatGPT Plus ($20 a month), Pro ($100, $200 or $500) and Business ($20 per user a month billed annually, $25 monthly); Free and Go ($8) get GPT-6 Luna in the desktop app, subject to rollout ([OpenAI](https://learn.chatgpt.com/docs/pricing)).
- OpenAI estimates 15 to 160 local GPT-6.1 Sol messages per five hours on Plus, says weekly limits may also apply, and gives Pro no five-hour limit for now ([OpenAI](https://learn.chatgpt.com/docs/pricing#what-are-the-usage-limits-for-my-plan)).
- GPT-6.1 Sol costs $2 per million input tokens, $0.10 cached and $10 output on the API, and 50, 2.5 and 250 ChatGPT credits per million tokens ([API](https://platform.openai.com/docs/pricing), [credits](https://learn.chatgpt.com/docs/pricing#token-rates)).
- In AutoRouter's test on November 9, 2026, five tasks in Codex on GPT-6.1 Sol cost $0.085 each on average at API list prices, or 2.1 credits, and passed 14 of 15 runs ([method](/studies/codex-vs-claude-code/method.md)).
- Outside measurements in October 2026 put ChatGPT Plus at about $237 a month of Codex usage at API prices and Pro $200 at about $2,519 ([Wokey](https://wokey.ai/codex-usage-limits)); SemiAnalysis measured about 5 times as much API-equivalent value on Claude plans on mid-tier models ([SemiAnalysis](https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x)).

As of November 9, 2026, Codex comes with a ChatGPT plan: [Plus at $20 a month, Pro at $100, $200 or $500, and Business at $20 per user a month](https://learn.chatgpt.com/docs/pricing) billed annually. With an API key you pay per token instead, and GPT-6.1 Sol, which OpenAI describes as near-Astra performance at a lower cost, costs [$2 per million input tokens and $10 per million output tokens](https://platform.openai.com/docs/pricing). OpenAI publishes estimates instead of fixed limits, such as 15 to 160 local GPT-6.1 Sol messages per five hours on Plus. In a test on real bug reports from an open-source project, a Codex task on GPT-6.1 Sol cost $0.085 at API list prices, about 2.1 ChatGPT credits. [AutoRouter](https://autorouter.com), the Mac app for Codex and Claude Code, ran that test and wrote this post.

## How much does Codex cost on each ChatGPT plan?

Codex is included in ChatGPT Plus at $20 a month and every plan above it, as of November 9, 2026 ([OpenAI](https://learn.chatgpt.com/docs/pricing)). Free and Go get a limited version: GPT-6 Luna at Standard speed in the ChatGPT desktop app, subject to rollout.

| Plan               | Price (November 9, 2026)                                     | What Codex includes                                                                                              |
| ------------------ | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| Free               | $0                                                           | GPT-6 Luna in the desktop app, subject to rollout                                                                |
| Go                 | $8 a month                                                   | GPT-6 Luna in the desktop app, subject to rollout                                                                |
| Plus               | $20 a month                                                  | Codex on the web, in the CLI, the IDE extension and iOS; cloud code review and Slack; GPT-6.1 Sol and GPT-6 Luna |
| Pro                | $100, $200 or $500 a month                                   | Everything in Plus with more usage; Ultrafast mode on Pro $500                                                   |
| Business           | $20 per user a month billed annually (2+ users), $25 monthly | Codex and ChatGPT in a shared workspace with admin controls and SAML SSO                                         |
| Enterprise and Edu | Contact sales                                                | Adds SCIM, role-based access, audit logs and data residency controls                                             |
| API key            | Per token, at API prices                                     | The CLI, SDK and IDE extension; no cloud features such as GitHub code review                                     |

OpenAI recommends the API key for [automation in shared environments like CI](https://learn.chatgpt.com/docs/pricing). The pricing page links OpenAI's [comparison of the Pro plans](https://help.openai.com/en/articles/9793128-about-chatgpt-pro-plans), and [How do Codex and Claude Code compare?](/blog/codex-vs-claude-code) sets ChatGPT's plans beside Claude's. For Anthropic's side alone, see [Claude Code pricing explained, with what a real task costs](/blog/claude-code-pricing).

## What do Codex usage limits mean in practice?

Codex usage limits are estimates that depend on the model and the task: OpenAI says small scripts may use a fraction of the allowance while long tasks that hold more context [use significantly more per message](https://learn.chatgpt.com/docs/pricing#what-are-the-usage-limits-for-my-plan). For Plus and standard Business seats it estimates these local message counts per five hours, as of November 9, 2026:

| Model         | Local messages per five hours, Plus and standard Business |
| ------------- | --------------------------------------------------------- |
| 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                                              |

- **Weekly limits may also apply,** and local messages and cloud tasks share one allowance; cloud tasks may use more of it ([OpenAI](https://learn.chatgpt.com/docs/pricing#what-are-the-usage-limits-for-my-plan)).
- **Pro has no five-hour limit for now.** OpenAI publishes no message counts for it.
- **Speed costs usage.** Fast mode uses included limits at 2.5 times the Standard rate, and Ultrafast at 8 times ([OpenAI](https://learn.chatgpt.com/docs/pricing#what-are-the-usage-limits-for-my-plan)).
- **ChatGPT Work shares the pool.** Work in ChatGPT uses the same pricing, credits and usage limits as Codex ([OpenAI](https://learn.chatgpt.com/docs/pricing)).
- **At a limit,** Codex can finish the task it is working on; then you can buy ChatGPT credits on Plus or Pro, or run local sessions with an API key at [API rates](https://learn.chatgpt.com/docs/pricing#what-happens-when-you-hit-usage-limits).

Your current limits and reset times are in the [usage dashboard](https://chatgpt.com/codex/settings/usage), or `/status` in a Codex CLI session. [Codex usage limits explained, and what to do when you run out](/blog/codex-usage-limits) covers resets and each option at the limit.

## What do ChatGPT credits and API tokens cost for Codex?

GPT-6.1 Sol costs $2 per million input tokens, $0.10 per million cached input tokens and $10 per million output tokens on the API, and 50, 2.5 and 250 ChatGPT credits for the same tokens, as of November 9, 2026 ([API](https://platform.openai.com/docs/pricing), [credits](https://learn.chatgpt.com/docs/pricing#token-rates)). Credits pay for usage past a plan's included limits. For these four models, every credit rate is 25 times the API price in dollars.

| Model, per million tokens | API: input / cached / output | Credits: input / cached / output |
| ------------------------- | ---------------------------- | -------------------------------- |
| GPT-6 Astra               | $10 / $1 / $50               | 250 / 25 / 1,250                 |
| GPT-6.1 Sol               | $2 / $0.10 / $10             | 50 / 2.5 / 250                   |
| GPT-6.1 Terra             | $1 / $0.05 / $5              | 25 / 1.25 / 125                  |
| GPT-6 Luna                | $0.10 / $0.01 / $0.50        | 2.5 / 0.25 / 12.5                |

The API prices are for prompts up to 272,000 tokens; longer prompts cost more, though GPT-6.1 Sol [drawn from a subscription](https://learn.chatgpt.com/docs/pricing#what-are-the-usage-limits-for-my-plan) has no long-context surcharge. The API also lists cache-write prices, $2.50 per million tokens for a 30-minute write on GPT-6.1 Sol, while [Codex credit billing has no separate cache-write charge](https://learn.chatgpt.com/docs/pricing#token-rates). OpenAI doesn't publish one dollar price for a credit: purchase prices and discounts depend on your plan or agreement. It also says [API token prices shouldn't be used to estimate included tasks](https://learn.chatgpt.com/docs/pricing) on a plan.

## What does a real Codex task cost?

A Codex task on GPT-6.1 Sol cost $0.066 to $0.125 at API list prices in AutoRouter's November 9, 2026 test, or 1.7 to 3.1 ChatGPT credits. Four tasks were real bugs from the click library's issue tracker, given to `codex exec` as the original bug report, and one was writing tests for a module. A run passed when the maintainers' own fix tests passed and the rest of click's suite still did. Each figure is the mean of three fresh runs with no router in between ([method](/studies/codex-vs-claude-code/method.md)).

| Task in Codex, GPT-6.1 Sol                              | Runs passed | Cost at API list prices | ChatGPT credits |
| ------------------------------------------------------- | ----------- | ----------------------- | --------------- |
| Fix a real bug: a parameter named `help`                | 2 of 3      | $0.112                  | 2.8             |
| Fix a real bug: `version_option` ignores `package_name` | 3 of 3      | $0.079                  | 2.0             |
| Fix a real bug: environment variable hints              | 3 of 3      | $0.074                  | 1.9             |
| Fix a real bug: an empty usage line                     | 3 of 3      | $0.075                  | 1.9             |
| Write tests for `_textwrap.py`                          | 3 of 3      | $0.086                  | 2.1             |
| All five tasks                                          | 14 of 15    | $0.085                  | 2.1             |

The cost is Codex's reported input, cached input and output tokens times GPT-6.1 Sol's list prices; Codex reported no cache writes. Credits use the same tokens at the credit rates. Most of each run's input came from the cache, about 90% of it, which is why a task that read 150,000 to 400,000 tokens stayed under 13 cents. Bigger repositories and longer sessions cost more.

At $0.085 a task, $20 pays for about 235 tasks like these on the API. On a plan that arithmetic doesn't apply, because OpenAI meters included usage separately; the next section has outside measurements of what a plan holds.

In the same test, Claude Code on Claude Opus 5.5 passed all 15 runs and cost $0.252 per task as Claude Code priced it on a Claude Max plan, about three times Codex's cost; Codex passed 14 and finished faster, at a median of 57 seconds against 69. Each tool ran its default or recommended model, so the result compares the tools as shipped, on five tasks in one Python library. [Codex vs Claude Code](/blog/codex-vs-claude-code) has the full results.

GPT-6 Luna costs a twentieth of GPT-6.1 Sol per input and output token, and OpenAI describes it as suited to [focused, repeatable tasks](https://learn.chatgpt.com/docs/models). The test didn't measure Luna. Give it trivial jobs such as commit messages and one-line commands, and keep bug fixes and multi-file changes on GPT-6.1 Sol or GPT-6 Astra; [How to send quick coding tasks to a cheaper model](/blog/quick-tasks-on-cheaper-models) shows how in Codex.

## Are ChatGPT plans subsidized for Codex?

Measured at API list prices, a ChatGPT plan holds several times its price in Codex usage, though less than a Claude plan by outside measurements. OpenAI publishes message estimates instead of dollar allowances, so the figures come from outside tests that watch how far a plan's usage meter moves for a known number of tokens, then price those tokens at API rates:

| Who measured, when                                                                       | Plan                      | Codex usage a plan holds, at API prices |
| ---------------------------------------------------------------------------------------- | ------------------------- | --------------------------------------- |
| [Wokey](https://wokey.ai/codex-usage-limits), October 19 to 26, 2026, 12 accounts        | ChatGPT Plus, $20 a month | About $55 a week, or $237 a month       |
| [Wokey](https://wokey.ai/codex-usage-limits), October 26 to November 2, 2026, 7 accounts | ChatGPT Pro, $200 a month | About $581 a week, or $2,519 a month    |

These are measurements by Wokey, which runs a gateway, of real subscription accounts, not figures OpenAI publishes. On the mid-tier models, SemiAnalysis measured [about 5 times the API-equivalent value](https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x) on Claude plans as on ChatGPT plans, comparing Claude Opus 5.5 with GPT-6.1 Sol. It also found that OpenAI halved the tokens each model tier gets on the $200 Pro plan, and that keeping that plan's Sol limits unchanged when GPT-6.1 Sol launched lowered its API-equivalent value by about 30%. [Claude Code pricing explained](/blog/claude-code-pricing) has Anthropic's side.

OpenAI has said a plan can cost it more than it earns. In January 2025, Sam Altman wrote that OpenAI was [losing money on the $200 ChatGPT Pro plan](https://techcrunch.com/2025/01/05/openai-is-losing-money-on-its-pricey-chatgpt-pro-plan-ceo-sam-altman-says/) because people used it more than expected; that was the earlier Pro plan, before today's Codex limits. Value at API prices also isn't the same as a loss: SemiAnalysis estimates that subscriptions bring in [about 10% of revenue but can take over 40% of inference compute](https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x), and that a lab's margin on a plan depends on how much of the limit each subscriber uses.

For a developer, the practical point is the break-even: once a month of your Codex work at API prices would cost more than a plan, the plan is the cheaper way to pay, and from then on its limits are what you manage.

## How does AutoRouter change what Codex costs?

AutoRouter, the Mac app for Codex and Claude Code, adds 20+ models to Codex and picks the model for each task, so the ChatGPT plan you pay for goes to the work that needs it. In Codex, OpenAI models run on your ChatGPT plan. AutoRouter works out how hard each task is: hard work goes to the most capable model your plans cover, and to credits only when none is strong enough, while everything else goes to the model that costs you least, which is often your plan or a low-cost open model. A model has to clear a quality bar for the task before price counts, and you can see each request's model, what it cost and why.

[AutoRouter Free](https://autorouter.com/#plans) costs $0 a month, and routing across your ChatGPT and Claude plans is free. Pro costs $50 a month with $20 of included usage and adds every other model at the provider's price plus 10%; when your ChatGPT plan hits its limit, Pro keeps that work going from the included usage until the plan resets. New accounts get Pro free for their first month, or until $20 of usage is spent. AutoRouter earns the 10% on paid models and nothing on plans. It works with the Codex app and CLI on macOS 14 or later and is in beta; you pick AutoRouter from the model menu in Codex. More ways to bring the bill down are in [How to cut Claude Code and Codex costs](/blog/cut-claude-code-and-codex-costs).

## Questions

### Is Codex free?

Partly. As of November 9, 2026, ChatGPT Free and Go ($8 a month) include GPT-6 Luna at Standard speed in the ChatGPT desktop app, subject to rollout ([OpenAI](https://learn.chatgpt.com/docs/pricing)). Codex in the CLI, the IDE extension and the cloud, with GPT-6.1 Sol, starts at Plus for $20 a month.

### Is Codex included in ChatGPT Plus?

Yes. Plus at $20 a month includes Codex on the web, in the CLI, in the IDE extension and on iOS, with GPT-6.1 Sol and GPT-6 Luna, cloud code review and the Slack integration ([OpenAI](https://learn.chatgpt.com/docs/pricing)). Its usage is estimated per five hours, and weekly limits may also apply.

### How much does a ChatGPT credit cost?

OpenAI doesn't publish a single dollar price per credit; it says [purchase prices and discounts depend on your plan or agreement](https://learn.chatgpt.com/docs/pricing#token-rates). What it does publish is the credit rate per million tokens for each model, and a GPT-6.1 Sol task in AutoRouter's test used 1.7 to 3.1 credits.

### Is an API key cheaper than ChatGPT Plus for Codex?

Only for light use. At the $0.085 measured per task, $20 of API usage covers about 235 tasks like those in AutoRouter's test, and Plus costs $20 for an allowance OpenAI estimates in messages per five hours. An API key also drops the cloud features, so OpenAI positions it for [automation like CI](https://learn.chatgpt.com/docs/pricing). [Subscription or API: which is cheaper for coding agents?](/blog/subscription-vs-api-pricing) works through the break-even.

### Is Codex cheaper than Claude Code?

In AutoRouter's November 9, 2026 test, Codex on GPT-6.1 Sol cost $0.085 per task at API list prices against $0.252 for Claude Code on Claude Opus 5.5, and Claude Code passed all 15 runs to Codex's 14. Both start at $20 a month on a plan; [Claude Code pricing explained](/blog/claude-code-pricing) covers Anthropic's plans.

## Sources

- [Pricing](https://learn.chatgpt.com/docs/pricing), Codex docs, OpenAI, checked November 9, 2026
- [API pricing](https://platform.openai.com/docs/pricing), OpenAI, checked November 9, 2026
- [Models](https://learn.chatgpt.com/docs/models), Codex docs, OpenAI
- [pallets/click](https://github.com/pallets/click), GitHub, issues #2819, #3125 and #3360 and pull request #3884
- [Anthropic Subscriptions Offer 5x+ More Value Than OpenAI](https://newsletter.semianalysis.com/p/anthropic-subscriptions-offer-5x), SemiAnalysis, October 5, 2026 (partly paywalled)
- [Codex usage limits, measured](https://wokey.ai/codex-usage-limits), Wokey, measured October 19 to November 2, 2026
- [OpenAI is losing money on its pricey ChatGPT Pro plan, CEO Sam Altman says](https://techcrunch.com/2025/01/05/openai-is-losing-money-on-its-pricey-chatgpt-pro-plan-ceo-sam-altman-says/), TechCrunch, January 5, 2025

## Read next

- [How to cut Claude Code and Codex costs](https://autorouter.com/blog/cut-claude-code-and-codex-costs.md): Claude Code and Codex costs come down to three things: which model runs each turn, how much context each request carries, and whether you pay through a plan, credits or an API key. Run routine turns on a smaller model, keep sessions short, and spend the plan you already pay for before paying per token. AutoRouter, the Mac app for Codex and Claude Code, makes the model choice on every turn and shows each turn's model, cost and reason.
- [How to use Claude Code and Codex without a subscription](https://autorouter.com/blog/no-subscription-coding-agents.md): Claude Code runs on a Claude Console account and Codex runs on an OpenAI API key, and both bill per token with no ChatGPT or Claude plan. AutoRouter, the Mac app for Codex and Claude Code, is a third option: AutoRouter Pro costs $50 a month with $20 of included usage and bills paid models at the provider's price plus 10%. On the same models, a direct API key costs less, so Pro comes out ahead only when cheaper models take enough of your turns.
- [Codex usage limits explained, and what to do when you run out](https://autorouter.com/blog/codex-usage-limits.md): As of October 2026, OpenAI estimates that ChatGPT Plus and standard Business seats get 15 to 160 local Codex messages on GPT-6.1 Sol per five-hour window, with weekly limits that may also apply, while ChatGPT Pro has no five-hour limit and no published message counts. At the limit, Codex finishes the turn it is on, and then you can wait for the reset, buy ChatGPT credits, upgrade, or sign in with an API key at API rates. AutoRouter, the Mac app for Codex and Claude Code, picks the model for each Codex turn so the ChatGPT plan goes to the work that needs it.

Tags: [Costs](https://autorouter.com/blog/tags/costs.md), [Codex](https://autorouter.com/blog/tags/codex.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.
