codemux CodeMux App

OpenAI API pricing for coding models

GPT-6.2 Sol $2 input / $10 output and GPT-6.2 Astra $8 / $40 per million tokens at Standard short-context rates.
Try a free test request. Ongoing API usage is metered.

✓ Matches official pageChecked Dec 5, 2026

Standard and Batch rates per million tokens

ModelAPI model IDStandard inputStandard outputCached input read30-minute cache writeBatch input / output
GPT-6.2 Astragpt-6.2-astra$8$40$0.40$10$4 / $20
GPT-6.2 Solgpt-6.2-sol$2$10$0.10$2.50$1 / $5
GPT-6 Astragpt-6-astra$10$50$1$12.50$5 / $25
GPT-6.1 Solgpt-6.1-sol$2$10$0.10$2.50$1 / $5
GPT-6.1 Terragpt-6.1-terra$1$5$0.05$1.25$0.50 / $2.50
GPT-6 Solgpt-6-sol$2$10$0.20$2.50$1 / $5
GPT-6 Lunagpt-6-luna$0.10$0.50$0.01$0.125$0.05 / $0.25

The Standard rates shown apply to the short-context pricing tier. Check OpenAI’s table for long-context rates, explicit cache retention, faster processing and regional endpoints.

Estimate your API cost

Enter cached tokens here and leave them out of uncached input.

Estimated token cost (USD)
$12.00

Uses Standard short-context pricing. See the table for Batch and cache-write rates. Excludes cache writes, taxes and other usage charges.

What do 10 million input tokens and 2 million output tokens cost?

ModelStandardBatch
GPT-6.2 Astra$160.00$80.00
GPT-6.2 Sol$40.00$20.00
GPT-6 Astra$200.00$100.00
GPT-6.1 Sol$40.00$20.00
GPT-6.1 Terra$20.00$10.00
GPT-6 Sol$40.00$20.00
GPT-6 Luna$2.00$1.00

The example multiplies 10 by the input rate and 2 by the output rate. This budget assumes uncached text, with no separately billed tools or processing premiums. Batch suits eligible asynchronous workloads such as evaluating a set of code review prompts. Use Standard for work that needs an immediate result.

How do you identify the model on the bill?

Match the API model ID and billing tier from your request or usage export. Astra and Sol are different models, and GPT-6.2 and GPT-6.1 are different generations even when some rates are the same. Re-price an existing workflow after switching its model ID or processing mode.

How should you budget for repeated repository context?

Keep separate counters for uncached inputs, cache reads, explicit cache writes and output tokens. Multiply each by its own rate. Model API usage is billed through the API. If you sign into Codex with ChatGPT, the plan’s usage rules determine what is included.

Sources

Source figures reviewed on .

Related guides