OpenAI Codex is included in ChatGPT subscriptions rather than sold as a separate subscription. US monthly list prices start at $0 for Free, $8 for Go and $20 for Plus. Pro has $100, $200 and $500 tiers. You can also authenticate with an API key for separately metered model usage. These routes use different allowances, so a dollar price for API tokens does not tell you how many coding sessions your subscription includes.
The rates below were checked against OpenAI’s ChatGPT Learn pricing page and API pricing documentation on December 4, 2026. All worked examples are illustrative, not actual bills or measured coding-agent runs.
For a comparison of the two product experiences rather than their billing, see our Codex and ChatGPT comparison.
For a first coding exercise before evaluating a paid plan, see our OpenAI Codex beginner guide.
How much does OpenAI Codex cost?
| Plan | US list price | Billing route |
|---|---|---|
| Free | $0/month | Limited included usage |
| Go | $8/month | Included usage |
| Plus | $20/month | Included usage; eligible credit purchases |
| Pro | $100, $200 or $500/month | Higher included usage; eligible credit purchases |
| Business | $20/user/month annual; $25 monthly | Workspace usage; eligible credits |
| Enterprise / Edu | Contract pricing | Workspace agreement |
| API key | No fixed Codex subscription required | Metered Platform API usage |
Business annual pricing requires at least two users. Taxes, regional prices and eligibility may differ. A business should calculate the total seat commitment rather than comparing a single seat with an individual plan: two Business seats at the annual rate represent $480 for a year before taxes. For a comparison focused on choosing between the two personal paid tiers, see our Codex Plus vs Pro guide.
Is Codex available on the free plan?
Free and Go are eligible for desktop Codex access with GPT-6 Luna at Standard speed, subject to rollout. Check your account before assuming you can use every Codex interface or model. A free installation of the CLI is not a source of unlimited model inference. The installation, authentication and inference charges are different things.
Consider a small personal project where you need a few explanations and test suggestions. Start with the access your account already provides. If the required surface is unavailable or the usage allowance is insufficient, compare the actual next tier or an API-key workflow. Do not purchase a plan simply because a tutorial refers to features in a different account type.
Codex model pricing in credits
Purchased credits are a separate way to cover eligible additional usage. The following selected Standard-speed rates come from the official Codex credit table. They are expressed in credits per million tokens, not US dollars. Do not treat an included plan’s limit as a fixed credit balance inferred from its monthly price.
| Model | Input credits / 1M | Cached input credits / 1M | Output credits / 1M |
|---|---|---|---|
| GPT-6.2 Astra | 200 | 10 | 1,000 |
| GPT-6.2 Sol | 50 | 2.5 | 250 |
| GPT-6.1 Terra | 25 | 1.25 | 125 |
| GPT-6 Luna | 2.5 | 0.25 | 12.5 |
If you have 40 credits remaining, the credit table alone cannot tell you whether an entire coding project will fit. An agent may inspect several files, make repeated model requests and generate test output. Faster speed modes can consume more allowance. The amount of history and tool output matters as well as the length of the initial request. Check the available credit purchase price in your account before assigning a dollar value to a credit.
Codex API pricing in dollars
API-key sessions use a different billing account. For the currently documented short-context Standard API rates, the selected GPT-6.2 models cost the following amounts per million tokens.
| API model | Ordinary input | Cached input | Output |
|---|---|---|---|
| gpt-6.2-sol | $2.00 | $0.10 | $10.00 |
| gpt-6.2-astra | $8.00 | $0.40 | $40.00 |
The API also has separate cache-write prices, long-context rules and optional tool charges. For example, on GPT-6.2 Sol the 30-minute cache-write rate is $2.50 per million tokens, compared with $2 for ordinary input. Consult the complete pricing table when your workload uses these categories. Our OpenAI API cost guide covers the broader calculation, while our Codex API guide explains the authentication and SDK setup.
Estimate the cost of a coding task
Suppose a coding task uses 100,000 ordinary input tokens, 200,000 cached input tokens and 20,000 output tokens across all its model calls. The categories in this example are mutually exclusive. Assume Standard speed, no cache writes and no additional tool charges.
| Billing category | GPT-6.2 Sol API | GPT-6.2 Astra API |
|---|---|---|
| Ordinary input | $0.20 | $0.80 |
| Cached input | $0.02 | $0.08 |
| Output | $0.20 | $0.80 |
| Total | $0.42 | $1.68 |
At the corresponding purchased-credit rates, the same hypothetical Sol usage would consume 5 input credits, 0.5 cached input credits and 5 output credits: 10.5 credits. Astra would consume 42 credits. The difference between 10.5 credits and $0.42 is not a conversion rate you should apply to your own credit purchase. These are independent billing calculations using different published units.
If you ran 50 tasks with exactly the same Sol API token totals, the illustrative model bill would be $21. That is not evidence that a $20 Plus plan covers 50 of those tasks. Nor does it account for changes in token usage, tools or retries. Measure a sample of your own jobs before choosing a billing method.
Choose a billing route and control spending
For occasional interactive coding, compare the access already included in your ChatGPT plan. For scripts or continuous integration, an API-key workflow can make the metering easier to attribute to a repository or job. Some cloud integrations require subscription authentication, so the lower estimated cost is irrelevant if the interface cannot accomplish the task.
Keep a record of each task’s model, speed setting, total input, output, retries and result quality. Narrow the repository scope and remove irrelevant context. Use smaller models for clearly bounded tasks when they pass your tests. A cheap unsuccessful patch may cost more in review time than a more expensive successful patch.
Where supported, configure project spending alerts and separate credentials for development and production. Alerts are not necessarily hard spending caps. Enforce application-side execution and retry limits when a strict maximum is required. For subscription usage, check the Codex usage dashboard and the CLI status display instead of trying to infer remaining work from the API price table.
Frequently asked questions
Does Codex require a separate subscription? No. It is available through eligible ChatGPT plans or separately billed API-key access.
Can I buy extra usage without upgrading? Eligible Plus and Pro accounts can purchase credits when their included usage runs out. Check the options shown in your account.
Are Codex credits the same as API credits? No. Purchased ChatGPT usage credits and Platform API billing are different systems. Verify the billing account associated with your authentication method.
How much does one Codex task cost? There is no universal fixed task price. Measure total tokens and any applicable additional charges; for subscription use, inspect the remaining allowance.
Are current rates permanent? No. Model availability, prices and speed premiums can change. Verify the official rate card before making a budget decision.

