AI strategy & costsFebruary 20266 min read
Reading an API bill without panicking
An LLM bill reads like a foreign language. Once you understand three terms, it turns into an action plan.
The first instinct when an API bill lands is to look for the total, find it bigger than expected, and conclude that usage has exploded. It almost never has. The bill did not grow because you have more users, but because each call now ships more material to the model, or because a trivial task is being routed to the most expensive model in the catalog. The document that worries you is in fact a very readable statement: a handful of models, a volume of tokens, a unit price. Learn to read it and you will know not only where the charge comes from, but exactly where to press to bring it down.
What do the lines on my LLM API bill mean?
Open the detail and you meet the same structure with every provider: one line per model, a count of input tokens, a count of output tokens, and a price per million tokens for each. The rest is just multiplication. Three notions are enough to decode all of it: the token, which is the billed unit; the context, meaning everything you send to the model on each call; and the model itself, whose price swings enormously from one line to the next. Hold those three words and the bill stops being opaque: you are reading arithmetic, not an oracle. The figure that scared you turns into a sum of technical choices you made, often without realising it, and can just as easily undo.
Why is the token the unit that counts?
Because nothing is billed by the message or by the user: everything is paid by the token, on the way in as much as on the way out. A token is worth roughly three quarters of a word in English, which means a bill is counted in fragments of text, not in requests. And the trap sits in the input. The input is not just the user's question: it is everything you push to the model on each call, system instructions included, conversation history included, retrieved documents included. In many applications the input weighs far more than the answer, and you pay for it again on every request, including the parts that add nothing to the result.
- The system prompt: your instructions, tone and rules, sent again in full on every call.
- The conversation history: every previous turn you replay to keep the thread.
- The retrieved context: the document excerpts injected to answer, often oversized.
- The user's question: usually the smallest part of the charge.
Why is my bill climbing while usage stays flat?
It is the question that comes up most, and the answer disappoints by how simple it is: the number of calls has almost never moved, their weight has. A system prompt padded just to be safe, a history left to run over dozens of turns, whole pages injected where three sentences would do: each of these settings inflates the input of every request, and therefore the bill, for exactly the same usage. The most common culprit is a document retrieval system that is poorly tuned and pushes too much context into every question. The good news is that this bloat is painless to fix: it touches neither your users nor your features, only text you were paying for and getting nothing in return.
Why does the choice of model multiply the bill?
Because at equal volume, two models can show a cost that differs by a factor of ten. The most powerful model in the catalog is also the most expensive per token, and nothing forces you to hand it a task the smallest one would do just as well. Classifying an email, extracting a date, rephrasing a sentence: these are simple jobs with no reason to travel to the top-tier model. When they do, you are paying for a Ferrari to fetch the bread. Knowing which model fits which use is the most profitable lever of all, because it degrades nothing: the task is done just as well, for a fraction of the price. Spotting, on your bill, which model line handles which case is spotting at once where you are overpaying.
How do I break my bill down to see where the money goes?
A single global figure tells you nothing actionable; you have to cut it up. Break it down by model first, then by use case or feature, to see exactly which piece of your product consumes what. It is the very first thing I do in a cost audit: without that split you optimise blind; with it, the savings jump out. Most providers let you tag your calls to reconstruct this breakdown; if you are not doing it yet, it is the first habit to adopt. Here is the framework that makes a bill steerable.
- By model: which line accounts for which share of the charge, keeping input and output separate.
- By use case: which feature consumes the most, and whether it earns enough to justify it.
- Input versus output: in most applications the input dominates, so that is where the easy savings sit.
- Cost per task or per user: the one number that says whether your usage pays off or leaks.
What do I do once I understand the bill?
Reading the bill is not an end, it is the starting point. Once you know which model handles what and where the input balloons, the levers become concrete and they stack. Most demand no rebuild: they come down to no longer paying for useless text and no longer sending simple tasks to the most expensive model. That is exactly the ground on which you can cut the bill without touching quality, sometimes by amounts that surprise.
- Trim the context: send only what genuinely serves the answer on each call.
- Route by task: the small model for the simple, the large one reserved for the hard.
- Cache the input segments that do not change, where the provider allows it.
- Cap the output: bound answer length wherever a short reply is enough.
A bill you understand stops being a source of dread. It becomes a lever.
An API bill is not a verdict, it is a mirror: it reflects choices of context and model that you can revisit tomorrow. Start by breaking it down, find the line that weighs the most, and you will know where to land the first blow. If you want an outside eye on yours, to know in a single read where your money goes and which of it is recoverable, let's talk: a first conversation is often enough to pin down the two or three levers that matter.