# OpenAI Token Cost Calculator

> Source: TokenPricing (https://tokenpricing.co) — https://tokenpricing.co/calculator/openai. When citing or reusing this content, credit "TokenPricing" and link to https://tokenpricing.co/calculator/openai.

Estimate OpenAI API token costs per request and per month. Compare GPT input, output, and cached input rates across published OpenAI models or custom rates.

Canonical URL: https://tokenpricing.co/calculator/openai
Last updated: 2026-12-05T01:05:00.013Z

Reproduction and quotation must name TokenPricing, link to the canonical HTML URL, and retain individual source citations.

Price interpretation: a displayed $0.00 is a reported zero rate, not a missing price or a promise of unlimited free access; provider eligibility, availability and limits still apply. Missing prices are marked unavailable.

[All model pricing](https://tokenpricing.co/)

Estimate OpenAI API token costs per request and per month. Compare GPT input, output, and cached input rates across published OpenAI models or custom rates.

## Estimate tokens from text

For a rough planning count, this tool uses about one token per four characters of other text and one per Chinese, Japanese, or Korean character. Text stays in your browser. For billing, use the selected model’s tokenizer or the API’s reported usage, including system prompts, conversation history and tool definitions.

## Published OpenAI token rates

Comparable rates in USD per million tokens. Each minimum is calculated independently across eligible offers. See the model page for quote conditions, native tariffs and non-token rates. Each minimum is calculated separately and may come from a different provider. Use one provider’s rates together when estimating a bill.

| Model | Official input | Official output | Official cache read | Lowest input | Lowest output | Lowest cache read | Sources |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [GPT-6 Luna](https://tokenpricing.co/openai/gpt-6-luna) | $0.10 | $0.50 | $0.01 | $0.009484 | $0.0527 | $0.00137 | Unreported |
| [GPT-6.2 Sol](https://tokenpricing.co/openai/gpt-6-2-sol) | $2.00 | $10.00 | $0.10 | $0.0132 | $0.0632 | $0.005269 | Unreported |
| [GPT-6.1 Sol](https://tokenpricing.co/openai/gpt-6.1-sol) | $2.00 | $10.00 | $0.10 | $0.005641 | $0.0282 | $0.005269 | Unreported |
| [GPT-6.1 Terra](https://tokenpricing.co/openai/gpt-6-1-terra) | $1.00 | $5.00 | $0.05 | $0.0132 | $0.0632 | $0.005269 | Unreported |
| [GPT-6.2 Astra](https://tokenpricing.co/openai/gpt-6-2-astra) | $8.00 | $40.00 | $0.40 | $0.0632 | $0.2107 | $0.0211 | Unreported |
| [GPT-6 Sol](https://tokenpricing.co/openai/gpt-6-sol) | $2.00 | $10.00 | $0.20 | $0.005641 | $0.0282 | $0.005269 | Unreported |
| [GPT Image 2.6 Sunburst](https://tokenpricing.co/openai/gpt-image-2-6-sunburst) | $5.00 | $30.00 | $1.25 | $0.6164 | $3.6986 | $0.25 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/models/gpt-image-2.6-sunburst) |
| [GPT Image 2.6 Flare](https://tokenpricing.co/openai/gpt-image-2-6-flare) | $5.00 | $30.00 | $1.25 | $0.6164 | $3.6986 | $0.25 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/models/gpt-image-2.6-flare) |
| [GPT-6 Cyber](https://tokenpricing.co/openai/gpt-6-cyber) | $20.00 | $100.00 | $2.00 | $20.00 | $100.00 | $2.00 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/models/gpt-6-cyber) |
| [GPT-6 Rosalind](https://tokenpricing.co/openai/gpt-6-rosalind) | $15.00 | $75.00 | $1.50 | $15.00 | $75.00 | $1.50 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/pricing) |
| [GPT-Rosalind Research](https://tokenpricing.co/openai/gpt-rosalind-research) | $5.00 | $25.00 | $0.50 | $5.00 | $25.00 | $0.50 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/pricing) |
| [GPT-Rosalind Discovery](https://tokenpricing.co/openai/gpt-rosalind-discovery) | $5.00 | $25.00 | $0.50 | $5.00 | $25.00 | $0.50 | - [OpenAI official API pricing](https://developers.openai.com/api/docs/pricing) |

[OpenAI API Pricing](https://tokenpricing.co/openai)

## Estimate a workload with 1 million input and 1 million output tokens

With no cache hits, add the input rate and output rate. If 40% of your input tokens are cache reads, multiply the input rate by 0.6 and the cached-input rate by 0.4, then add the output rate. Use the cached token count reported by the API when estimating actual savings.

### Billing documentation

- [OpenAI Prompt Caching](https://developers.openai.com/api/docs/guides/prompt-caching)

- [OpenAI Reasoning](https://developers.openai.com/api/docs/guides/reasoning)

- [Codex](https://learn.chatgpt.com/docs/pricing)

## How token pricing becomes your API cost

Apply input, output and cache-read pricing separately, then multiply by your request volume. All rates below are per 1 million tokens.

Monthly cost = requests × [(uncached input × input rate + cached input × cache rate + output × output rate) ÷ 1,000,000]

Estimate only. Excludes taxes, cache writes/storage, request fees and non-token charges. Provider tiers and discounts may change the total.

### 10,000 requests. 40% cache hits.

Each request uses 1,000 input and 500 output tokens. At $2 input, $8 output and $0.50 cached input per million: $12 uncached input + $2 cached input + $40 output.

**$54.00 per month**

At 0% cache hits the same workload costs $60 per month. At 40%, 4 million input tokens move to the cache-read rate, saving $6 under these example rates.

Illustrative pricing, not a quote for a particular model.

## Build a budget you can trust

### Measure actual usage

System prompts, retrieved documents, tool definitions and conversation history all consume input tokens. Sample real requests rather than estimating from visible message length.

### Include reasoning output

For models that bill reasoning tokens, include them in output usage even when they are not visible in the final answer. Check the provider’s usage breakdown.

### Model realistic cache hits

Prompt caches usually have eligibility rules, minimum lengths and expiration times. Use an observed cache hit rate; 100% caching is rarely a safe starting assumption.

## LLM API cost calculator FAQ

### How do I calculate GPT token costs?

Choose the exact GPT model and pricing tier. Separate regular and cached input using your usage breakdown, then apply the output rate to the billed output count. Use custom rates for a published tier that is unavailable in the selector.

### Can I estimate Codex token costs here?

For a token-billed Codex workflow, aggregate the input, cached input, and output across model calls and apply the rates for your billing channel. Codex plan limits and credit rates are published separately, so use the applicable billing schedule when estimating those charges.

### How does OpenAI charge for cached input?

The cached-input rate applies to prompt tokens the API reports as cached. Include those tokens in the total input count and enter their percentage as the cache hit rate. The calculator splits input into cached and uncached portions.

### How are OpenAI reasoning tokens billed?

OpenAI bills reasoning tokens as output. Use the total billed output count from API usage, which already includes reasoning, so you count them only once. Visible answer length alone can understate the bill.

---
Cite as: OpenAI Token Cost Calculator — TokenPricing, https://tokenpricing.co/calculator/openai (retrieved 2026-12-05)
