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.2 Sol for everyday coding and GPT-6.2 Astra for the hardest projects. Terra 6.1 fits visual reasoning and computer use; Luna fits focused, repeatable work. Start with the lightest option that meets your acceptance checks.
| Model / identifier | Useful starting point for |
|---|---|
GPT-6 Lunagpt-6-luna | Focused edits, triage, and frequent repeatable work |
GPT-6.1 Terragpt-6.1-terra | Visual reasoning, computer use, and focused fixes |
GPT-6.2 Solgpt-6.2-sol | Everyday coding, pull request review, and multistep work |
GPT-6.2 Astragpt-6.2-astra | Demanding projects, cross-service debugging, and difficult analysis |
- 17 November GPT-6.2 launch: Plus, Pro, Business, Enterprise, and Edu can use Astra and Sol in the Codex app and CLI. Enterprise and Edu models are off by default until enabled. This does not promise identical model availability in Cloud or the IDE extension.
- Terra 6.1: available on the same paid plan families; CLI access needs version 0.159.0 or later. Free and Go retain their separately documented Luna rollout.
- Earlier models: GPT-6 Astra, GPT-6.1 Sol, GPT-6 Sol, and the GPT-5.6 lineup remain in the published credit rate table. Model access still depends on your client and account.
- 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 four recommended API models have a 1,050,000-token context window and 128,000-token maximum output. Codex defaults differ: GPT-6.2 Astra starts at 272K context and Sol at 500K. A published API maximum does not mean a client loads an entire repository or uses that full window by default.
Sources: GPT-6.2 launch, models and retirement, workspace access, API specifications for Luna, Terra, Sol 6.2, and Astra 6.2.
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 Terragpt-6.1-terraCurrent recommendation | Standard | 25 | 1.25 | 125 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | Fast | 50 | 2.5 | 250 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | Standard | 50 | 2.5 | 250 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | Fast | 100 | 5 | 500 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | Ultrafast | 150 | 7.5 | 750 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | Standard | 200 | 10 | 1,000 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | Fast | 400 | 20 | 2,000 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | Ultrafast | 600 | 30 | 3,000 |
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout | Standard | 50 | 2.5 | 250 |
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout | Fast | 100 | 5 | 500 |
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout | Ultrafast | 300 | 15 | 1,500 |
GPT-6 Astragpt-6-astraEarlier model · available during rollout | Standard | 250 | 25 | 1,250 |
GPT-6 Astragpt-6-astraEarlier model · available during rollout | Fast | 500 | 50 | 2,500 |
GPT-6 Astragpt-6-astraEarlier model · available during rollout | 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 credit rows use 2× Standard. GPT-6.2 Ultrafast rows use the current 3× promotion through , then 6× from 1 March (Pacific time). Earlier supported models use 6×. Included subscription allowances have different multipliers below. Codex credits have no separate cache-write charge; 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. |
| Visual inspection, computer use, and focused fixes | GPT-6.1 Terra · medium | Verify saved results and compare against the original record, design, or acceptance checks. |
| Features, debugging, and coordinated changes | GPT-6.2 Sol · medium | Start with a representative coding task; check the diff and relevant tests. |
| Cross-cutting refactors or conflicting evidence | GPT-6.2 Sol · extra high | Increase effort when planning or consistency is the weak point. |
| Ambiguous architecture or demanding analysis | GPT-6.2 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 · GPT-6.2 | 2x | 2x | GPT-6.2 Astra and Sol on supported clients |
| Fast · other supported models | 2.5x | 2x | Sol 6.1, Terra 6.1, Astra 6, Sol 6, Luna 6 |
| Ultrafast · GPT-6.2 | 6x | 3x through 28 Feb 2027; then 6x | Sol: Pro $200/$500. Astra: Pro $500. Both: eligible Enterprise / Edu, with permission. |
| Ultrafast · earlier models | 8x | 6x | GPT-6 Astra / Sol 6.1; Pro $500 or eligible Enterprise / Edu |
GPT-6.2 Sol Ultrafast is available on Pro $200 and $500; GPT-6.2 Astra requires Pro $500. Eligible Enterprise and Edu workspaces need model access plus a separate Ultrafast permission, off by default. Purchasing credits alone does not unlock a speed tier. Included GPT-6.2 Ultrafast usage stays at 6× during the credit promotion.
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 Sol 6.2 on $200/$500, Astra 6.2 on $500 | 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.2 Astra | 6–50 |
| GPT-6.2 Sol | 17–180 |
| GPT-6 Astra | 5–45 |
| GPT-6.1 Sol | 15–160 |
| GPT-6.1 Terra | 35–285 |
| GPT-6 Sol | 15–150 |
| 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 four current recommendations. 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 (30m) | 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 | 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 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.1 Terragpt-6.1-terraCurrent recommendation | StandardPrompt ≤ 272K input tokens | $1.00 | $0.05 | $1.25 | $5.00 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | StandardPrompt > 272K input tokens | $2.00 | $0.10 | $2.50 | $7.50 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | BatchPrompt ≤ 272K input tokens | $0.50 | $0.025 | $0.625 | $2.50 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | BatchPrompt > 272K input tokens | $1.00 | $0.05 | $1.25 | $3.75 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | FastPrompt ≤ 272K input tokens | $2.00 | $0.10 | $2.50 | $10.00 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | FastPrompt > 272K input tokens | $4.00 | $0.20 | $5.00 | $15.00 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | FlexPrompt ≤ 272K input tokens | $0.50 | $0.025 | $0.625 | $2.50 |
GPT-6.1 Terragpt-6.1-terraCurrent recommendation | FlexPrompt > 272K input tokens | $1.00 | $0.05 | $1.25 | $3.75 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | StandardPrompt ≤ 272K input tokens | $2.00 | $0.10 | $2.50 | $10.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | StandardPrompt > 272K input tokens | $4.00 | $0.20 | $5.00 | $15.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | BatchPrompt ≤ 272K input tokens | $1.00 | $0.05 | $1.25 | $5.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | BatchPrompt > 272K input tokens | $2.00 | $0.10 | $2.50 | $7.50 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | FastPrompt ≤ 272K input tokens | $4.00 | $0.20 | $5.00 | $20.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | FastPrompt > 272K input tokens | $8.00 | $0.40 | $10.00 | $30.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | UltrafastPrompt ≤ 272K input tokens | $6.00 | $0.30 | $7.50 | $30.00 |
GPT-6.2 Solgpt-6.2-solCurrent recommendation | UltrafastPrompt > 272K input tokens | $12.00 | $0.60 | $15.00 | $45.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | StandardPrompt ≤ 272K input tokens | $8.00 | $0.40 | $10.00 | $40.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | StandardPrompt > 272K input tokens | $16.00 | $0.80 | $20.00 | $60.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | BatchPrompt ≤ 272K input tokens | $4.00 | $0.20 | $5.00 | $20.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | BatchPrompt > 272K input tokens | $8.00 | $0.40 | $10.00 | $30.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | FastPrompt ≤ 272K input tokens | $16.00 | $0.80 | $20.00 | $80.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | FastPrompt > 272K input tokens | $32.00 | $1.60 | $40.00 | $120.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | UltrafastPrompt ≤ 272K input tokens | $24.00 | $1.20 | $30.00 | $120.00 |
GPT-6.2 Astragpt-6.2-astraCurrent recommendation | UltrafastPrompt > 272K input tokens | $48.00 | $2.40 | $60.00 | $180.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 uses 0.5× Standard and Fast uses 2×. Flex is shown only for Luna and Terra, where rates are published. GPT-6.2 Ultrafast uses 3× through 28 February 2027, then 6× from 1 March (Pacific time); it is an API promotion as well as a separate Codex credit promotion.
- Cache retention: the cache-write column uses 30-minute retention. Published 12-hour cache writes cost twice the corresponding 30-minute rate. The cached-input column is a different token category.
- 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.
API model and speed access follows the API account's eligibility, separately from ChatGPT subscription tiers. Codex Cloud requires ChatGPT sign-in; API-key access does not include its hosted integrations. Eligible discounted background-completion windows are another API option outside this table.
Sources: API rates and processing options, specifications for Sol 6.2, Astra 6.2, Terra, 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. |
/ultrafast | Choose Ultrafast where your model, plan, and permissions allow it; repeat to return to Standard. |
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.2 Sol API specifications and pricing
- GPT-6.2 Astra API specifications and pricing
- GPT-6.1 Terra API specifications and pricing
- GPT-6.2 launch, client support, and Ultrafast plans
- Current Work and Codex releases
- 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