Free tool
AI API Cost Calculator
Estimate your monthly LLM API bill across GPT-4o, Claude, Gemini, DeepSeek and more. Enter tokens per call and monthly volume; every price is editable so you can match current provider rates.
| Model | $ / 1M input | $ / 1M output | Per call | Per month |
|---|---|---|---|---|
| GPT-4o | $0.00750 | $7.50 | ||
| GPT-4o mini | $0.00045 | $0.45 | ||
| Claude Sonnet | $0.01050 | $10.50 | ||
| Claude Haiku | $0.00350 | $3.50 | ||
| Claude Opus | $0.01750 | $17.50 | ||
| Gemini Pro | $0.00625 | $6.25 | ||
| Gemini Flash | $0.00155 | $1.55 | ||
| DeepSeek | $0.00082 | $0.82 |
Prices are editable defaults per 1M tokens — providers change rates often, so verify against the official pricing pages before budgeting.
Frequently asked questions
How do I calculate AI API costs?
Multiply your input tokens by the input price per million, add output tokens times the output price per million, then multiply by your monthly call volume. This calculator does that across eight models at once.
Why can I edit the prices?
AI providers change pricing frequently. Editable fields mean you can paste in current rates from the official pricing page and get accurate numbers rather than relying on stale defaults.
Which AI API is cheapest?
Generally the small models — GPT-4o mini, Gemini Flash and DeepSeek — cost a fraction of the flagship models. Enter your actual token volumes above to see the real comparison for your workload.