Codex has two pricing models, and almost every article covers only one of them. The subscription model is a monthly ChatGPT plan, with Codex included and usage windows as the trade-off; the API key model has no monthly fee, charges per token, and has no usage window. Most “Codex pricing” pages online are plan comparison charts — this page covers the other model: what one step actually costs, where the break-even point between the two options lies, and how to finish your work on the day your plan allowance runs out.
As of October 3, 2026, Kunavo’s gpt-5-6-sol costs $2.00 per 1M input tokens / $12.00 per 1M output tokens (official OpenAI pricing: $5.00 / $30.00; currently offered at the promotional price of $4.00 / $20.00, which the official pricing page states will last at least until November 21, 2026). Rates are sourced from the catalog on this site, not entered manually, so this page won’t disagree with what the API actually charges.
What one step actually costs
Plan comparison charts can’t answer “How much will this cost to run for a month?” To answer that, we need a unit. All our pricing pages use the same one: one agentic step — one back-and-forth with the model during a task, about 25,000 input and 1,200 output tokens (system prompt + conversation + file context going in, one edit or explanation coming out).
| Unit | Tokens | gpt-5-6-sol |
|---|---|---|
| 1 agentic step | 25,000 input / 1,200 output | $0.064 |
| 1 task with 20 steps | ×20 | $1.29 |
| Steps per $1 | — | About 16 steps |
To calculate it with your own token counts, use this section:
# 一個 Codex 工作階段的實際花費,從它自己的 token 數算出來。
IN_RATE, OUT_RATE = 2.00, 12.00 # 每 1M token USD
def session_cost(inp: int, out: int) -> float:
# 注意:reasoning token 不會出現在回覆裡,但會用「輸出」費率計費。
return inp / 1_000_000 * IN_RATE + out / 1_000_000 * OUT_RATE
print(session_cost(25_000, 1_200)) # 一個 agentic step
print(session_cost(25_000, 1_200) * 20) # 一件 20 步的任務Break-even point — one division
The break-even point depends on how many steps you run, not how many days you work. At $0.064 per step:
- $20 per month ≈ 310 steps ≈ 16 20-step tasks
- Below that volume → pay-as-you-go is cheaper, and months with no work cost $0
- Consistently above that volume → a subscription is a better deal until you hit the plan’s usage limit
Teams almost always use keys, not because of the unit price but because of attribution: keys can be assigned by person and purpose, and hard limits can be set. Seat-based monthly plans can do neither.
How to finish your work on the day your allowance runs out
This is the question you run into a week after reading a plan comparison chart, but no article answers it. When the usage window closes, you don’t have to wait for it to reset — point Codex CLI to a pay-as-you-go endpoint.
# 把 Codex CLI 指向按量計費的端點。
# Codex 只吃 Responses API,chat completions 不會動。
export OPENAI_BASE_URL=https://api.kunavo.com/v1
export OPENAI_API_KEY=sk-kn-...
codexAfter setting the authentication environment variables, Codex uses that key instead of your login. The plan’s usage limits no longer apply, and the usage is charged to the key’s owner; remove the variables to return to the subscription.
One hard limitation to know: Codex CLI’s custom providers only support the Responses API, so the endpoint must provide POST /v1/responses. Services that implement only chat completions won’t connect. Kunavo provides both; see Quickstart for details.
Two things that can push the actual cost higher
Reasoning tokens. Reasoning models generate thinking tokens before giving an answer. They don’t appear in the response, but are billed at the output rate. The table above doesn’t include them, so the actual bill for a hard problem will be higher than the table shows, with a larger gap for more difficult problems. The output token count in the usage field is the actual figure.
Retries. Requests that consume tokens before failing downstream still cost money. The difference is most noticeable with agentic tools, because what users see as one action is many back-and-forth calls for billing purposes. (Requests that fail on the Kunavo side and never reach the upstream provider aren’t charged.)
The most effective approach is to choose a model suited to the task: gpt-5-6-terra ($0.70 / $4.20) is enough for tasks such as classification, extraction, and formatting; you don’t need to use the top tier every time.
Codex or Claude Code
A comparison only makes sense when you use the same unit. The cost of the same agentic step across Claude tiers is listed on the Claude Code pricing page, using the same token counts for a direct comparison. Overall Claude pricing (subscriptions, API, and Claude Code) is on the Claude pricing page.
The real difference is usually not the unit price but the number of steps — the number of back-and-forth calls each tool takes to complete the same task varies with the task type, not the rate card. So take the task you do most often, run it once with each, note the usage, then multiply by the rates above.
Paying from Taiwan
Both routes use an international credit card; Taiwan has no local payment channel — JKoPay and LINE Pay are not on the available list. The difference is timing: a subscription charges once per month, incurring an international transaction fee each time; Kunavo's prepaid system charges the card only once when you top up, with a minimum of $10; the balance does not expire, and subsequent charges are deducted according to usage. Failed requests are not charged. Supported options include cards with JCB (Visa, Mastercard, American Express, JCB, UnionPay), Apple Pay, and Google Pay. Billing details are in the billing documentation.
Frequently asked questions
How much does Codex cost?
It depends on which route you take. The subscription route is the monthly price of a ChatGPT plan (Free / Go / Plus / Pro), with Codex included and usage windows as the trade-off. The API key route has no monthly fee and charges per token: October 3, 2026, Kunavo’s gpt-5-6-sol is $2.00 per 1M input tokens / $12.00 per 1M output tokens, which works out to about $0.064 for one agentic step (25,000 input and 1,200 output tokens), or roughly 16 steps per dollar. Months with no work cost $0.
Does Codex require payment? Is there a free option?
The CLI itself is free; model calls aren’t. Whether the ChatGPT free plan includes Codex, and how much you can use, is set by OpenAI and can change — check OpenAI’s plan page directly for current figures; this page doesn’t repeat allowances that may become outdated. The genuine “no monthly fee upfront” option is a pay-as-you-go API key: no monthly fee, pay for what you use, and months with no calls cost $0.
Which is cheaper, a subscription or an API key?
It depends on how many steps you run, not how many days you work. One agentic step (25,000 input / 1,200 output tokens) on gpt-5-6-sol costs about $0.064, so $20 per month is roughly 310 steps, or about 16 20-step tasks. Below that volume, pay-as-you-go is cheaper, and months with no work cost $0; consistently above it, a subscription is a better deal until you hit the plan’s usage limit. Teams usually use keys because that’s the only way to allocate costs per person and set hard limits.
I’ve used up the plan’s usage window, but I have a deadline today. What can I do?
Point Codex CLI to a pay-as-you-go endpoint; there’s no need to wait for the window to reset. Set the OPENAI_BASE_URL and OPENAI_API_KEY environment variables, and Codex will use that key instead of your login; remove the variables to return to the subscription. Note that Codex only accepts custom providers that support the Responses API, so the endpoint must provide POST /v1/responses. Services that only offer chat completions won’t connect.
Why is my actual bill higher than the estimate?
There are two reasons. First, reasoning tokens: reasoning models generate thinking tokens before giving an answer. Those don’t appear in the response, but they’re billed at the output rate, and the gap is largest for hard problems. Second, retries: requests that consume tokens before failing downstream still cost money, and what users see as one action in an agentic tool is many back-and-forth calls for billing purposes. Check the usage field in the API response for actual figures, not the estimate.
How can I pay for Codex in Taiwan?
Both routes use an international credit card; Taiwan has no local payment channel — JKoPay and LINE Pay are not on the available list. The difference is timing: a subscription charges once per month, incurring an international transaction fee each time; Kunavo's prepaid system charges the card once when you top up, with a minimum of $10 and no balance expiration, then deducts according to usage. Supported options include cards with JCB (Visa, Mastercard, American Express, JCB, UnionPay), Apple Pay, and Google Pay.
Which is cheaper, Codex or Claude Code?
A comparison only makes sense when you use the same unit. One agentic step (25,000 input / 1,200 output tokens) on gpt-5-6-sol costs about $0.064; the cost of the same step across Claude tiers is listed on the Claude Code cost page, using the same token counts, so you can compare directly. The real difference is usually not the unit price but the number of steps: the number of back-and-forth calls each tool takes to complete the same task varies with the task type, not the rate card.