AI Cost

OpenAI API Pricing Calculator

Estimate your OpenAI API cost per call, per day, and over a 30-day month using verified per-million-token rates. Select a model, context band, and processing tier, then enter your fresh input, cached input, and output token counts.

Input

Result

Pick a model, context band and tier, enter your tokens, then press Calculate.

OpenAI API Price Sheet (USD per 1M Tokens)

ModelContextTierInput / 1MOutput / 1M
gpt-6.2-astrashortstandard$8.00$40.00
gpt-6.2-solshortstandard$2.00$10.00
gpt-6-astrashortstandard$10.00$50.00
gpt-6.1-solshortstandard$2.00$10.00
gpt-6.2-astrashortbatch$4.00$20.00
gpt-6.2-solshortbatch$1.00$5.00
gpt-6-astrashortbatch$5.00$25.00
gpt-6.1-solshortbatch$1.00$5.00
gpt-6-astrashortflex (beta)$5.00$25.00
gpt-6.1-solshortflex (beta)$1.00$5.00
gpt-6.1-terrashortflex (beta)$0.50$2.50
gpt-6-lunashortflex (beta)$0.05$0.25
gpt-6.2-astrashortfast (formerly priority)$16.00$80.00
gpt-6.2-solshortfast (formerly priority)$4.00$20.00
gpt-6-astrashortfast (formerly priority)$20.00$100.00
gpt-6.1-solshortfast (formerly priority)$4.00$20.00
gpt-6-astrashortultra-fast$60.00$300.00
gpt-6.1-solshortultra-fast$12.00$60.00
gpt-6.2-astralongstandard$16.00$60.00
gpt-6.2-sollongstandard$4.00$15.00
gpt-6-astralongstandard$20.00$75.00
gpt-6.1-sollongstandard$4.00$15.00
gpt-6.2-astralongbatch$8.00$30.00
gpt-6.2-sollongbatch$2.00$7.50
gpt-6-astralongbatch$10.00$37.50
gpt-6.1-sollongbatch$2.00$7.50
gpt-6-astralongflex (beta)$10.00$37.50
gpt-6.1-sollongflex (beta)$2.00$7.50
gpt-6.1-terralongflex (beta)$1.00$3.75
gpt-6-lunalongflex (beta)$0.10$0.375
gpt-6.2-astralongfast (formerly priority)$32.00$120.00
gpt-6.2-sollongfast (formerly priority)$8.00$30.00
gpt-6-astralongfast (formerly priority)$40.00$150.00
gpt-6.1-sollongfast (formerly priority)$8.00$30.00
gpt-6-astralongultra-fast$120.00$450.00
gpt-6.1-sollongultra-fast$24.00$90.00
gpt-6.1-terrashortstandard$1.00$5.00
gpt-6.1-terrashortbatch$0.50$2.50
gpt-6.1-terrashortfast (formerly priority)$2.00$10.00
gpt-6-lunashortstandard$0.10$0.50
gpt-6-lunashortbatch$0.05$0.25
gpt-6-lunashortfast (formerly priority)$0.20$1.00
gpt-6.1-terralongstandard$2.00$7.50
gpt-6.1-terralongbatch$1.00$3.75
gpt-6.1-terralongfast (formerly priority)$4.00$15.00
gpt-6-lunalongstandard$0.20$0.75
gpt-6-lunalongbatch$0.10$0.375
gpt-6-lunalongfast (formerly priority)$0.40$1.50

USD per 1M tokens. Rates are taken from OpenAI's official API pricing page (https://developers.openai.com/api/docs/pricing) as checked on 2026-12-03, and OpenAI can change prices at any time. Short context covers up to 272K input tokens and long context covers more than 272K, and 12-hour cache-write prices are not included in this table.

How the Calculator Estimates Your Cost

Per-call cost: Each request's cost is calculated by dividing your fresh input, cached input, and output token counts by 1,000,000 and multiplying each by the selected model's per-million-token rate.
Context and tier rates: Switching between short and long context or choosing a tier like batch, flex, fast, or ultra-fast applies the exact rate listed by OpenAI for that model, such as half of standard for batch.
Daily and monthly cost: Daily cost multiplies the per-call total by your calls per day, and the 30-day monthly estimate multiplies that daily figure by 30.
Cached input savings: Cached input tokens are billed at a much lower rate than fresh input tokens because previously processed prompt prefixes can be reused instead of recomputed.

FAQ

How much does the OpenAI API cost per million tokens?
OpenAI API pricing depends on the model, context band, and tier. As of 2026-12-03, standard short-context rates start at $0.10 input and $0.50 output on gpt-6-luna ($1.00/$5.00 on gpt-6.1-terra), sit at $2.00/$10.00 on gpt-6.2-sol and gpt-6.1-sol, and reach $10.00 input and $50.00 output on gpt-6-astra. In the flex tier, gpt-6-luna is $0.05 input and $0.25 output.
What is the difference between short and long context pricing?
Long context requests cost more per million tokens than short context requests on models that list both bands. For example, gpt-6.2-astra standard rises from $8.00 input and $40.00 output in short context to $16.00 and $60.00 in long context. OpenAI defines short context as up to 272K input tokens and long context as more than 272K.
How do batch and flex processing affect your OpenAI API bill?
Batch processing cuts standard input and output rates in half on supported models such as gpt-6.2-astra and gpt-6.2-sol. Flex processing also lowers costs compared with standard rates, pricing gpt-6.1-sol at $1.00 input and $5.00 output, while gpt-6.1-terra and gpt-6-luna are also available in standard ($1.00/$5.00 for short-context terra), batch, and fast tiers.
Are cached input tokens cheaper than fresh input tokens?
Yes, cached input tokens are substantially cheaper than fresh input tokens on models with prompt caching. In the 2026-12-03 snapshot, cached input is $0.40 per million tokens versus $8.00 fresh input on gpt-6.2-astra, and $0.10 versus $2.00 on gpt-6.2-sol and gpt-6.1-sol. Note that 12-hour cache-write prices are excluded.
Does a ChatGPT Plus subscription include OpenAI API usage?
No, ChatGPT Plus and ChatGPT API pricing are billed separately. A ChatGPT subscription covers the consumer web and mobile apps, whereas OpenAI API calls are metered per million tokens based on your model, context band, and processing tier. You can use this calculator to estimate standalone API charges.

How OpenAI API Pricing Works

OpenAI charges for API usage per million tokens, splitting each request into input tokens, cached input tokens, and output tokens. Output tokens carry a higher rate than input tokens because generating responses requires more compute. Depending on the model, OpenAI also separates rates into short and long context bands and offers processing tiers such as standard, batch, flex, fast, and ultra-fast.

Choosing the right tier and using prompt caching can lower your OpenAI API cost significantly. Batch processing cuts standard rates in half for asynchronous workloads, while flex offers lower rates on supported models such as gpt-6.1-sol, gpt-6.1-terra, and gpt-6-luna. Cached input tokens are billed at a steep discount compared with fresh input tokens, for example $0.40 versus $8.00 per million tokens on gpt-6.2-astra.

Related calculators

This tool runs as a single file, no external requests, nothing stored.