All model pricing

Choose model pricing or enter custom rates

Model catalog
Popular models
Input $/1M $0.10Output $/1M $0.50

Tell us about your workload

Input tokens include cache hits. Cached tokens are charged once, at the cache-read rate.

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.

About 0 tokens

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.

ModelOfficial inputOfficial outputOfficial cache readLowest inputLowest outputLowest cache readSources
GPT-6 Luna$0.10$0.50$0.01$0.009484$0.0527$0.00137Unreported
GPT-6.2 Sol$2.00$10.00$0.10$0.0132$0.0632$0.005269Unreported
GPT-6.1 Sol$2.00$10.00$0.10$0.005641$0.0282$0.005269Unreported
GPT-6.1 Terra$1.00$5.00$0.05$0.0132$0.0632$0.005269Unreported
GPT-6.2 Astra$8.00$40.00$0.40$0.0632$0.2107$0.0211Unreported
GPT-6 Sol$2.00$10.00$0.20$0.005641$0.0282$0.005269Unreported
GPT Image 2.6 Sunburst$5.00$30.00$1.25$0.6164$3.6986$0.25
GPT Image 2.6 Flare$5.00$30.00$1.25$0.6164$3.6986$0.25
GPT-6 Cyber$20.00$100.00$2.00$20.00$100.00$2.00
GPT-6 Rosalind$15.00$75.00$1.50$15.00$75.00$1.50
GPT-Rosalind Research$5.00$25.00$0.50$5.00$25.00$0.50
GPT-Rosalind Discovery$5.00$25.00$0.50$5.00$25.00$0.50
OpenAI API Pricing

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

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.