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

## Standard and Batch rates per million tokens

| Model | API model ID | Standard input | Standard output | Cached input read | 30-minute cache write | Batch input / output |
| --- | --- | --- | --- | --- | --- | --- |
| GPT-6.2 Astra | gpt-6.2-astra | $8 | $40 | $0.40 | $10 | $4 / $20 |
| GPT-6.2 Sol | gpt-6.2-sol | $2 | $10 | $0.10 | $2.50 | $1 / $5 |
| GPT-6 Astra | gpt-6-astra | $10 | $50 | $1 | $12.50 | $5 / $25 |
| GPT-6.1 Sol | gpt-6.1-sol | $2 | $10 | $0.10 | $2.50 | $1 / $5 |
| GPT-6.1 Terra | gpt-6.1-terra | $1 | $5 | $0.05 | $1.25 | $0.50 / $2.50 |
| GPT-6 Sol | gpt-6-sol | $2 | $10 | $0.20 | $2.50 | $1 / $5 |
| GPT-6 Luna | gpt-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.

Try GPT in CodeMux
Sign in and choose an available GPT model. GPT usage requires balance.

Open Web Chat

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

| Model | Standard | Batch |
| --- | --- | --- |
| 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

- [OpenAI: API pricing](https://developers.openai.com/api/docs/pricing)
- [OpenAI Batch API guide](https://developers.openai.com/api/docs/guides/batch)

Source-checked by codemux.net on 2026-11-27.
