OpenAI Cost Calculator — API Tokens to Dollars (2026)
Who this is for: For developers budgeting OpenAI API usage — and for anyone staring at a usage dashboard wondering what a token even costs.
GPT API pricing per token: model, input/output and cached tokens in — dollars out.
Quick answer: OpenAI API list prices (2026): GPT-5 $1.25/$10 per 1M in/out (cached $0.125); GPT-5 mini $0.25/$2; GPT-4o $2.50/$10; o3 $2/$8. Output tokens cost 8× input on GPT-5 — verbosity is the #1 bill driver. 1,000 req/day at 2k+500 tokens ≈ $7.50/day on GPT-5, $0.90 on mini.
Prompt + re-sent context
Completion length
≤ input; cached rate $0.125/M
Per day or month — your call
| GPT-5 | $1.25 in / $10 out /M |
|---|---|
| GPT-5 mini | $0.25 / $2 /M |
| Cached input | GPT-5 $0.125/M (−90%) |
| GPT-4o | $2.50 / $10 /M |
| 8× rule | Output ≈ 8× input price |
| Status | List prices collected Oct 2026 from each provider's public pricing page. Providers change tiers often — always confirm on the official page before billing decisions. |
How much does the OpenAI API cost?
OpenAI bills per token at list prices per million: GPT-5 $1.25 input / $10 output; GPT-5 mini $0.25/$2; GPT-5 nano $0.05/$0.40; GPT-4o $2.50/$10; GPT-4o mini $0.15/$0.60; o3 $2/$8. Cached input runs 10–50% of fresh-input price (GPT-5: $0.125/M). Two reference points make budgets concrete: a 1,000-request day at 2k input + 500 output tokens costs ~$7.50/day on GPT-5 but ~$1.50/day on GPT-5 mini; and output tokens are 8× the price of input — trimming verbose responses is the single biggest saving. The calculator prices any token counts at exact list rates, including the cached-input discount.
Common uses
- Pricing a feature's API cost before shipping it
- Checking a surprise usage dashboard number against list prices
- Comparing model tiers before committing a workload
- Monthly budget: multiply the per-request cost by request volume
The three levers that cut an API bill
1) Cache: a stable system prompt sent as cached input runs at 10–50% of fresh price — restructure prompts so the shared prefix leads. 2) Route: send easy traffic to mini/nano tiers and reserve flagship models for hard requests — most stacks cut 60%+ with routing alone. 3) Trim output: ask for terser responses, cap max_tokens; output tokens are the expensive side of every request. Model choice is the biggest lever of the three.
Frequently Asked Questions
How much does GPT-5 cost via API?
Why is my OpenAI bill so high?
What are cached input tokens?
How do I check my actual OpenAI spend?
Is the OpenAI API cheaper than ChatGPT Plus?
More API cost
Related guides
- Is ChatGPT Plus Worth It?The $20 question, answered with hours-saved math and honest 'no' cases.
- ChatGPT Plus vs Pro$20 vs $100–500: what the Pro tiers actually buy, and who needs them.
- Claude Pro vs ChatGPT PlusSame $20 — $40/year apart on annual. Model strengths and the both-then-cut trick.
- ChatGPT Free vs PlusWhat the free tier really includes in 2026 — and the exact walls you hit upgrading past it.
- How to Reduce OpenAI API CostsCache, route, trim — the three levers, with the dollar effect of each.
- How Much to Budget for AI ToolsHousehold and freelancer budgets for the AI-stack era — with the tier that fits.