AI Cost Calculator.
Pick a model, enter your usage, see the bill before you ship. Covers Claude, GPT 5, and Gemini, input, output, and prompt caching all factored in.
Prices reflect public list pricing as of 2026 and are approximations. Always check provider pricing pages before committing to a budget.
Inputs
Cost composition (per message)
Same workload across models
3 ways to cut this number in half
- Cache aggressively. System prompts + retrieved chunks rarely change. Get cache hit rate to 70%+, saves up to 90% on input cost.
- Use a smaller model for routing. Run cheap model first to decide if you need flagship. Most queries don't.
- Cap output tokens. Concise prompts → concise answers. Cut output from 400 to 200 tokens often → same quality, half the cost.
Building this and want a second opinion?
Free 30 minute call. We'll audit your prompt, caching strategy, and eval setup, no slides.
How this calculator works
Per message cost = (input tokens × input price) + (output tokens × output price). We multiply by your messages per user per day and your DAU to project daily, monthly, and annual spend. If you turn on prompt caching, the cached portion of input tokens gets the provider's cache hit discount applied (typically 10x cheaper).
What this calculator does NOT include
- Image, audio, or video token costs (those are priced separately by every provider)
- fine tuning training costs
- Vector database / embedding costs (~$0.02 per 1M embeddings on most providers)
- Your hosting bill (typically <5% of inference cost for serverless deployments)
Pricing sources
Numbers approximate public list prices as of 2026. Authoritative sources: Anthropic, OpenAI, Google.