๐งฎ Free tool
AI API Cost Calculator
How much does the Claude, GPT or Gemini API cost? Estimate your monthly spend in seconds based on your real usage.
$0.00
estimated monthly cost ยท โ
Ad space โ Google AdSense
Reference prices per million tokens (2026)
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Best for |
|---|---|---|---|
| Claude Haiku | ~$1 | ~$5 | Real-time chat, classification, high volume |
| Claude Sonnet | ~$3 | ~$15 | Coding, agents, daily professional use |
| Claude Opus | ~$15 | ~$75 | Deep reasoning, critical tasks |
| GPT (standard) | ~$2.5 | ~$10 | General purpose, multimodal |
| Gemini (standard) | ~$1.25 | ~$10 | Huge contexts, Google ecosystem |
โ ๏ธ Reference prices in USD, subject to change: labs update them frequently (usually downward). Always verify on the official pages of Anthropic, OpenAI and Google before budgeting a project. Prompt caching and batch discounts can cut the bill by up to 90%.
3 tricks to pay less for the API
- Default to the small model. 80% of tasks don't need the big model: route to Haiku and escalate to Sonnet or Opus only when needed.
- Enable prompt caching. If you repeat the same context (instructions, documents), caching cuts those tokens' cost by up to 10x.
- Batch what can wait. Batch APIs offer ~50% discounts for anything that doesn't need an immediate response.
Not using the API yet? Start free with Claude's consumer plans and make the jump when volume justifies it.