The parts of a token bill
TermWhat it means
Input tokensEverything sent to the model: your instruction, the files, the conversation so far.
Output tokensWhat the model writes back. Most providers charge more per output token than per input token.
Cached tokensInput the provider has seen recently and can reuse. Many providers charge less for it.
Context windowThe most text a model can take in one request. Larger windows allow bigger prompts, and bigger bills.
Why the same task can cost very different amounts
- A long prompt carrying a whole repository costs more than one carrying the two files that matter.
- A conversation is usually resent in full on each turn, so a long thread costs more with every message.
- An agent that reads, tries, fails and retries pays for the input each time.
- A larger model typically costs more per token than a smaller one.
What to do with this
Check the current price list of each provider you use, since rates differ by model and change. Then look at your own prompts: how big are they, how often do they repeat, and which ones return little?
EmberNest shows token spend per prompt so you can see this on your own work, not in the abstract.