LLM cost and latency in one scenario.
Enter request size, workload and response characteristics. The calculator keeps price, response time and capacity separate so you can see which variable is actually limiting the system.
What it calculates — and what it does not.
Cost. Uncached input, cached input and output tokens are priced separately. Preset rates are a starting point: replace them with your contract, batch pricing or effective rate whenever that better represents your workload.
Latency. TTFT covers everything up to the first generated token. The remaining generation is approximated as (output_tokens − 1) / tokens_per_second. This estimates completion time, not perceived streaming latency.
Capacity. For a stable workload the calculator applies Little's law: average concurrency ≈ arrival rate × service time. This is useful for average capacity planning; it is not a queueing model for bursts, p95/p99 latency, provider rate limits, retries or batching.
Tool calls, web search, cache storage, audio/image charges, priority processing, volume discounts and self-hosted infrastructure are excluded unless you fold them into the editable rates. Presets with known long-context pricing rules apply them automatically and disclose the adjustment next to the source.
Interpret the result
Preset sources
The data layer stores the source organization, primary URL and verification date for every preset. This version uses official pages from OpenAI, Anthropic and Google AI for Developers. Prices can change; check the source shown for the selected model before making a contractual decision.