LLM API cost calculator
Set the tokens per request and how many requests a day, then compare what each model costs per month. Caching, batch pricing and your own negotiated rate are included.
| Model | Per month |
|---|
How the cost comparison works
Per request first
Input tokens are priced at each model’s input rate, with the cached share at its cached rate. Output tokens are priced at the output rate.
Then per month
The per-request cost is multiplied by requests per day and days per month. Batch pricing, where a provider offers it, halves the rates.
Sorted so you can choose
Models are listed from cheapest to most expensive for your exact numbers, with what caching saves shown beside each.
Questions
How are monthly API costs calculated?
Per request: input tokens × input price + output tokens × output price, with the cached share of input at the cached price. That is multiplied by requests per day and days per month.
How current are the prices?
Each rate was checked against the provider’s pricing page on the date shown under the table. Providers change prices; follow the source links to confirm before you commit a budget.
What does the batch toggle do?
OpenAI, Anthropic and Google offer about 50% off for requests sent through their batch APIs, which return results within hours instead of seconds. Models without a batch discount keep their normal price and are marked. On Gemini, cached input stays at the standard cached rate.
Can I use my own negotiated price?
Yes. Open Custom rate, enter input, cached and output prices per million tokens, and a Custom model row joins the comparison.