Input vs output token spend
Output tokens usually cost several times more than input, so answer length is what really drives your bill.
Home / Dev & AI / AI & LLM Cost / OpenAI API Cost Calculator
AI & LLM Cost
Estimate your OpenAI bill in seconds. Choose a GPT model, enter your request volume and token sizes, and see the monthly cost with a comparison across the whole OpenAI lineup for 2026.
Estimated monthly cost
$0
Input vs output token spend
Output tokens usually cost several times more than input, so answer length is what really drives your bill.
The same workload priced across AI models
Your monthly token volume run through popular 2026 models, cheapest first.
OpenAI bills its API per token, with a separate rate for input and output on each model. The lineup spans from the tiny, cheap GPT-5 nano through GPT-5 mini and the flagship GPT-5, plus GPT-4.1, GPT-4o and the o-series reasoning models. Picking the right tier for each job is the main way to control an OpenAI bill.
This OpenAI API cost calculator prices your workload on the model you choose and compares it against every current OpenAI model, so you can see when GPT-5 mini would carry the load at a fraction of GPT-5 cost, or when a reasoning model is worth its premium.
On GPT-5, 100,000 requests a month at 1,000 input and 500 output tokens cost 100M × $1.25 + 50M × $10 per million = $125 + $500 = about $625 a month. Switching to GPT-5 mini drops that to roughly $125.
| Model | Input / 1M | Output / 1M |
|---|---|---|
| GPT-5 | $1.25 | $10.00 |
| GPT-5 mini | $0.25 | $2.00 |
| GPT-5 nano | $0.05 | $0.40 |
| GPT-4.1 | $2.00 | $8.00 |
| GPT-4o | $2.50 | $10.00 |
| OpenAI o3 | $2.00 | $8.00 |
| OpenAI o4-mini | $1.10 | $4.40 |
July 2026 list estimates. OpenAI also offers cached input at a large discount and batch pricing at half rate, which can cut real costs significantly.
GPT-5 is about $1.25 per million input tokens and $10 output. Smaller models like GPT-5 mini and nano cost far less. Enter your usage above for a monthly total.
GPT-5 nano is the cheapest at roughly $0.05 input and $0.40 output per million tokens, ideal for simple, high volume tasks.
Yes. Cached input tokens cost much less, and the Batch API runs non-urgent jobs at about half price. Both can meaningfully lower your bill.
They bill per token like other models, but they generate hidden reasoning tokens that count as output, so complex prompts can cost more than the visible answer suggests.
They are July 2026 list estimates for planning. Check the OpenAI pricing page for the current official rates.