What Makes an AI Model Expensive? The Real Drivers
Output tokens, caching and retries decide your invoice far more than model choice. A worked example on published rates, with the levers ranked.
What makes an AI model expensive is usually not the model. It is the shape of what you send it and how much you let it say back. Two teams calling the same model on the same task routinely differ by a factor of three on the invoice, and the cheaper one rarely got there by switching providers.
Here is what you are actually billed for, and the arithmetic on published rates.
What makes an AI model expensive: the five things you pay for
Output tokens, not input. Output is the expensive half, typically by around five times. Google's published introductory rate for Gemini 4 Carbon is 2 dollars per million input tokens against 10 dollars per million output tokens.
Whether your input is cached. A repeated prefix can be billed at a steep discount. On that same introductory rate, cached input is priced 95 percent below the normal input rate.
How much context you actually send. You are billed for the tokens in the request, not for the size of the window. A 1 million token window costs nothing extra if you send 2,000 tokens.
Reasoning tokens. Models that think before answering bill that thinking as output. A short visible answer can hide a long, billed deliberation.
Retries and tool loops. Every retry is a fresh paid call. An agent that loops four times to get one result costs four times the single-call estimate.
The arithmetic, on a real feature
Take a support reply drafter. A 3,000 token system prompt holding your policies and tone, plus a 500 token ticket, produces a 400 token draft. You run 10,000 tickets a month. Using 2 dollars per million input and 10 dollars per million output:
Input: 3,500 tokens times 10,000 calls is 35 million tokens, which is 70 dollars.
Output: 400 tokens times 10,000 calls is 4 million tokens, which is 40 dollars.
Total: 110 dollars a month.
Now cache the 3,000 token system prompt, which never changes between calls, at 95 percent off:
Cached prefix: 30 million tokens at 0.10 dollars per million is 3 dollars.
Fresh input: 5 million tokens of ticket text at 2 dollars per million is 10 dollars.
Output: unchanged at 40 dollars.
Total: 53 dollars a month.
Same model, same prompt, same quality. The bill halved because the static part of the request stopped being paid for at full price on every call. That is the single highest-payoff change available to most people, and it is explained properly in what prompt caching is.
Then watch what happens when the introductory period ends and the rate becomes 4 dollars in and 20 dollars out. The uncached version goes to 220 dollars. The cached version goes to 106. The gap widens with the price, so the work compounds.
Why output costs more than input
Input is read in parallel. The model processes the whole prompt in essentially one pass, so a long prompt is cheap per token. Output is produced one token at a time, and each new token requires another pass over everything so far. Generation is serial and holds the hardware for the duration, so it is priced accordingly.
The practical consequence: trimming 1,000 tokens off your prompt saves far less than trimming 200 tokens off the answer. Cap your output length before you start editing your prompt.
The levers, in order of payoff
Cache the static prefix. Largest saving, smallest change.
Cap output length, and ask for the format you want rather than prose you will discard.
Cut dead weight from the system prompt, which is often half examples nobody tested.
Route the easy majority of requests to a smaller model and keep the large one for the hard cases.
Check off-peak rates if your work is batchable, which is covered in off-peak AI API pricing.
Only then compare providers. The method for that is in comparing AI API pricing across providers.
If you cannot yet put a number on your own usage, start with estimating tokens for a task, because none of the levers above can be ranked without it.
Frequently asked questions
Is a bigger model always more expensive?
Per token, generally yes. Per finished task, not always. A stronger model that gets the answer in one pass can cost less than a weaker one that needs three attempts plus a human fixing the output. Compare cost per completed task, not cost per million tokens.
Does a long context window cost more if I do not use it?
No. You pay for the tokens you send and receive. A model advertising a very large window costs the same as a small-window model at the same rate when your request is short. The window is a ceiling, not a fee.
Why did my bill go up when I changed nothing?
Three usual suspects. An introductory price ended. Your prompts grew because someone added examples or a longer document. Or retries increased, often because an upstream change made the model's output fail validation more often. Logging token counts per call is what tells these apart. Our note on how AI models work covers the mechanics behind the first two.
Is cached input the same as using a cheaper model?
No, and the difference matters. Caching changes the price of tokens you were sending anyway, with no effect on output quality. Switching to a cheaper model changes the answers. Do the caching first, because it has no quality cost to measure.
How did this land?
About the author

Senior Editor, AI & Product
Cecilia leads the Swarmz editorial desk. She has spent a decade turning complex AI and product topics into writing people actually finish, and she owns the blog's quality bar.


