Cloud Agent Cost

Pricing guide

Codex Pricing: ChatGPT Plans, Credits, API Rates and Team Costs

Codex has no price of its own. It comes with a ChatGPT plan, shares that plan's usage allowance with ChatGPT Work, and can be extended with credits or run on an API key billed per token, and each route meters usage differently.

Prices checked against OpenAI's own pages on . Plans change; the sources are linked at the end.

Codex pricing at a glance

Codex is included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise; there is no separate Codex subscription. Codex and ChatGPT Work share the same pricing, credits and usage limits. The other way to pay is per token, by signing Codex in with an OpenAI API key. These are OpenAI's listed US prices as of November 21, 2026:

PlanPriceWhat you get for Codex
Free$0GPT-6 Luna at Standard speed in the desktop app, subject to rollout
Go$8 a monthGPT-6 Luna at Standard speed in the desktop app, subject to rollout
Plus$20 a monthCodex 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; credits to extend usage
Pro$100, $200 or $500 a monthEverything in Plus with a larger allowance at each tier; no five-hour limit at present; Ultrafast mode only on Pro 500; billed monthly only
Business$20 per user a month billed annually, or $25 billed monthly2-user minimum; larger virtual machines for cloud tasks; admin controls, SAML SSO and MFA; credits to extend usage
Enterprise and EduContact OpenAI salesEverything in Business plus priority processing, SCIM, RBAC, audit logs and analytics; with flexible pricing, no fixed rate limits and usage paid in credits
API keyPer tokenCodex in the CLI, SDK or IDE extension at API rates; no cloud features such as GitHub code review or Slack

On every plan, Codex draws on the same allowance as ChatGPT Work, so someone who also runs Work tasks in ChatGPT uses up the same limit. OpenAI's full feature-by-plan table is on its Codex pricing page; check it before you buy, since plans and allowances change. If you are weighing Codex against Claude Code, the same breakdown for Anthropic's agent is in our Claude Code pricing guide.

How much Codex a plan includes

OpenAI doesn't publish a fixed message count. It publishes ranges of local messages per five-hour window for Plus and Standard Business, and says cloud tasks may use more of the allowance than local messages, and that weekly limits may also apply:

ModelLocal messages per 5 hours (Plus and Standard Business)
GPT-6.2 Astra6–50
GPT-6.2 Sol17–180
GPT-6.1 Sol15–160
GPT-6.1 Terra35–285
GPT-6 Luna350–3,000

The width of each range is the point: model choice, context size, reasoning, tool use and caching all change what one message costs, so prompt length alone is not a reliable guide. Pro tiers have no published counts; OpenAI says Pro 200 includes more than Pro 100 and Pro 500 the most. Enterprise and Edu plans without flexible pricing get the same per-seat limits as Plus for most features.

Speed modes spend the allowance faster. Fast mode uses included usage at 2x the Standard rate for GPT-6.2 Astra and GPT-6.2 Sol and 2.5x for older models. Ultrafast uses it at 6x for the GPT-6.2 models and 8x for GPT-6 Astra and GPT-6.1 Sol. Image generation uses included limits 3–5x faster on average than similar turns without it.

To see where you stand, open the Codex usage dashboard, or run /status in a Codex CLI session.

Credits and API token rates

Past the included allowance there are two meters. Credits are bought in ChatGPT (Settings → Usage) or in the Codex app (Usage & Billing) and are drawn down at a rate per million tokens. API keys bill the same models in US dollars at OpenAI's API rates. OpenAI's Standard-speed rates for the current Codex models:

ModelCredits per 1M input / cached input / outputAPI price per 1M input / cached input / output
GPT-6.2 Astra200 / 10 / 1,000$8 / $0.40 / $40
GPT-6.2 Sol50 / 2.5 / 250$2 / $0.10 / $10
GPT-6.1 Sol50 / 2.5 / 250$2 / $0.10 / $10
GPT-6.1 Terra25 / 1.25 / 125$1 / $0.05 / $5
GPT-6 Luna2.5 / 0.25 / 12.5$0.10 / $0.01 / $0.50

API prices are for prompts up to 272,000 input tokens; longer prompts are billed at higher long-context rates. The details that move a Codex bill more than the headline rate:

  • What a credit costs you. OpenAI doesn't list one dollar price per credit: purchase prices and discounts depend on your plan or agreement. Check the amount at checkout in Settings → Usage, or your Business or Enterprise rate card. OpenAI's own example is that a typical GPT-5.6 Sol task may use 2–15 credits.
  • Cache writes. Codex credit billing has no separate cache-write charge. On an API key, cache writes are billed (for GPT-6.2 Sol, $2.50 per million tokens for a 30-minute write).
  • Speed. Fast mode costs 2x Standard when paid with credits or Enterprise pay-as-you-go. Ultrafast costs 6x for GPT-6 Astra and GPT-6.1 Sol; for the GPT-6.2 models it costs 3x through February 28, 2027 and 6x from March 1, 2027.
  • Where the request is served. On the API, regional data-residency and FedRAMP endpoints carry a 10% uplift for models released on or after March 5, 2026.
  • Credits expire. Credits on personal plans expire 12 months after purchase and do not roll over; they are not API credits and cannot be used for API-key sessions.

The full credit table, including GPT-5.6 and specialist models, is on the Codex pricing page; the full API table is on OpenAI's API pricing page. For what credit-based billing tends to hide at team scale, see credit-based pricing: the true cost for engineering teams.

Plan, credits or API key: which costs less

