About the AI API Cost Calculator
The AI API Cost Calculator runs entirely in your browser — nothing you paste is uploaded or stored.
API bills are metered in tokens, not characters or words, and input and output tokens are priced differently. That makes it surprisingly hard to eyeball what a feature will cost. This calculator converts your prompt size, response size and request volume into a clear monthly figure using published per‑million‑token prices.
How to use this tool
- Choose a model, or select Custom pricing and enter your own rate per 1M tokens.
- Enter the average input tokens and output tokens for one request.
- Set how many requests you expect per day and the number of billing days.
- Press Calculate to see cost per request, per day and per month.
Why output tokens cost more
On most providers output tokens are three to four times the price of input tokens, because generation is more expensive than reading a prompt. A chatbot that returns long answers can therefore cost far more than a classifier that outputs one word. Cutting response length is usually the fastest way to shrink an LLM bill.
| Lever | Effect |
|---|---|
| Shorter answers | Directly reduces the most expensive token type |
| Smaller model | Drops the price per token for simple tasks |
| Caching / trimming prompts | Lowers repeated input tokens |
Pro tip
Run the numbers for your busiest user, not the average one. A single power user generating long outputs 20× a day can dwarf the cost of a hundred light users.
Who is this tool for?
Indie developers, product managers and founders pricing an AI feature before they ship it, or checking an invoice against expected usage.