LLM calculator
LLM Cost Calculator
Estimate monthly model spend from users, request volume, input tokens, output tokens, and optional cached input.
Estimate monthly LLM spend
Formula
Monthly cost is estimated asrequests * input tokens * input price + requests * output tokens * output price, with cached input priced separately when supported by the selected model.
Forecast user-driven spend
Translate monthly active users and queries per user into estimated model cost.
Budget repeated conversations
Model how prompt length, answer length, and cached input affect chat workloads.
Compare with full app cost
Use model spend as one line item before adding embeddings, infrastructure, and retries.
| Need | Use this page | Next step |
|---|---|---|
| Full product budget | AI Cost Calculator | Add embeddings, infra, retry overhead, and cost per active user. |
| Provider comparison | LLM API Pricing Comparison | Rank OpenAI, Claude, and Gemini models by the same workload. |
| Prompt token estimate | Token Counter | Estimate input tokens from real prompt text before forecasting monthly spend. |
FAQ
How do I estimate monthly LLM cost?
Estimate monthly requests, input tokens per request, output tokens per request, cached input share, and selected model pricing. The calculator multiplies those assumptions into monthly input and output cost.
What is the difference between this page and the AI Cost Calculator?
This page focuses on model spend from users and queries. The AI Cost Calculator adds product-level costs such as embeddings, vector database or infrastructure cost, retries, and budget buffers.
Sources
Model prices were last checked on 2026-07-04. Verify official provider pricing before final purchasing or customer pricing decisions.