ChatGPT API Cost Calculator
Estimate ChatGPT API cost from input tokens, output tokens, request count, and per-million token prices.
What does this calculator answer?
ChatGPT API cost is usually input token cost plus output token cost. At scale, small changes in prompt length or response length can materially change monthly spend.
Inputs
Results
Estimated total cost
-
Input cost
-
Output cost
-
Before you enter values
- Enter input tokens per request in tokens so the estimate uses the same unit throughout.
- Enter output tokens per request in tokens so the estimate uses the same unit throughout.
- Enter requests in calls so the estimate uses the same unit throughout.
- Enter input price in $/1M tokens so the estimate uses the same unit throughout.
- Enter output price in $/1M tokens so the estimate uses the same unit throughout.
How to read the result
- Start with 'Estimated total cost'. This is the main output for the current assumptions.
- Then compare 'Input cost' so you do not judge the scenario from one number alone.
- Then compare 'Output cost' so you do not judge the scenario from one number alone.
Good use cases
- Estimate a monthly API budget before launch from expected calls, token length, and editable model prices.
- Compare how prompt length, output length, and provider pricing change the same workload cost.
- Translate team or product usage assumptions into a simple budget discussion before deeper testing.
Formula
Total cost = input tokens × requests ÷ 1,000,000 × input price + output tokens × requests ÷ 1,000,000 × output price
Example
With 1,200 input tokens, 500 output tokens, 10,000 requests, $1.25 input pricing and $10 output pricing, estimated total cost is about $65.
What is not included
- Live provider pricing, caching discounts, batch discounts, image, audio, search, and tool-call charges are not included.
- Account-specific credits, negotiated pricing, taxes, currency conversion, and payment fees must be checked separately.
- Model quality, latency, retries, and failure rates are operational factors outside this calculator.
Common mistakes
- Using one price for both input and output
- Leaving out retries and tests
- Forgetting tool, search, image, or audio charges
Sources and pricing
Prices and policies can change. Confirm official sources before budgeting.
Important note
Model prices change. Confirm current rates on the official OpenAI pricing page before budgeting.
Review and update policy
This page was reviewed on August 6, 2026 for formula wording, default inputs, FAQ coverage, and related calculator links. Investing and AI cost calculators do not pull live market prices or account-specific pricing, so you should enter the latest values yourself.
When official sources are relevant, source links are provided on the page. If a formula, rate, or source is outdated, send the page URL and supporting reference through the contact page.