Plans & pricing

Codex Credits vs API Billing: ChatGPT Work and API Keys

Compare OpenAI subscription credits against Developer API billing: analyze per-million token rates across GPT-6.1 Sol, GPT-6 Sol and Luna, prompt caching discounts, plan usage limits, and enterprise data privacy.

Updated

In short

ChatGPT credits and API billing are separate wallets, and neither pays for the other. Credits are what Codex spends after your plan's included limits run out: Plus and Pro users buy them, and Business, Edu and Enterprise workspaces on flexible pricing buy workspace credits. Credits are charged per token, for example 50 credits per million input tokens on GPT-6.1 Sol. An API key bills the same tokens to your OpenAI Platform account in dollars, $2 per million input tokens on GPT-6.1 Sol. OpenAI publishes no price per credit, so which route is cheaper depends on what your plan or agreement charges for a credit.

On this page5

What a credit buys on each GPT-6 model

The table sets OpenAI's credit rates at Standard speed beside the API's standard short-context dollar rates (prompts up to 272K input tokens) for the same model. Read across any row: each credit rate is exactly 25 times the API dollar rate, for input, cached input and output alike. So one credit buys the tokens that $0.04 buys on the API.

Model

Credits per 1M tokens (input / cached / output)

API dollars per 1M tokens (input / cached / output)

GPT-6 Astra

250 / 25 / 1,250

$10 / $1 / $50

GPT-6.1 Sol

50 / 2.5 / 250

$2 / $0.10 / $10

GPT-6 Sol

50 / 5 / 250

$2 / $0.20 / $10

GPT-6 Luna

2.5 / 0.25 / 12.5

$0.10 / $0.01 / $0.50

Illustrative only: a turn that sends 40,000 input tokens and returns 2,000 output tokens, the size used in Codex: ChatGPT login vs API key, uses 2.5 credits on GPT-6.1 Sol (2 for input, 0.5 for output) and 0.125 credits on GPT-6 Luna. The same turn costs $0.10 and $0.005 on an API key. The older GPT-5.6 models have their own credit rates; OpenAI says a typical GPT-5.6 Sol task may use 2 to 15 credits.

Two details differ from the API. Codex credit billing has no separate cache-write charge, while the API bills cache writes at 1.25 times the input rate. Faster speeds raise both bills by the same factor: Fast doubles the purchased-credit rate, as the API's Fast tier doubles the dollar rate, and Ultrafast on GPT-6 Astra and GPT-6.1 Sol is six times on both. Included plan usage runs down faster than that, at 2.5 times on Fast and 8 times on Ultrafast.

No published credit price, so no dollar break-even

OpenAI says credit purchase prices and discounts depend on your plan or agreement, and its Codex pricing page lists none. The published numbers therefore cannot give a dollar break-even between credits and an API key. They do give a test you can run with your own price: if a credit costs you less than 4 cents, credits buy the same tokens more cheaply than an API key; above 4 cents, the API key is cheaper. Long sessions that keep writing new context to the cache tilt slightly toward credits, which skip the cache-write charge. Above 272K input tokens the API doubles input and raises output by half; OpenAI's credit table does not say whether credits do the same.

The rates also do not tell you how much a plan includes. OpenAI says credit prices alone don't determine included subscription usage, and it warns against using API prices to estimate included tasks.

Workspace credits on Business, Edu and Enterprise

Business, Edu and Enterprise plans with flexible pricing can buy workspace credits for the whole workspace. On Enterprise and Edu with flexible pricing there are no fixed rate limits, and usage scales with the credits the workspace holds. Enterprise and Edu without flexible pricing have the same per-seat limits as Plus for most features. Which arrangement your workspace has decides whether more Codex usage is a credit purchase at all, so ask your admin before budgeting for it.

At the limit: buy credits or sign Codex in with an API key

When a plan runs out, any user can also keep running local chats with an API key at standard API rates. The table shows what changes with each choice.

Buy credits

Sign in with an API key

Who can

Plus and Pro; Business, Edu and Enterprise workspaces with flexible pricing

Any user, Free included, for local chats

Who bills you

Your ChatGPT plan or workspace agreement

Your OpenAI Platform account

Cache writes

No separate charge

1.25 times the input rate

Where it runs

ChatGPT sign-in, as on your plan

Desktop app local chats, Codex CLI, IDE extension and SDK; no Codex cloud, GitHub code review or Slack

Voice in the desktop app

1.25 credits per minute

Not available

Training on your code

Plus and Pro: yes, unless you opt out; Business and Enterprise: not by default

Not by default

The API key wins on a known dollar price and on the training default for personal plans. Credits are the only top-up for work that needs Codex cloud, GitHub code review, Slack or voice, because an API key cannot reach them.

When to stop topping up and price Pro

On Plus, the point to stop topping up is about $80 a month. That is the gap between Plus at $20 and the lowest Pro plan at $100, which currently has no five-hour limit. At the illustrative turn size, $80 buys 800 GPT-6.1 Sol turns on an API key, while 1,000 GPT-6 Luna turns cost $5, or 125 credits. For credits, add up what you paid in a month; once it nears $80, price Pro instead. ChatGPT Plus vs Pro covers what else that step buys.

For the terminal costs of each sign-in, see Codex CLI cost. For per-plan limits, see ChatGPT Work and Codex limits by plan.

Edited byRick Finch

Official sources

Editorial guidance grounded in official product sources.

FAQ

Common questions

Are Codex credits the same as OpenAI API billing?

No. ChatGPT Work and Codex can share eligible plan-side credits; those credits do not pay API invoices. API-key and direct API usage are charged through the OpenAI Platform.

Does a ChatGPT plan cover Codex API-key usage?

No. OpenAI says Codex can use ChatGPT sign-in for subscription access or an API key for usage-based access. API-key usage uses standard API pricing instead of included ChatGPT plan credits.

Are Codex task limits the same as token prices?

No. Task limits are product limits for Codex usage under a plan or workspace. Token prices are the developer API meter used by the Platform account for API calls and API-key workflows.

How should a Business team budget Codex and ChatGPT Work?

Use standard Business seats plus shared workspace credits for Work and Codex, and keep API usage as a separate budget. Only workspaces with a Codex seat before June 24, 2026 or a pending invite as of June 24 should include legacy Codex-only seats.

When does Codex move into the API budget?

It moves into the API budget when the workflow signs in with an API key or your own software calls OpenAI APIs directly. Common examples include CI jobs, backend agents, internal automation, SDK workflows, and product features.

What is the safest budgeting shortcut?

Use one line for Codex subscription or workspace access for people, and a separate line for OpenAI API usage for systems. Then check the Codex pricing guide and API pricing page for the current limits and rates before paying.

Next steps

Take the next buying step