Guides to LLM pricing and cost control

Long-form explanations of how large language model billing actually works — written to answer the questions the calculator raises but cannot fit on one screen.

The calculator gives you a number. These guides explain where that number comes from, which of its assumptions are load-bearing, and what to change when the answer is too expensive.

They are written for people who are building something and want to understand their bill properly — not marketing comparisons, and not restatements of provider documentation. Each one covers a mechanism: why output tokens cost more than input tokens, why conversation cost grows quadratically, what a cache hit actually requires, where the break-even point for self-hosting sits. Every guide lists its assumptions, and every figure is one you can check against a provider's own rate card.

All of them are free, none of them are gated, and the methodology page documents the calculations behind the tool itself.

Where to start

If you are new to LLM billing, read LLM API pricing explained first, then how tokenization works. Together they cover everything you need to read a rate card correctly.

If you are already running something in production and want to cut the bill, skip to prompt caching and multi-turn conversation costs — between them they account for the large majority of avoidable spend in chat-shaped applications.

If you are choosing infrastructure, compare gateways against direct API access and read the self-hosting break-even analysis before committing to GPUs.