Website review
This review may include AI-generated content and is not individually verified. Domain, certificate and other facts come from the observed data on this page.
What is LLM pricing calculator?
LLM pricing calculator, at LLM pricing calculator, is a free web tool for estimating what a large language model request or workload will cost. You enter token counts and per-million-token rates, and it returns a total, so you can compare models or budget a feature before committing to one.
What it actually does
The calculator works from three inputs:
- Input tokens (prompt tokens)
- Cached input tokens
- Output tokens (completion tokens)
You supply the corresponding prices per million tokens — input, cached input, and output — and it computes the total cost. A separate table lists model prices per million tokens, with input, cached input, and output columns, and it can show only the models you select for side-by-side comparison.
Who it's for
- Developers choosing between models for a feature where token volume is the main cost driver.
- Product or finance people estimating monthly spend from expected usage.
- Anyone sanity-checking a vendor's quoted rate against alternatives.
Practical example
Suppose your app sends a 1,500-token prompt and gets a 500-token answer, 20,000 times a month. Enter those token counts once, then swap in each model's per-million rates. The total cost line changes immediately, which turns "which model is cheaper?" into a number rather than a guess.
Trade-offs and limits
- The page itself notes that different models use different tokenizers, so direct token-based comparisons may not be entirely accurate. Treat results as close estimates, not invoices.
- It is a cost calculator, not a benchmark: it says nothing about quality, latency, or context limits, which often matter more than a small price gap.
- Rates change; the page shows a "last updated" field, so check that before relying on a figure.
Next step
Estimate your real token counts first — from logs, a test run, or your prompt and expected output length — then use the calculator to price two or three realistic candidates. If your cached-input share is large, model the cached rate separately, since it can shift the ranking.
How do I estimate the cost of a prompt using the LLM pricing calculator?
Enter your prompt's token counts into the calculator's three fields — input tokens, cached input tokens, and output tokens — then supply the per-million rates for your model. The tool multiplies each count by its matching rate and sums the three results into a total cost.
What each field represents
- Input (prompt) tokens: everything you send — system instructions, conversation history, retrieved documents, the user's message.
- Cached input tokens: the portion of your input that a provider's prompt cache serves. These are billed at a lower rate, so only count tokens you know are cached here; putting ordinary input in this field understates your cost.
- Output (completion) tokens: what the model generates, usually the most expensive per token.
A worked example
Suppose a support-bot call sends 2,000 input tokens with none cached, and returns 400 output tokens. If your model charges $3 per million input tokens and $15 per million output tokens:
- Input: 2,000 ÷ 1,000,000 × $3 = $0.006
- Output: 400 ÷ 1,000,000 × $15 = $0.006
- Total: about $0.012 per call
At 10,000 calls a day, that is roughly $120 daily — which is why the output rate often dominates real bills, since replies are billed far higher per token than prompts.
Where estimates drift from reality
The page's own note is worth taking seriously: different models tokenize text differently, so token-based price comparisons across models are not exact. A token count from one model's tokenizer can be a few percent off for another. Estimates also ignore retries, failed calls, reasoning tokens that some models bill as output, and minimum charges.
Practical next step
Measure rather than guess. Run a representative prompt through your provider's token-counting endpoint or a tokenizer library, log the real input and output counts for a week, then average them. Feed that average into the calculator to model monthly spend, and re-check whenever you change prompt length, add retrieval, or switch models. For current per-model rates, the calculator's own model table is the place to look, and you can cross-check published rates at OpenAI and Anthropic.
How can I compare pricing across different LLM models for a specific token usage scenario?
Use a token-based calculator that separates uncached input, cached input, and output tokens, then run the same usage scenario through each model you are considering. The key is not comparing headline "per million tokens" rates directly, because cached input is often billed at a much lower rate than fresh input, and output is usually the most expensive category.
On LLM pricing calculator, the inputs map exactly to that structure: number of input (prompt) tokens, number of cached input tokens, number of output (completion) tokens, plus the three per-million rates for the model. It returns a total cost and also lists model prices per million tokens for input, cached input, and output, with a "Compare Prices" view and a selection filter so you can narrow the list to the models you care about.
A practical comparison workflow
- Define one realistic scenario, e.g. a support assistant handling 200 requests per day, each with a 3,000-token prompt (2,000 of it cacheable system/context text) and a 400-token answer.
- Convert it to monthly volumes: 12M input tokens, 8M cached input tokens, 1.6M output tokens.
- Enter those three numbers once, then swap in each model's rates and record the total cost.
- Repeat for a second scenario, such as long-document summarization with almost no cacheable prefix, since that shifts the cost balance toward plain input.
What actually drives the difference
| Usage pattern | Cost driver | What to watch |
|---|---|---|
| Chat with a fixed system prompt | Cached input | Whether caching is supported and how deep the discount is |
| One-off document analysis | Uncached input | Long prompts dominate; output length matters less |
| Code or content generation | Output | Output rates vary widely between models |
| Mixed production traffic | All three | Weighted average, not the cheapest single rate |
The page itself notes that different models use different tokenizers, so direct token-based price comparisons may not be entirely accurate. Treat the calculator as a budgeting estimate and validate token counts with the tokenizer of the model you pick.
Decision criterion: if your workload is output-heavy, optimize for the lowest output rate; if it is prompt-heavy with a reusable prefix, optimize for cached-input pricing and caching support. If your volumes are small, the absolute difference may be too small to justify switching models at all.
Why might direct token-based price comparisons between models be inaccurate?
Direct token-based price comparisons are inaccurate mainly because tokens are not a universal unit. The same piece of text can be split into different numbers of tokens depending on which model's tokenizer is used, so a lower listed price per million tokens does not automatically mean a lower real cost for the same task. The calculator itself notes this on the page: "Different models use different tokenizers, so direct token-based price comparisons may not be entirely accurate."
What actually causes the mismatch
- Different tokenizers, different counts. A sentence that is 100 tokens in one model might be 120 in another. The price per token is multiplied by a different number, so the total diverges even at identical rates.
- Cached input is priced separately. The page splits input, cached input, and output into distinct rates. A model with cheap fresh input but expensive cached input behaves very differently from one with the reverse, depending on how much context you reuse.
- Output tokens usually dominate. Output is typically the most expensive category per token, so a model that is cheaper on input may still cost more overall if your workload is generation-heavy.
- Workload shape matters more than the headline rate. Summarization (large input, small output) and chat or code generation (small input, large output) rank models differently.
- Token count is not the only cost driver. Latency, rate limits, context window, and quality per token all affect how many attempts or retries you need, which changes effective cost.
A concrete way to use the calculator
Take a real sample of your own text and your expected monthly volume, then enter three numbers: input tokens, cached input tokens, and output tokens. Run the same sample through two or three candidate models and compare the total cost line rather than the per-million figures. If your workload reuses a long system prompt, raise the cached-input share and watch how the ranking shifts. For a starting point, LLM pricing calculator lets you select models and compare input, cached, and output rates side by side.
Decision rule
Choose based on the total cost for your own token mix, then sanity-check quality and speed. If two models land within a small margin on total cost, treat them as equivalent on price and decide on output quality, context limits, or latency instead.
How do I calculate the cost savings from using cached input tokens instead of regular input tokens?
To estimate cache savings, compare the same token volume at two rates: the regular input price and the cached input price. Cached input tokens are usually billed at a lower per-million rate, so the saving is:
(input price − cached input price) × (cached tokens ÷ 1,000,000)
For example, if a model charges $3 per million input tokens and $0.30 per million cached input tokens, and your prompt reuses 500,000 tokens from cache, the saving is ($3 − $0.30) × 0.5 = $1.35 per request. Multiply by your monthly request volume to see whether caching is worth the engineering effort.
LLM pricing calculator is built for exactly this comparison: it takes the number of input tokens, cached input tokens and output tokens, plus the three per-million rates, and returns a total cost. You can also select specific models to compare their input, cached-input and output prices side by side.
H3 Practical steps
- Measure your real token mix. Split each request into fresh input, cached input and output tokens; caching only helps the portion that repeats.
- Get the cached rate for your model. Not every provider or model offers a discounted cached rate, and the discount varies widely.
- Run both scenarios. Price the same workload with zero cached tokens, then with your expected cached share.
- Convert to monthly figures. Savings per request are often small; volume is what makes the case.
H3 Trade-offs to weigh
- Cache hits are not guaranteed. A saving estimate assumes your repeated prefix actually gets served from cache.
- Cached tokens still cost something. The gain is the rate difference, not the full input price.
- Tokenizers differ between models, so token counts are not perfectly comparable across providers.
- Prompt structure matters. Caching typically rewards stable, reused prefixes placed early in the prompt; frequently changing content may not benefit.
A useful decision rule: if the discounted cached rate is less than half the regular input rate and a large share of your prompt repeats, caching is usually worth testing. If the cached rate is close to the regular rate, or your prompts are mostly unique, the savings may not justify the added complexity.
How can I select and compare only specific models in the pricing table?
Use the calculator’s model list to narrow the table before comparing prices. The page includes a “Show just selected” control and a “Clear selection” option, so the intended workflow is to pick the models you care about and then filter the table down to that set. This is more useful than scanning every row when you already know your shortlist—for example, one general-purpose model, one cheaper fallback, and one long-context option.
What to compare
The table is organized around per-million-token costs, with columns for:
- Input cost — normal prompt tokens
- Cached input cost — discounted cost when prompt content is reused
- Output cost — completion tokens
The calculator also accepts token counts for each category and returns a total cost, so you can compare a realistic workload rather than only headline rates.
A practical selection method
- Decide the job: chat, summarization, coding, extraction, or something else.
- Pick two to four candidate models—not ten. A short list keeps the comparison meaningful.
- Enter token estimates that match the workload: long shared instructions favor cached input; long answers make output cost dominant.
- Use “Show just selected” to isolate those rows.
- Compare totals, then check whether the cheapest total is also acceptable on quality and context needs.
Trade-offs to watch
A model with a low input rate can still be expensive if it produces long outputs. A model with cheap output may cost more if your prompts are huge and rarely cached. Cached input pricing only helps when the same prefix is reused; one-off prompts won’t benefit much. The page itself notes that tokenizers differ between models, so token-based comparisons are approximate—treat the numbers as a shortlisting tool, not a final invoice.
For a next step, run one real example through the calculator: paste your typical prompt length, expected cached portion, and expected answer length. Then compare the total against a second model with different input/output balance. If you want a broader reference point alongside the calculator, OpenRouter lists many model prices, though its figures may not match this calculator’s assumptions.
User reviews (0)