LLM API cost calculator
Work out what an LLM API costs per call, day and month across Claude, GPT and Gemini models, with prompt caching, from official prices you can edit.
Questions
Where do the prices come from?
Only from each provider's official pricing page (Anthropic, OpenAI and Google), checked on 4 Dec 2026. Each source is linked at the bottom of the page with that date. Models whose price could not be confirmed there are left out.
How is caching counted?
Cached reads and cache writes are part of your input tokens. Cached reads are charged at the cached input price, writes at the cache write price where the provider lists one, and the rest at the normal input price.
What is not included?
Batch discounts, long-context surcharges, regional or data residency multipliers, taxes, cache storage fees and tool fees such as web search. Edit the prices if your contract differs.