Most LLM bills are not one big cost. They are thousands of small, repeated calls that nobody looked at after launch. When we audited a client’s assistant this spring, the same handful of questions made up most of the traffic, every request carried a long system prompt, and the largest model answered everything, including “thanks”.
None of that was wrong when the product shipped. It just never got revisited. Here is what we changed, in the order we would do it again.
01
Where the money goes
Before changing anything, log every call with its prompt length, answer length, model and purpose. Token cost is roughly the tokens you send plus the tokens you get back, times the price of the model. Once you can group calls by purpose, the expensive patterns are usually obvious within a day.
- Long, fixed system prompts sent on every single call.
- The same questions answered from scratch hundreds of times a day.
- A large model handling short, simple turns.
02
Cache what repeats
If a prompt starts with the same instructions and documents every time, let the provider cache that prefix. Put the fixed parts first and the changing parts last, so the cache can match. For answers that repeat exactly, keep your own cache keyed on the normalised question.
# Fixed content first, so the provider can reuse the cached prefix
messages = [
{"role": "system", "content": SYSTEM_RULES}, # never changes
{"role": "user", "content": PRODUCT_DOCS}, # changes weekly
{"role": "user", "content": question}, # changes every call
]The cheapest token is the one you never send.
03
Route easy turns to small models
Most turns in a conversation are short: confirmations, small lookups, simple rewrites. A small, fast model handles these well. We added a light router that sends a turn to the large model only when it needs reasoning, long context or a tool call. Everything else goes to the small one.
04
Trim the prompt
System prompts grow over time as people add rules for edge cases. We cut duplicated instructions, moved rarely needed rules into retrieval so they only load when relevant, and asked for shorter answers where the user did not need an essay.
05
What it added up to
No single change did the job. Together, they cut the monthly bill by more than half, and answers got faster because most requests now hit a cache or a smaller model.
Monthly LLM cost, by change
Share of the original bill after each step
Before
100%
+ Prompt caching
74%
+ Model routing
55%
+ Shorter prompts
46%
Sample figures for one assistant, measured over 30 days.
The short version
Log every call by purpose before changing anything.
Put fixed prompt content first so it can be cached.
Send easy turns to a small model.
Prune the system prompt every quarter.

FalconXoft Engineering
The team that builds and runs AI products for FalconXoft clients. We write up what we learn along the way.
