LLM Token & Multi-Model API Cost Calculator
Estimate monthly token bills across DeepSeek, Claude, GPT, and Gemini models. Adjust prompt caching and batch API usage to see how routing strategy changes your bill — everything runs locally in your browser.
Cached input tokens are billed at each provider's discounted cache-read rate. Batch requests get the provider's async discount (assumed 50%). Output tokens are never discounted by caching.
Model comparison
| Model | Input $ | Output $ | Per 1K reqs | Monthly | Share |
|---|
Prices are indicative per-1M-token list rates in USD and may lag provider updates — verify against official pricing before committing budget.
FAQ
How much does prompt caching actually save?
Caching only discounts the input side. With a 40% hit rate on a $3.00/M input price and a $0.30/M cache-read price, blended input cost falls to roughly $1.92/M — a 36% reduction on input tokens. Output tokens, usually the dominant cost in chat workloads, are unaffected, so total savings are smaller than the cache rate suggests.
Should I send everything through the batch API?
Batch is ideal for offline jobs (classification, embeddings backfills, nightly summarization) because it halves the price but returns results within hours rather than seconds. Interactive chat and agent loops must stay real-time. Set the batch slider to the realistic share of traffic that tolerates latency, and keep a fast model tier for the rest.