Zurück zu den Leitfäden
Pricing·4. September 2026·9 Min. Lesezeit

Codex pricing — what a task costs per token, and the break-even against a plan

Plan or per-token is one division, not a debate. Here are the rates, one worked task, and the break-even.

Last reviewed on .

Codex is sold on two different axes, which is why “how much does Codex cost” has no single answer. A ChatGPT plan bundles Codex into a flat monthly fee with usage limits. An API key bills per token, has no monthly fee and no limits, and costs nothing in a month you do not code. Which is cheaper is arithmetic, and the arithmetic is short.

This guide does not reprint OpenAI's plan tiers — those move, and a page that lists them is wrong the week after they change. It gives you the per-token side, one worked task, and a break-even you fill in with whatever your plan costs on the day you read this.

What a Codex task costs per token

Codex is agentic: one thing you ask for is many billed round trips. The unit that matters is therefore the step — one model call that reads context, proposes something and reports back — not the request and not the hour.

ModelKunavo, per 1M in / outOpenAI listPer step
GPT-5.3 Codex$0.70 / $5.60$1.75 / $14.00$0.024
GPT-5.4$1.00 / $6.00$2.50 / $15.00$0.032
GPT-5.4 Mini$0.225 / $1.35$0.75 / $4.50$0.0072

A step here is 25,000 input and 1,200 output tokens — the same sizing this site uses on the Claude Code page, so the two are comparable. Rates come from the catalog at render time, not from a hand-typed table, and each is printed next to OpenAI's own list price so you can check rather than trust.

The break-even

This is the whole decision, and it takes one division. A plan is worth its price only if it saves you more than its price in per-token spend:

# Break-even, in tasks per month.
#
#   plan_price_per_month / cost_per_task = tasks the plan must save you
#
# With a 20-step task on GPT-5.3 Codex at Kunavo rates:
#
#   cost_per_task = $0.484
#
#   $20 plan  ->  $20  / $0.484  = 41 tasks/month
#   $100 plan ->  $100 / $0.484  = 206 tasks/month
#
# Fewer than that and per-token is cheaper. More and the plan is.
# Substitute whatever your plan actually costs today.

Two things skew it in practice, both in the same direction. Plans have usage windows, so the heavy days you bought the plan for are the days you are most likely to hit a limit — and a limit you hit is capacity you paid for and did not get. Per-token has no window; the bill just tracks the work. Against that, a plan's cost is predictable and a per-token bill is not, which is worth something on a team budget.

Running Codex CLI on a per-token key

Codex CLI reads a custom provider from its config file. One constraint rules out most gateways: wire_api accepts only "responses", so the endpoint has to serve POST /v1/responses — not just chat completions.

~/.codex/config.toml
# ~/.codex/config.toml — Codex CLI on a per-token key instead of a plan.
model = "gpt-5-3-codex"
model_provider = "kunavo"

[model_providers.kunavo]
name = "Kunavo"
base_url = "https://api.kunavo.com/v1"
env_key = "KUNAVO_API_KEY"
wire_api = "responses"

The key never goes in the file: env_key names an environment variable Codex reads at launch, so the config stays safe to commit. Full walkthrough, including what each field does and how to tell a protocol failure from an auth one, is on the Codex CLI API key page. If you drive Codex through a provider switcher instead, the CC Switch setup covers both directions.

Three things that move the real number

Reasoning tokens. Codex-class models produce internal tokens billed at the output rate that never appear in the diff you see. An estimate built from visible output length understates a reasoning-heavy task, sometimes by a lot. Read billed output from your usage data, not from the answer.

Prompt caching. Agentic tools re-send the same context every step, so most of that 25,000-token input is unchanged between turns. Cached input on the OpenAI protocol is billed at a fifth of the input rate, which on a long session is the single largest lever available — larger than switching models. The OpenAI pricing calculator has a field for it.

Retries. A request that consumed tokens and then failed downstream is still billed. On a flaky network or a rate-limited upstream this is a real percentage, and it is invisible in any per-request estimate.

Codex or Claude Code

They are protocol-bound in opposite directions — Codex speaks the Responses API, Claude Code speaks Anthropic Messages — but both are agentic CLIs billed by the step, so the arithmetic above transfers unchanged. The per-step comparison across both families is on Claude Code vs Codex, and the Claude side of the break-even is on Claude Pro and Max limits. One key on Kunavo reaches both, so the choice stays a --model argument rather than a second account. If the question is which OpenAI surface to open rather than which CLI to install, Codex vs ChatGPT covers what a shared plan allowance does when one of the two doors is agentic.

FAQ

How much does OpenAI Codex cost?

Codex is sold two ways and they are priced on different axes. A ChatGPT plan bundles Codex usage into a flat monthly fee with usage limits; an API key bills per token with no monthly fee and no limits. Per token, GPT-5.3 Codex costs $0.70 per 1M input tokens and $5.60 per 1M output at Kunavo rates, against OpenAI's list of $1.75 / $14.00. A single agentic step of about 25,000 input and 1,200 output tokens works out to $0.024, so a twenty-step task is roughly $0.484.

Is Codex free?

The Codex CLI is free to install and OpenAI has offered Codex access inside its lower ChatGPT tiers, but running a model is never free — every step Codex takes is a billed model call, whether it is drawn from a plan's quota or charged to an API key. The practical question is not whether there is a free tier but whether your monthly volume fits inside a plan's limits; below the break-even in this guide, a per-token key costs less than the cheapest plan, and in a month where you do not code it costs nothing at all.

Is the Codex API cheaper than a ChatGPT plan?

Divide the plan's monthly price by the cost of one task and you get the number of tasks the plan has to save you to be worth it. At Kunavo rates a twenty-step task on GPT-5.3 Codex is about $0.484, so a $20 plan breaks even at roughly 41 tasks a month and a $100 plan at roughly 206. Steady daily heavy use clears those numbers easily and the plan wins; bursty use — some weeks heavy, some weeks nothing — does not, and per-token wins because the quiet weeks cost zero.

Can Codex CLI use a third-party API key?

Yes, through a custom provider in ~/.codex/config.toml — but only over the Responses API. Codex's wire_api field accepts "responses" and nothing else for a custom provider, which is why most OpenAI-compatible gateways cannot drive Codex at all: they implement /v1/chat/completions and stop there. Kunavo serves POST /v1/responses, so the config block in this guide works as written.

What does one Codex task actually cost?

It depends on steps, not on time. A step is one model round trip — read a file, propose an edit, run a check — and a realistic step is about 25,000 input tokens and 1,200 output, because the tool re-sends context every turn. At Kunavo rates that is $0.024 per step on GPT-5.3 Codex, so a small task of five steps is about $0.121 and a substantial twenty-step task about $0.484. Prompt caching cuts the input side sharply on long sessions, since most of what is re-sent is unchanged.

Which model should Codex use to keep the bill down?

GPT-5.3 Codex at $0.70 / $5.60 is the tuned choice for agentic coding. Where a task is mechanical — renaming, formatting, summarising a diff — a general model is cheaper: GPT-5.4 is $1.00 / $6.00 and GPT-5.4 Mini is $0.225 / $1.35. The saving comes from matching the model to the step rather than from picking one cheap model for everything, because a weak model that needs three attempts costs more than a strong one that needs one.