Guide6 min read

Codex Pricing: Plans, Credits, API Costs & Limits (2026)

Codex pricing explained: every ChatGPT plan, what credits cost in dollars, API token rates, and the cheapest route for your workload. Verified Aug 2026.

Fast Inference

Codex pricing is not a single number

Codex is OpenAI's coding agent, bundled into ChatGPT plans rather than sold standalone. Money moves four ways: subscription usage, flexible credits, API-key billing at per-token rates, and a per-token route that keeps the Codex harness but swaps the billed model.

On 2026-04-02 OpenAI retired per-message pricing and moved Codex to token-based credit billing, so "one task" no longer maps to a fixed cost. This guide separates the four meters, converts credits to dollars, and prices real workloads, all verified against first-party sources on 2026-08-22.


Current Codex pricing at a glance (last verified 2026-08-22)

Current individual and team prices, verified against OpenAI's Codex pricing page:

PlanPriceWhat it is
Free$0/moTrial-grade quick tasks
Go$8/moLightweight coding
Plus$20/moFull GPT-5.6 + cloud features
ProFrom $100/mo5x or 20x Plus limits
Business$20/user/moUsage-based team seats
Enterprise & EduContact salesCustom, flexible pricing

Assumptions: Codex ships inside ChatGPT plans, not standalone. Business is $25/user/mo billed monthly (2+ users); Pro is $100/mo (5x) or $200/mo (20x).

Free is trial-grade quick tasks, Go covers lightweight work, and Plus is the first tier for real weekly sessions with the full GPT-5.6 family and cloud integrations. Pro adds two rate-limit tiers, 5x or 20x Plus usage, plus the Codex-Spark research preview. Business seats are usage-based; Enterprise and Edu are contact-sales with flexible pricing and, when enabled, no fixed rate limits.


Is Codex free?

Yes and no. The Free tier ($0) explores quick coding tasks but is trial-grade — it omits cloud features (GitHub code review, Slack) and hits limits fast. Sustained work needs a paid plan, and the two per-token routes (an OpenAI API key or the Fast alternative) are metered, not free. Once you pass included usage, you buy credits or switch routes.


The four meters that decide what Codex costs

Codex cost is never one blended bill. Four meters run in parallel, and mixing them is why people misjudge what they'll pay.

MeterWhat you payBilled asBest for
Subscription usageFlat monthly feeIncluded creditsSteady daily work
Flexible creditsTop-up over quotaCreditsBursts past limits
API-key billingPer tokenDollarsCI, automation
Fast per-tokenPer tokenPrepaid creditsSwapping the model

Assumptions: Meters run in parallel, not blended. API-key and Fast routes drop cloud features.

Meter 1 — Subscription usage. A flat monthly fee buys a pool of included usage, metered in credits and refreshed on a rolling five-hour window — what most people mean by "codex subscription."

Meter 2 — Flexible credits. When included usage runs out, you buy flexible credits — personal for Plus/Pro, shared for Business/Edu/Enterprise workspaces. Credits are priced per 1M input, cached-input, and output tokens, varying by model. One ChatGPT credit ≈ $0.04 (each credit rate ÷ its API dollar rate; Sol 100 credits/1M ÷ $4.00 = $0.04). Fast mode burns credits faster where supported (2.5x Standard for GPT-5.5, 2x for GPT-5.4).

ModelInputCached inputOutput
GPT-5.6 Sol10010500
GPT-5.6 Terra505300
GPT-5.6 Luna50.530
GPT-5.512512.5750
GPT-5.462.56.25375
GPT-5.4 mini18.751.875113

Assumptions: Credits per 1M tokens. One ChatGPT credit ≈ $0.04.

Meter 3 — API-key billing. Sign into Codex with an OpenAI API key and pay standard per-token rates directly. This route drops cloud features, so you pay only for tokens consumed.

API modelInputCached inputOutput
gpt-5.3-codex$1.75$0.175$14.00
gpt-5.3-codex (Fast)$3.50$0.35$28.00
gpt-5.6-sol$4.00$0.40$20.00
gpt-5.6-terra$2.00$0.20$12.00
gpt-5.6-luna$0.20$0.02$1.20

Assumptions: USD per 1M tokens, Standard short-context pricing.

Meter 4 — Fast per-token. Keep the Codex harness but route model calls to a separately billed Fast Inference catalog model, a labeled second path rather than more OpenAI quota (full setup below).


Cost per successful task, by workload

A task is a bundle of input, cached-input, and output tokens: multiply each by its credit rate, sum to credits, then multiply by ≈$0.04 for dollars.

Workload scenarioTokens (in → out)Credits≈ CostCheapest route
Light edit20K → 2K3$0.12Plus
Feature session200K → 20K30$1.20Plus
Heavy refactor1M → 100K150$6.00Pro 5x
CI batch5M → 500K750$30.00API key

Assumptions: GPT-5.6 Sol API rates ($4.00 input, $20.00 output per 1M), 1 credit ≈ $0.04; token bundles are representative.

Cost Per Codex Task by Workload
Cost Per Codex Task by Workload - Modeled on GPT-5.6 Sol API rates, 1 credit ≈ $0.04

OpenAI's own estimate for heavy Codex use is roughly $100–$200 per developer per month, with variance from model choice, parallel instances, automations, and Fast mode.


The Fast Inference alternative route

If none of the four options fit, there is a reversible fifth: keep the Codex harness and route to a metered model served by Fast Inference, billed per token from a separate balance. A new Fast account starts with $26 in free credit. Install the fast CLI, log in, and turn the route on; the default model is glm-5.2, and --model selects any other catalog model.

bash
# 1. Install the fast CLI and sign in (selects your first project).
npm install -g @inference/fast
fast login

# 2. Route the Codex harness through a metered Fast Inference model.
#    Default model is glm-5.2; the harness is unchanged.
fast codex on

# ...or select any other callable catalog model instead of the default.
fast codex on --model '<catalog-id>'

# 3. Confirm the route is active before sending real traffic.
fast codex status

# 4. Restore the original ~/.codex/config.toml when you are done.
fast codex off

fast codex off restores your original ~/.codex/config.toml. Usage is billed per token with credits drawn first from your prepaid balance — check per-token rates and pick a catalog model before routing traffic. This reversible path preserves the harness while routing model calls to a separately billed model; it does not increase native OpenAI quotas or accelerate an unchanged proprietary model.


Which route is cheapest for you?

Lightest to heaviest: Free/Go for casual work, Plus ($20/mo) for a few weekly sessions with cloud features, Pro 5x ($100/mo) for daily use that hits the five-hour limits, Pro 20x ($200/mo) for all-day or parallel use, an API key for CI and automation billed strictly per token, and Fast per-token to keep the harness while choosing a separately billed model.

To stretch the plan you already have, check and reduce Codex usage instead of switching routes, or compare Codex and Claude Code if you are still choosing a harness.


npm install openaibaseURL: "https://api.inference.net/v1"ship it