Why I built it
I kept guessing what an AI feature would cost before building it, and I kept guessing wrong. Every provider prices input, output, cached and batch tokens differently, so comparing them in a spreadsheet took longer than writing the feature.
So I built Token Bill, a free LLM API cost calculator that runs in the browser. You type your traffic and token sizes once, and it gives you the monthly bill for 24 models side by side.
What it does
Token Bill compares 24 models from 7 providers: Anthropic, OpenAI, Google, DeepSeek, Meta, Qwen and xAI. Prices are list rates in USD per 1M tokens, and I recheck them regularly (last check: December 3, 2026).
You enter four things:
- Requests per day
- Input tokens per request (1,000 tokens is about 750 words)
- Output tokens per request, reasoning tokens included
- The cached share of your input, plus a Batch API checkbox (usually 50% off, results within 24 hours)
Not sure about your token counts? Paste your prompt into the built-in token estimator. It runs in the browser and handles English, Spanish/French, Arabic and code.
You get an itemized bill, a ranking of all 24 models, and a spec sheet. You can filter by provider, or by must-haves like image input, open weights or "fits my prompt". Export as CSV, a table, a link or a PDF.
There are also presets (support chatbot, RAG over documents, coding agent, bulk classification) and a routing planner that splits traffic between a cheap model and a strong one.
Example: a chatbot with 2,000 requests a day
The same workload can cost $18 or $1,800 a month, depending only on the model. Here is the default example: 60,000 requests a month, 1,500 input and 300 output tokens each (90M input and 18M output tokens in total).
| Model | Monthly cost (USD) |
|---|---|
| Claude Haiku 5.5 | $18 |
| DeepSeek V4.1 Flash | $24 |
| Claude Sonnet 5.5 | $360 |
| Claude Fable 5.1 | $1,800 |
| GPT-6 Astra | $1,800 |
That is a $1,782 gap a month, or $21,384 a year, for the same traffic. With the routing planner sending easy requests to a cheap model and only hard ones to GPT-6 Astra, the bill drops to $374 a month: 79% less than sending everything to the strong model.
Prices as of December 3, 2026, at list rates. Check the calculator for current numbers.
What I learned
- The model choice matters more than any optimization. In the example above, switching models changes the bill 100×. Caching and batching save percentages; the model saves orders of magnitude.
- Output tokens are the hidden cost. Output is priced higher than input on most models, and reasoning tokens count as output. Long answers cost more than long prompts.
- Caching only helps a stable prefix. If your system prompt and documents repeat across requests, set a realistic cached share. If every request is different, assume zero.
- Batch is free money for non-urgent work. Classification, tagging and nightly reports rarely need an answer in seconds. Batch APIs usually cost about half.
- Routing beats picking one model. Most traffic is easy. Sending only the hard requests to a strong model cut the example bill by 79%.
Try it
Token Bill is free and needs no signup. Other tools on the site:
- Compare two models head to head
- Which model should I use?
- Subscription or API?
- MCP and tool call cost
- All prices as JSON
What would you want a cost calculator to handle that this one doesn't? Tell me in the comments.
Top comments (0)