Skip to content

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 models

OpenAI 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.

Current model starting points; availability depends on your plan, client, and workspace
Model / identifierUseful starting point for
GPT-6 Lunagpt-6-lunaFocused edits, triage, and frequent repeatable work
GPT-6.1 Solgpt-6.1-solComplex coding and agent work with attention to time and cost
GPT-6 Astragpt-6-astraDemanding 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 table

These 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.

Codex credit billing · credits per 1 million tokens · purchased credits / Enterprise pay-as-you-go
ModelSpeedInputCached inputOutput
GPT-6 Lunagpt-6-lunaCurrent recommendation Standard 2.50.2512.5
GPT-6 Lunagpt-6-lunaCurrent recommendation Fast 50.525
GPT-6.1 Solgpt-6.1-solCurrent recommendation Standard 502.5250
GPT-6.1 Solgpt-6.1-solCurrent recommendation Fast 1005500
GPT-6.1 Solgpt-6.1-solCurrent recommendation Ultrafast 300151,500
GPT-6 Astragpt-6-astraCurrent recommendation Standard 250251,250
GPT-6 Astragpt-6-astraCurrent recommendation Fast 500502,500
GPT-6 Astragpt-6-astraCurrent recommendation Ultrafast 1,5001507,500
GPT-6 Solgpt-6-solEarlier model · available during rollout Standard 505250
GPT-6 Solgpt-6-solEarlier model · available during rollout Fast 10010500
GPT-5.6 SolEarlier model · available during rollout Standard 10010500
GPT-5.6 SolEarlier model · available during rollout Fast 200201,000
GPT-5.6 TerraEarlier model · available during rollout Standard 505300
GPT-5.6 TerraEarlier model · available during rollout Fast 10010600
GPT-5.6 LunaEarlier model · available during rollout Standard 50.530
GPT-5.6 LunaEarlier model · available during rollout Fast 10160

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 guidance

Start 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.

Task choices to evaluate on your own code; no benchmark ranking is implied
Your taskStart withWhat to check
Small fixes, extraction, and routine editsKeep scope narrow; move up if it misses constraints or needs repeated corrections.
Triage and repeatable tasks with clear constraintsCompare accuracy and total effort with Sol on the same representative task.
Features, debugging, and coordinated changesA useful starting point for complex coding; check the diff and relevant tests.
Cross-cutting refactors or conflicting evidenceIncrease effort when planning or consistency is the weak point.
Ambiguous architecture or demanding analysisEvaluate 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
Relative to Standard for the same model; included allowance and purchased credits use different multipliers
SpeedIncluded allowance consumedPurchased-credit rateAccess
Standard1x1xBaseline speed for the selected model
Fast2.5x2xSupported models and clients with ChatGPT sign-in
Ultrafast8x6xAstra / 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 documentation

With 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.

Individual ChatGPT plans with Codex access, reviewed 19 October 2026
PlanMonthly priceCodex accessAllowance and extras
Free$0/monthLuna at Standard speed in desktop; rollout dependentLimited access; check your current allowance
Go$8/monthLuna at Standard speed in desktop; rollout dependentLight coding use; check your current allowance
Plus$20/monthBroader Codex clients and cloud features5-hour allowance; weekly limits may apply; extra credits available
Pro$100 / $200 / $500 per monthPlus features; Ultrafast on the $500 tierCurrently no 5-hour cap; allowance still applies. Check your dashboard.

Team and organization plans

Organization pricing and access; negotiated terms and seat types can differ
PlanPriceUsage and controls
Business$20/user/month, billed annually; $25 monthly2+ users; dedicated workspace, SAML SSO, and MFA. Standard seats have usage allowances; credits can extend usage.
Enterprise / EduContact sales / agreementFlexible 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.

Published estimates; model, task, context, and speed change actual usage
ModelEstimated local messages / 5 hours
GPT-6 Astra5–45
GPT-6.1 Sol15–160
GPT-6 Luna350–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 prices

Signing 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.

Direct OpenAI API · USD per 1 million tokens · global processing
Model / API IDProcessing / prompt bandInputCached inputCache writeOutput
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
  • 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 practices

Choose 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.

Common coding workflows; client capabilities and sign-in options can differ
SurfaceWhere work runsWhen it fits
Desktop · local workYour selected local checkout or connected execution hostWork on a repository while reviewing files, changes, and results in the app.
CLIThe local project directoryTerminal work and scripted runs with codex exec; choose model, effort, and permissions.
IDE extensionYour editor workspace for local tasksWork alongside source files and use editor context. Check supported client and sign-in options.
Codex CloudA configured hosted environment with its own task workspaceDelegate work that can continue while your computer sleeps, then inspect changes and checks.

Useful CLI controls

CLI documentation
Commands inside a Codex CLI session, plus the non-interactive shell command
CommandPurpose
/modelChoose an available model and reasoning effort.
/statusInspect session configuration and current usage information.
/permissionsSet what Codex is allowed to do.
/reviewReview changes for issues; a local review uses general allowance.
/fastToggle Fast mode where supported.
codex execRun 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.

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