Inference 101, lesson 2
Where the cost goes
Every token you buy was made on a chip someone pays for by the hour. This lesson follows the money from that chip to your bill, and shows why memory, not maths, sets the price.
Every example below changes to fit what you pick. The businesses are made up for teaching.
The picture, one step at a time
Each box is one stage. The picture lights up as you scroll.
Where the cost goes, from the chip to your bill
1The chip, by the hour
A GPU costs its owner money every hour it is switched on, busy or idle.
2Reading memory
Writing each token means reading the whole model from memory. That read, not the sums, sets the pace.
3Sharing the read
Serve many users at once and one read of the model writes a token for each of them.
4The price list
The provider spreads the cost of its hours over the tokens it serves, and prices input and output differently.
5Your bill
Input tokens times their price, plus output tokens times theirs.
The chip costs money every hour, busy or not.
Step 1 of 6
Someone pays for the chip by the hour
Every answer is made on a GPU, a chip built for huge numbers of small sums. Whoever owns or rents it pays for every hour it is on, plus power and cooling. A busy hour and an idle hour cost the same. An idle hour is pure cost.
Step 2 of 6
Writing is limited by memory, not maths
As lesson 1 showed, each new token means reading the whole model (billions of numbers) out of the chip's memory. The chip can do sums far faster than it can fetch those numbers. So while one person's answer is being written, most of the chip sits waiting.
The vLLM paper (Kwon and others, 2023) says this writing phase "severely underutilizes GPU computation and becomes memory-bound".
Step 3 of 6
Sharing the read
Here is the trick. Many users can share one read. The chip reads the model once and writes the next token for everyone in the group. This is called batching. Serve 50 people at once and each read does 50 times the work, for not much more time.
The same paper puts it this way: requests share the same model weights, so the cost of moving them is spread across every request in the batch.
Why can a big provider sell tokens cheaper than your own chip serving only you?
Step 4 of 6
The limit on sharing: memory again
Each user in the group also needs room in the chip's memory for their own conversation. When the memory is full, nobody else can join, however idle the sums are. Lesson 3 shows why long chats fill it fastest.
In the vLLM paper's example, a 13-billion-parameter model on a GPU with 40 GB of memory used about 65% of it for the model and close to 30% for the users' conversations.
Step 5 of 6
The price list
A provider adds up its hours, divides by the tokens it serves, and adds its margin. The big price lists then charge more for an output token than an input token. Providers do not publish why, but it matches the machine: reading your prompt runs all at once, while writing goes one token at a time.
On Anthropic's and OpenAI's public API price lists, read on 28 November 2026, each of the main models charges five times as much per output token as per input token.
Step 6 of 6
Your bill
Your bill for answering customers is two sums added up: input tokens times the input price, plus output tokens times the output price. Take made-up prices of £1 per million input tokens and £5 per million output. A job that sends 2,000 tokens and gets 500 back costs 0.2p in and 0.25p out. The answer is a quarter the size, and more than half the bill.
Most of your bill is output. What cuts it fastest?
What explains that cost?
Here are four things you might see on a bill or a chip in your business. Sort each one into the part of the cost that explains it.
1You rent your own GPU for the shop's chat. At 3am it answers two messages, and you still pay for the full hour.
2You try a bigger model on the same chip, and its replies come out noticeably slower.
3A big provider charges you far less per reply than your own rented chip worked out at.
4Long, chatty replies cost you more than short ones, even for the same questions.
0 of 4 right so far, 4 to go.
The cost diagram
This is what you keep: where the money goes on one card, and where to look first when the bill is too high.
The cost diagram
- A GPU costs money every hour it is on, busy or idle.
- Writing each token means reading the whole model from memory. Memory speed, not maths, sets the pace.
- Serving many users at once shares each read. That is why big providers are cheap per token.
- Each user's conversation takes room in memory, which caps how many can share.
- On Anthropic's and OpenAI's price lists (November 2026), an output token costs five times an input token.
Before you cut the prompt, check the answer: output is usually the dearer half of the bill.
Next: Lesson 3: why long chats cost more. What the model keeps in memory as a conversation grows, and how a repeated start can be charged less.