A set of measured results exposes the hidden cost of Agent cost reduction: in a typical request, the cacheable system and tools content accounts for 92.8%. Yet adding a timestamp to the system prompt alone can reduce the reusable prefix from 92.8% to just 12.3%. For many teams, what looks like “caching isn’t working” is not a missing feature but a request-assembly process that breaks the conditions required for reuse.

What this is

Prompt Caching is the reuse of previously processed request prefixes by a model provider, reducing the computational cost of repeated input. It generally requires the request to remain byte-for-byte identical from the beginning: identical content with a different field order, spacing, or timestamp can interrupt the match.

The article uses real tool definitions and performs offline token counting. A typical request contains 390 tokens, including 362 tokens across the system and tools prompts, or 92.8%. With a successful cache hit, the estimated cost per request falls by 83.5%. The initial cache write, however, increases cost by roughly 23.2%. What ultimately affects the bill is the hit rate, not whether a team has enabled a caching interface.

The tests also found that changing the JSON field order in tool definitions can reduce the reusable prefix to 11.8%, while a random requestId can cut it to 9.5%. In a multi-turn conversation, the prefix can remain above 92.8% if history is only appended. The main risk comes from inserting or modifying content near the beginning of a request.

Industry view

We believe these results matter to teams deploying Agent systems at scale—AI systems capable of autonomously planning and calling tools to complete tasks. The longer the tool list and the more model-call rounds required, the greater the cost advantage of a stable prefix. Caching is not an optional add-on; it is foundational engineering in Agent infrastructure.

That said, “a stable prefix can save 83.5%” should not be treated as a universal guarantee. The article relies on offline token counting and specific pricing assumptions, while actual hits also depend on minimum-length thresholds, cache duration, provider rules, and write behavior. More expensive initial writes and short requests that cannot amortize their cost mean low-frequency users may not benefit.

Over-optimization creates another risk. Removing timestamps, tracking information, or tool metadata to achieve byte-level consistency can impair model judgment and make troubleshooting harder. A safer approach is to move dynamic fields to the end, keep serialization stable, and track cache hit rates and actual charges separately rather than looking only at the average cost per token.

Impact on regular people

For enterprise IT: Teams procuring AI Agent services should include cache hit rates and the proportion of repeated prefixes in contracts and acceptance criteria. A provider’s promise to “support caching” is not enough; teams must also validate hit performance using real requests.

For individual professionals: When using AI tools at work, repeatedly supplying the same background, templates, and reference material may still consume fewer usage credits than reorganizing the context from scratch each time. Using fixed templates and rewriting less on every request is often more valuable than chasing new features.

For the consumer market: If the cost of each Agent task falls, applications can more easily offer free trials, always-running services, and complex multi-turn experiences. Whether those savings reach consumers ultimately depends on model-call volume, provider pricing, and competition.