LLM cost calculator

Free tool Runs in your browserNothing uploaded
In short

An LLM bill is requests multiplied by tokens multiplied by the per-token price, and the input side is usually the larger half because context is resent on every call. This calculator works that out per month and compares it against the flat cost of running an open-weight model on a dedicated instance.

Two numbers decide an LLM bill: how many tokens go in, and how many come out. Input tokens are the ones teams underestimate — a system prompt, retrieved context and conversation history are resent on every single call, so a chat feature can spend ten times more on input than on the answer it produces.

Fill in your own numbers below. The prices are editable because provider pricing moves and a calculator that quotes last year's rates is worse than none at all; the defaults are indicative figures as of September 2026, and you should overwrite them with what your invoice actually says.

$0per month
$0per year
$0of that, input
0tokens / month

Prices are indicative figures as of September 2026 and every field is editable — use the numbers on your own invoice. Nothing you type leaves your browser.

What the crossover means

The comparison at the bottom is the one worth taking seriously. A metered API costs nothing when idle and scales linearly with use; a dedicated instance costs the same every month whatever happens. Below the crossover the API is cheaper, above it the instance is.

The catch is that the two are not equal in capability. A quantized 7-8B model on CPU is a capable classifier, extractor and summariser, and it is not a frontier model. The honest comparison is between the API calls you would replace — the high-volume, low-difficulty ones — and the instance, not between your whole bill and one server. Our CPU performance figures set out which jobs fit.

Where the money usually hides

Retries. SDKs, queues and workflow engines all retry. A failing call can cost three times what the logs suggest.

Agent loops. Plan, act, observe, repeat — without a step cap, one request can become forty calls.

Context that grew. System prompts accumulate. Nobody deletes anything from them.

A gateway with per-key spend logging answers all three in a week. We host LiteLLM from $5.99/mo, and the seven levers guide covers what to do once you can see the numbers.

Questions

Questions

How many tokens is a word?
Roughly 0.75 words per token for ordinary English, so 1,000 tokens is about 750 words. Code, markup, names and non-English text all use more tokens per word.
Why are input tokens usually the bigger cost?
Because they are resent. Every turn of a conversation carries the system prompt, any retrieved context and the history so far. Output is only what the model writes back.
Are these prices current?
They are indicative figures as of September 2026 and every field is editable. Always check your provider — we would rather ship an editable calculator than a table we cannot keep accurate.
Does self-hosting really cost nothing per token?
Per token, yes — the instance price is the whole cost, whether it answers ten requests or a million. What it costs instead is capability and speed, which is why the comparison only makes sense for work a small model handles well.

Put your AI stack on your own box

Pick an app, pick a size, and have it running today. Month to month, cancel whenever.