Codex guide
Choose a model, understand your plan, and compare credit rates with API costs. A practical reference for working with Codex.
Reviewed against official OpenAI documentation on . Subscription and API prices are in USD; regional prices and taxes can differ.
Which model should I start with?
OpenAI's current Codex modelsOpenAI recommends GPT-6.1 Sol for complex coding and agent workflows, and Luna for focused, repeatable work. Evaluate Astra when the task needs deeper judgment and its higher usage is justified.
| Model / identifier | Useful starting point for |
|---|---|
GPT-6 Lunagpt-6-luna | Focused edits, triage, and frequent repeatable work |
GPT-6.1 Solgpt-6.1-sol | Complex coding and agent work with attention to time and cost |
GPT-6 Astragpt-6-astra | Demanding reasoning, ambiguous problems, and difficult code |
- GPT-6.1 Sol rollout: Plus, Pro, Business, Enterprise, and Edu are included at launch. Enterprise and Edu administrators must enable it; Free and Go are excluded from this launch.
- Earlier models: GPT-6 Sol and the GPT-5.6 Sol, Terra, and Luna lineup remain available during rollout. The credit table can show their rates.
- GPT-5.5 retired on 14 October 2026 for Codex with ChatGPT sign-in. API-key sessions and the OpenAI API are unaffected by that retirement.
The three current API models have a 1,050,000-token context window and 128,000-token maximum output. These are API specifications; they do not promise that a Codex client loads an entire repository or exposes the same effective context.
Sources: rollout and retirement, workspace access, API specifications for Luna, Sol 6.1, and Astra.
What does Codex credit usage cost?
OpenAI's credit rate tableThese rates apply to purchased credits and eligible Enterprise pay-as-you-go usage. The unit is credits per million tokens. Your included subscription allowance follows its own limits.
Scroll to compare all columns and rows. Model names stay in view.
| Model | Speed | Input | Cached input | Output |
|---|---|---|---|---|
GPT-6 Lunagpt-6-lunaCurrent recommendation | Standard | 2.5 | 0.25 | 12.5 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | Fast | 5 | 0.5 | 25 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | Standard | 50 | 2.5 | 250 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | Fast | 100 | 5 | 500 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | Ultrafast | 300 | 15 | 1,500 |
GPT-6 Astragpt-6-astraCurrent recommendation | Standard | 250 | 25 | 1,250 |
GPT-6 Astragpt-6-astraCurrent recommendation | Fast | 500 | 50 | 2,500 |
GPT-6 Astragpt-6-astraCurrent recommendation | Ultrafast | 1,500 | 150 | 7,500 |
GPT-6 Solgpt-6-solEarlier model · available during rollout | Standard | 50 | 5 | 250 |
GPT-6 Solgpt-6-solEarlier model · available during rollout | Fast | 100 | 10 | 500 |
| GPT-5.6 SolEarlier model · available during rollout | Standard | 100 | 10 | 500 |
| GPT-5.6 SolEarlier model · available during rollout | Fast | 200 | 20 | 1,000 |
| GPT-5.6 TerraEarlier model · available during rollout | Standard | 50 | 5 | 300 |
| GPT-5.6 TerraEarlier model · available during rollout | Fast | 100 | 10 | 600 |
| GPT-5.6 LunaEarlier model · available during rollout | Standard | 5 | 0.5 | 30 |
| GPT-5.6 LunaEarlier model · available during rollout | Fast | 10 | 1 | 60 |
No matching rates. Try another model, change the filters, or reset this table.
Fast and Ultrafast credit rows are calculated from the published 2x and 6x multipliers. Codex credit billing has no separate cache-write charge. Credit purchase prices and discounts depend on your plan or agreement; a credit is not a US dollar.
Legacy Enterprise agreements may use another rate card. GPT-5.6 Sol promotional pricing is documented through at least 21 November 2026. Restricted research and cyber models are outside this coding reference.
Sources: credit rates and agreement exceptions, speed billing. For API-key usage, jump to direct API pricing.
Choose effort and speed for the work
OpenAI's selection guidanceStart with the default effort available to your account, then adjust after a representative task. Higher effort spends more time and tokens on reasoning. These editorial starting points adapt OpenAI's guidance to coding work.
| Your task | Start with | What to check |
|---|---|---|
| Small fixes, extraction, and routine edits | GPT-6 Luna · low | Keep scope narrow; move up if it misses constraints or needs repeated corrections. |
| Triage and repeatable tasks with clear constraints | GPT-6 Luna · extra high | Compare accuracy and total effort with Sol on the same representative task. |
| Features, debugging, and coordinated changes | GPT-6.1 Sol · medium | A useful starting point for complex coding; check the diff and relevant tests. |
| Cross-cutting refactors or conflicting evidence | GPT-6.1 Sol · extra high | Increase effort when planning or consistency is the weak point. |
| Ambiguous architecture or demanding analysis | GPT-6 Astra · medium / extra high | Evaluate when the quality improvement justifies its higher usage. |
In the desktop model controls, Power balances the choices available to you; Advanced exposes specific settings. CLI users can use /model. Ultra reasoning and Ultrafast speed are separate controls. Ultra can involve subagents, whose model and tool work adds token usage.
How speed changes usage
Speed modes and eligibility| Speed | Included allowance consumed | Purchased-credit rate | Access |
|---|---|---|---|
| Standard | 1x | 1x | Baseline speed for the selected model |
| Fast | 2.5x | 2x | Supported models and clients with ChatGPT sign-in |
| Ultrafast | 8x | 6x | Astra / Sol 6.1; Pro $500 or eligible Enterprise / Edu |
Ultrafast is off by default in Enterprise and requires an eligible agreement and administrator enablement. Purchasing credits does not unlock it on other personal tiers. API-key usage has separate API eligibility and prices.
Sources: model and effort choices, Power and Advanced, subagent usage, speed multipliers and access.
Plans and included usage
Current plan documentationWith ChatGPT sign-in, Codex and ChatGPT Work share usage. Model choice, context, tool work, and caching affect how quickly you use an allowance. Check your dashboard for the limits and reset times that apply to your account.
Scroll to compare all columns. USD reference prices; offers and regional checkout prices can vary.
| Plan | Monthly price | Codex access | Allowance and extras |
|---|---|---|---|
| Free | $0/month | Luna at Standard speed in desktop; rollout dependent | Limited access; check your current allowance |
| Go | $8/month | Luna at Standard speed in desktop; rollout dependent | Light coding use; check your current allowance |
| Plus | $20/month | Broader Codex clients and cloud features | 5-hour allowance; weekly limits may apply; extra credits available |
| Pro | $100 / $200 / $500 per month | Plus features; Ultrafast on the $500 tier | Currently no 5-hour cap; allowance still applies. Check your dashboard. |
Team and organization plans
| Plan | Price | Usage and controls |
|---|---|---|
| Business | $20/user/month, billed annually; $25 monthly | 2+ users; dedicated workspace, SAML SSO, and MFA. Standard seats have usage allowances; credits can extend usage. |
| Enterprise / Edu | Contact sales / agreement | Flexible pricing uses credits; legacy allowance-based plans differ. Model and Ultrafast access require workspace eligibility and admin controls. |
How far can an allowance go?
OpenAI publishes these estimates for local messages per five hours on Plus and Standard Business. They are illustrative ranges, not guaranteed message counts. Cloud work shares the allowance and may consume more.
| Model | Estimated local messages / 5 hours |
|---|---|
| GPT-6 Astra | 5–45 |
| GPT-6.1 Sol | 15–160 |
| GPT-6 Luna | 350–3,000 |
Pro currently has no five-hour cap; that does not mean unlimited usage. Plus and Pro can buy extra credits. Flexible Business, Enterprise, and Edu workspaces can use workspace credits. Your agreement and dashboard remain the authority.
Source: plans, usage estimates, and shared limits. In the CLI, /status shows current usage information.
Direct API pricing
OpenAI API pricesSigning in with an API key bills the key's API organization and project. The table below uses USD per million tokens for the three current models. Batch and Flex are API processing options, not Codex app speed buttons.
Scroll to compare all columns and rows. Model names stay in view.
| Model / API ID | Processing / prompt band | Input | Cached input | Cache write | Output |
|---|---|---|---|---|---|
GPT-6 Lunagpt-6-lunaCurrent recommendation | StandardPrompt ≤ 272K input tokens | $0.10 | $0.01 | $0.125 | $0.50 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | StandardPrompt > 272K input tokens | $0.20 | $0.02 | $0.25 | $0.75 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | BatchPrompt ≤ 272K input tokens | $0.05 | $0.005 | $0.0625 | $0.25 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | BatchPrompt > 272K input tokens | $0.10 | $0.01 | $0.125 | $0.375 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | FlexPrompt ≤ 272K input tokens | $0.05 | $0.005 | $0.0625 | $0.25 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | FlexPrompt > 272K input tokens | $0.10 | $0.01 | $0.125 | $0.375 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | FastPrompt ≤ 272K input tokens | $0.20 | $0.02 | $0.25 | $1.00 |
GPT-6 Lunagpt-6-lunaCurrent recommendation | FastPrompt > 272K input tokens | $0.40 | $0.04 | $0.50 | $1.50 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | StandardPrompt ≤ 272K input tokens | $2.00 | $0.10 | $2.50 | $10.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | StandardPrompt > 272K input tokens | $4.00 | $0.20 | $5.00 | $15.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | BatchPrompt ≤ 272K input tokens | $1.00 | $0.05 | $1.25 | $5.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | BatchPrompt > 272K input tokens | $2.00 | $0.10 | $2.50 | $7.50 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | FlexPrompt ≤ 272K input tokens | $1.00 | $0.05 | $1.25 | $5.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | FlexPrompt > 272K input tokens | $2.00 | $0.10 | $2.50 | $7.50 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | FastPrompt ≤ 272K input tokens | $4.00 | $0.20 | $5.00 | $20.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | FastPrompt > 272K input tokens | $8.00 | $0.40 | $10.00 | $30.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | UltrafastPrompt ≤ 272K input tokens | $12.00 | $0.60 | $15.00 | $60.00 |
GPT-6.1 Solgpt-6.1-solCurrent recommendation | UltrafastPrompt > 272K input tokens | $24.00 | $1.20 | $30.00 | $90.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | StandardPrompt ≤ 272K input tokens | $10.00 | $1.00 | $12.50 | $50.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | StandardPrompt > 272K input tokens | $20.00 | $2.00 | $25.00 | $75.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | BatchPrompt ≤ 272K input tokens | $5.00 | $0.50 | $6.25 | $25.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | BatchPrompt > 272K input tokens | $10.00 | $1.00 | $12.50 | $37.50 |
GPT-6 Astragpt-6-astraCurrent recommendation | FlexPrompt ≤ 272K input tokens | $5.00 | $0.50 | $6.25 | $25.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | FlexPrompt > 272K input tokens | $10.00 | $1.00 | $12.50 | $37.50 |
GPT-6 Astragpt-6-astraCurrent recommendation | FastPrompt ≤ 272K input tokens | $20.00 | $2.00 | $25.00 | $100.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | FastPrompt > 272K input tokens | $40.00 | $4.00 | $50.00 | $150.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | UltrafastPrompt ≤ 272K input tokens | $60.00 | $6.00 | $75.00 | $300.00 |
GPT-6 Astragpt-6-astraCurrent recommendation | UltrafastPrompt > 272K input tokens | $120.00 | $12.00 | $150.00 | $450.00 |
No matching rates. Try another model, change the filters, or reset this table.
- Long prompts: above 272,000 input tokens, the full request uses 2x input and cache rates and 1.5x output rates. Select the relevant prompt band.
- Calculated rows: Batch and Flex use 0.5x Standard, Fast uses 2x, and supported Ultrafast uses 6x. The table applies those documented rules to each prompt band.
- Request billing: input, cached input, cache writes, and output are different categories. Tool fees and eligible regional-processing premiums can add costs; check the full price list.
The API publishes Ultrafast access for Astra and Sol 6.1 independently of ChatGPT's Pro $500 requirement. Codex Cloud requires ChatGPT sign-in; API-key access does not include its hosted integrations.
Sources: API rates, pricing rules for Sol 6.1, Astra, and Luna, Ultrafast API, authentication boundary.
Where to use Codex
OpenAI's working practicesChoose the execution environment for the work as well as the model. Local tools and permissions apply to local tasks; hosted work needs its own configured environment and access.
| Surface | Where work runs | When it fits |
|---|---|---|
| Desktop · local work | Your selected local checkout or connected execution host | Work on a repository while reviewing files, changes, and results in the app. |
| CLI | The local project directory | Terminal work and scripted runs with codex exec; choose model, effort, and permissions. |
| IDE extension | Your editor workspace for local tasks | Work alongside source files and use editor context. Check supported client and sign-in options. |
| Codex Cloud | A configured hosted environment with its own task workspace | Delegate work that can continue while your computer sleeps, then inspect changes and checks. |
Useful CLI controls
CLI documentation| Command | Purpose |
|---|---|
/model | Choose an available model and reasoning effort. |
/status | Inspect session configuration and current usage information. |
/permissions | Set what Codex is allowed to do. |
/review | Review changes for issues; a local review uses general allowance. |
/fast | Toggle Fast mode where supported. |
codex exec | Run a non-interactive task from a script or CI workflow. |
Give it a verifiable taskState the outcome, relevant files, constraints, and checks. Ask for a plan when the change is ambiguous or spans several systems.
Keep repository guidance reusableUse a concise AGENTS.md for build commands, conventions, and what done means. Keep the guidance current as the project changes.
Review the finished workRead the diff and relevant check results before accepting it. A local /review uses general allowance; GitHub-triggered Codex reviews use Code Review usage.
Sources: local and cloud sign-in, CLI controls, editor workflows, hosted environments, task guidance and review, review usage.
Sources & updates
Reviewed on . Check current documentation before budgeting or changing a workspace default. Rollouts, prices, limits, and promotions can change.
- Codex models, rollout, and GPT-5.5 retirement
- Model and reasoning selection guidance
- Plans, usage estimates, and credit token rates
- Fast and Ultrafast eligibility and usage multipliers
- Workspace and client model access boundaries
- ChatGPT sign-in versus API-key authentication
- Direct OpenAI API pricing
- GPT-6.1 Sol API specifications and pricing rules
- GPT-6 Astra API specifications
- GPT-6 Luna API specifications
- Ultrafast API access and configuration
- Codex CLI and local repository workflows
- Codex IDE extension
- Codex Cloud environments and review workflow
- OpenAI best practices for working with Codex
- Subagents, delegation, and token usage
Task choices are editorial guidance based on OpenAI's documentation; no comparative benchmark was run. This guide focuses on Codex and its current coding models. For GitHub-billed model usage, see the GitHub Copilot guide.
Back to all resources