The choice is between an allowance you have already paid for, credits that extend it, and a metered key with no allowance at all.

  • Plus suits a developer with a few focused sessions a week, which is how OpenAI pitches it. When the limit is reached, a turn already in progress can finish, then work waits for the reset unless you buy credits.
  • Pro suits steady, heavy individual use. Each tier up includes more allowance at a fixed monthly price; Ultrafast is only on Pro 500, and buying credits on Pro 100 or Pro 200 does not unlock it.
  • Business suits most teams. At $20–$25 a seat it is priced like Plus, with a shared workspace, admin controls and per-user usage limits; workspaces with flexible pricing can buy shared credits when people run out.
  • An API key suits automation. OpenAI recommends it for shared environments like CI: every run is billed per token with no seat, and model access follows what your key can use. It gives up the cloud features (Codex cloud, GitHub code review, Slack and Linear).
  • Enterprise with flexible pricing turns Codex into metered spend. There are no fixed rate limits; usage draws on workspace credits at your contracted rates, so budget it like usage, not like a seat.

Any user can also run extra local sessions on an API key after hitting a plan limit, billed at standard API rates. That keeps work moving, but it moves the cost to a different bill.

The second bill when Codex runs in the cloud

Codex cloud runs tasks in environments OpenAI hosts, and they draw on the same plan allowance as local work (often more of it). OpenAI's pricing page lists no separate charge for that environment; Business plans get larger virtual machines for faster cloud tasks.

When you run Codex yourself instead, with codex exec or the SDK in a CI job, a VM you manage or a hosted agent platform, the machine is a separate cost: runner minutes, VM time and whatever the platform charges for the environment. Token cost grows with how much context each turn carries; compute grows with how long the run takes. We break that down in VM compute cost vs token cost in cloud agent runs, and the setup work a self-managed runner adds in the infrastructure overhead inside every self-managed Claude Code or Codex deploy.

Where the model bill lands depends on whose key the run uses. With your own OpenAI key, tokens are billed to your API account at your rates and the platform bills only for the environment; with platform credits, the platform resells model usage, often with a margin. Platforms such as Replicas run Codex in an isolated VM per task on the team's own model account, so the two bills stay separate. Check each platform's pricing page for its compute rates and whether it marks up tokens. More on that split in what your Anthropic or OpenAI bill buys when the runner is managed for you.

How to see and cap Codex spend

Where you see spend and set limits depends on how your organization pays:

SetupSee spendCap spendPer-user numbers
Plus or ProCodex usage dashboard; /status in the CLI; credit balance in Settings → UsageThe plan allowance; a monthly maximum on automatic credit reloadsOne person per account
BusinessWorkspace Billing: credit balance and usage reportsPer-user, group and workspace usage limits; a workspace overage limitUsage reports in Billing
Enterprise and EduBilling, the analytics dashboard and the Analytics APIUser and group limits, overage limit, model and speed settingsAnalytics dashboard and API; Compliance API and audit logs
API keyYour OpenAI API organization's usage and billing pagesThe limits set on your API organization and projectsOne key per person or per pipeline

Two things to know before relying on those controls. Usage alerts notify but do not stop spending, and on a workspace that permits overage, "No limit" is not a zero-spend cap; set the overage limit to zero where you want usage to stop when credits run out. On personal plans, a saved instruction such as "ask me before using credits" adds no approval step: credits are used automatically once the allowance is gone. For tying each run to an engineer and a task, see task-scoped billing when engineers share Claude Code or Codex.

Ways to lower a Codex bill

  • Pick the smallest model that does the job. GPT-6 Luna costs a twentieth of GPT-6.2 Sol per token, and GPT-6.2 Astra four times Sol.
  • Stay on Standard speed unless waiting costs more than the 2x to 8x multipliers above.
  • Keep prompts precise and leave out context the agent doesn't need; narrow the files and sources it reads.
  • Shrink AGENTS.md. In a large repo, nest AGENTS.md files so each task loads only the instructions for the part it touches.
  • Turn off MCP servers you aren't using. Each one adds context to every message.
  • Ask for the output you need. Define the format and length, and separate required work from optional improvements.

OpenAI's suggestion is to check the usage dashboard every week or two to learn your pace, and to try a smaller model or a tighter task when usage runs higher than expected.

Questions people ask

Is Codex free?

Codex is included in ChatGPT Free, with GPT-6 Luna at Standard speed in the desktop app, subject to rollout. Codex on the web, in the CLI and in the IDE extension, plus the cloud integrations, start with Plus at $20 a month.

Is Codex included in ChatGPT Plus?

Yes. Plus, Pro, Business, Edu and Enterprise all include Codex, and it shares each plan's usage allowance with ChatGPT Work.

What happens when I hit my Codex usage limit?

A turn already in progress can finish, subject to fair use. After that, Plus and Pro users can buy credits to keep going, Business, Edu and Enterprise workspaces with flexible pricing can buy workspace credits, and anyone can run extra local sessions on an API key at standard API rates.

Can I use Codex with an API key instead of a ChatGPT plan?

Yes. Signed in with an API key, Codex runs in the CLI, SDK or IDE extension and every request is billed at OpenAI's API rates. Cloud features such as Codex cloud, GitHub code review and the Slack integration are not available that way.

How much does a ChatGPT credit cost?

OpenAI doesn't publish a single price per credit; purchase prices and discounts depend on your plan or agreement. Check the amount at checkout in Settings → Usage, or your Business or Enterprise rate card.

Sources

  1. Codex pricing (OpenAI)
  2. About ChatGPT Pro tiers (OpenAI Help Center)
  3. Using credits for flexible usage in ChatGPT (OpenAI Help Center)
  4. OpenAI API pricing
  5. ChatGPT Work: usage and cost (OpenAI)