How to estimate LLM API costs
Enter your expected requests per day and the average input and output tokens for one request. Then add each provider's current input and output prices per million tokens. The calculator multiplies the daily request count by 30 to estimate monthly volume and applies each rate separately. Different input and output rates matter: generated answers can cost more per token than the prompt sent to a model.
Example calculation
At 1,000 requests per day, with 1,000 input tokens and 500 output tokens per request, a 30-day month contains about 30 million input tokens and 15 million output tokens. At rates of $0.50 and $2.00 per million, respectively, the estimated total is (30 × $0.50) + (15 × $2.00) = $45. Change the example assumptions and prices above to match your workload.
Frequently asked questions
Are model prices filled in automatically?
No. Provider rates can change and vary by model, region, and usage tier, so enter verified current prices rather than relying on stale presets.
Is the estimate an invoice prediction?
No. It is a simple token-based estimate. Tool calls, caching, discounts, multimodal inputs, retries, and other billable units may change your actual bill.
Make the estimate closer to your workload
If requests vary widely, estimate separate common and peak scenarios instead of treating one average as a guarantee. A customer-support assistant might have a short single-turn question, while an agent workflow may include a large conversation history, retrieved documents, and several tool calls. Count the tokens sent on each model call, not just the original user message. If your application summarizes history or calls a model repeatedly, those tokens contribute to the total as well.
Providers may price cached input, batch jobs, audio, images, and reasoning tokens differently or expose separate rates for them. This calculator intentionally uses one input rate and one output rate so the arithmetic is easy to review. Break a complex workload into separate calculations when it has multiple models or pricing tiers, and compare the result with provider usage reports after a pilot. The Context Window Planner can help reason about how much context a single request is expected to contain.