Free calculator
LLM API cost calculator
What your AI feature costs per month on each model, at the providers' standard API prices. Enter your traffic once and compare Claude, OpenAI and Gemini side by side.
| Model | Input / output per 1M | Per month |
|---|
List prices from platform.claude.com, developers.openai.com and ai.google.dev, checked 2026-10-21; 30-day month. Claude Haiku 5.5 prices are for prompts up to 100k tokens, OpenAI for up to 272k, Gemini for up to 200k. Gemini 4 Argon prices double on December 1, 2026 and Gemini 3.8 Flash on January 1, 2027 (the Gemini calculator shows both dates). Cache writes, Gemini cache storage per hour and tool fees are not included (the OpenAI calculator adds the cache write rate GPT-5.6 and GPT-6 charge).
Where LLM bills usually come from
Input tokens, mostly. A chat feature that resends the whole conversation on every turn pays for the first message again on turn two, three and four, and by turn ten the input is many times the size of the answer. Put that conversation behind a long system prompt and a set of tool definitions and the input side of the bill grows fast.
The parts that repeat on every call, the system prompt, the tool definitions, a reference document, can usually be served from the provider's prompt cache, where cached input costs a tenth of the normal price or less (Claude Sonnet 5.5 and Opus 5.5 read cache at a twentieth). Set the cache share above to see what that does to your number. Work that does not need an answer within seconds, nightly summaries or tagging a backlog, can go through the batch APIs at half price: tick the batch box. Our Claude API pricing breakdown works through a real-sized example.
Switching to a cheaper model is the last lever, not the first. A smaller model that needs a retry or two can cost more per finished task than a bigger one that gets it right once, so measure on real requests before you switch.
If your AI bill grew faster than your users, send us the usage page.