Budget surprises
What it looks like
The monthly bill comes in much higher than last month. Traffic is about the same. Nobody shipped a big feature. You open the usage page and it shows one large total that does not say which part of your app caused it.
Why it happens
You pay per token, and most providers bill input and output tokens separately, often at different rates. So cost grows whenever any of these grow:
- Prompt size. A longer system prompt is sent on every call.
- History. Chat apps re-send past turns, so each turn costs more than the last.
- Retrieved text and tool output. Pulling ten documents instead of three can multiply input.
- Reply length. No output cap means the model can write as much as it likes.
- Model choice. A config change that points at a bigger model changes the price of every call.
- Retries. See Retry and cost multipliers.
Each change looks small on its own. Together they add up, and the bill only shows the total.
How to spot it
- Average input tokens per call creeping up week over week.
- One feature or one user using far more than the rest.
- A model name in your logs you did not expect.
- Spend alerts firing early in the month.
Fix checklist
- Log input and output tokens per request, tagged with feature, user and model.
- Set max output tokens on every call.
- Cap history and retrieved text to a fixed token budget.
- Use prompt caching where your provider supports it, keep the cached prefix stable, and check the cache hit rate.
- Set spend alerts and per-key limits in your provider's console.
Lasting fix
- Set per-key spend caps in TokenCenter Keys & Quotas .
Related on Solaro sites
- TokenCenter cost calculator : check what your monthly token use should cost.
- DailyScar : read the story “A Short Answer With a Long Bill” (on the DailyScar front page).
- ModelRaters : see the “Best for fast and low cost” list.
See where your tokens go before you send, then price it, in the Context planner
Next
Start with How to read your token bill, then Log tokens per request.