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

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 Terragpt-6.1-terraVisual reasoning, computer use, and focused fixes
GPT-6.2 Solgpt-6.2-solEveryday coding, pull request review, and multistep work
GPT-6.2 Astragpt-6.2-astraDemanding 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 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 Terragpt-6.1-terraCurrent recommendation Standard 251.25125
GPT-6.1 Terragpt-6.1-terraCurrent recommendation Fast 502.5250
GPT-6.2 Solgpt-6.2-solCurrent recommendation Standard 502.5250
GPT-6.2 Solgpt-6.2-solCurrent recommendation Fast 1005500
GPT-6.2 Solgpt-6.2-solCurrent recommendation Ultrafast 1507.5750
GPT-6.2 Astragpt-6.2-astraCurrent recommendation Standard 200101,000
GPT-6.2 Astragpt-6.2-astraCurrent recommendation Fast 400202,000
GPT-6.2 Astragpt-6.2-astraCurrent recommendation Ultrafast 600303,000
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout Standard 502.5250
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout Fast 1005500
GPT-6.1 Solgpt-6.1-solEarlier model · available during rollout Ultrafast 300151,500
GPT-6 Astragpt-6-astraEarlier model · available during rollout Standard 250251,250
GPT-6 Astragpt-6-astraEarlier model · available during rollout Fast 500502,500
GPT-6 Astragpt-6-astraEarlier model · available during rollout 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 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 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.
Visual inspection, computer use, and focused fixesVerify saved results and compare against the original record, design, or acceptance checks.
Features, debugging, and coordinated changesStart with a representative coding task; 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
Fast · GPT-6.22x2xGPT-6.2 Astra and Sol on supported clients
Fast · other supported models2.5x2xSol 6.1, Terra 6.1, Astra 6, Sol 6, Luna 6
Ultrafast · GPT-6.26x3x through 28 Feb 2027; then 6xSol: Pro $200/$500. Astra: Pro $500. Both: eligible Enterprise / Edu, with permission.
Ultrafast · earlier models8x6xGPT-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 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 18 November 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 Sol 6.2 on $200/$500, Astra 6.2 on $500Currently 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.2 Astra6–50
GPT-6.2 Sol17–180
GPT-6 Astra5–45
GPT-6.1 Sol15–160
GPT-6.1 Terra35–285
GPT-6 Sol15–150
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 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.

Direct OpenAI API · USD per 1 million tokens · global processing
Model / API IDProcessing / prompt bandInputCached inputCache 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
  • 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 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.
/ultrafastChoose Ultrafast where your model, plan, and permissions allow it; repeat to return to Standard.
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