Part of the AI & Machine Learning suite · 24 calculators

LLM Token Cost Calculator

What a model call costs — input and output tokens priced separately, per request and across a month of traffic.

Providers price input and output tokens differently, and output is usually three to five times dearer.

Results update as you type
Results
Cost per request
0.0165
Input cost per request
Output cost per request
Output as a share of the cost
Cost per day
Cost per month
Cost per year
Monthly saving from caching
Cost per thousand requests
Reviewed September 2026. Model arithmetic is the same everywhere: the same formulas in every market, in your own currency. The NIST framework is voluntary guidance; it does not prescribe cost or sizing methods.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About llm token cost

How the llm token cost calculator works

Providers price input and output tokens differently, and output is usually three to five times dearer. That asymmetry is the whole cost model: a request with a long prompt and a short answer costs very little, and one with a short prompt and a long answer can cost many times more.

So the lever is rarely the prompt. Capping output length, or asking for structured rather than prose answers, moves the bill far more than trimming the system prompt does.

Formula: cost = (input ÷ 1M × input price) + (output ÷ 1M × output price)

Worked examples

InputsCost per requestNote
2,500 in, 600 out0.0165output is most of the cost
A long answer0.0675the bill multiplies
With prompt caching0.0111input cost nearly disappears

Frequently asked questions

Why is output more expensive than input?

Because it is generated one token at a time and cannot be batched the way a prompt can. Three to five times the input price is typical.

What is the cheapest thing to change?

Output length, almost always. Capping it, or asking for structured output instead of prose, moves the bill more than shortening the prompt does.

How many tokens is my prompt?

Roughly words divided by 0.75 for English. Code, other languages and unusual formatting all tokenize less efficiently.

Does prompt caching help?

Enormously when a long system prompt repeats across requests — cached input is often billed at a tenth. It does nothing for varied prompts.

Why does this page not list prices?

Because they change monthly and any figure printed here would be wrong before you read it. Enter your provider's current price.

Where these figures come from

Last checked: September 2026. The relationships here are architectural, not vendor-specific: bytes per parameter follow the numeric format, KV-cache size follows the transformer definition, and token-per-word ratios come from published tokeniser behaviour.