LLM API Cache-Hit Price Cut: How Developers Can Save on Inference Costs
A cloud provider cut cache-hit input prices to 20% of the original rate. This article explains how prefix KV-cache reuse works, which apps benefit most, and how to restructure prompts and architecture to raise hit rates and cut LLM API spend.
A cloud provider recently announced that, starting 00:00 on 23 November 2026 (Beijing time), cache-hit input prices for a large language model on its Model-as-a-Service (MaaS) platform in a specific region would drop to 20% of the previous rate. Other billing items remain unchanged. The change looks modest, but for applications that rely on long system prompts or fixed knowledge prefixes it can produce meaningful cost savings. This article explains the technical basis of cache-hit billing, which workloads benefit most, and the engineering practices that maximize the discount.
What Cache-Hit Billing Means
LLM inference cost typically has three parts: processing input tokens, generating output tokens, and computing the key-value (KV) cache for the request context. In a typical conversation or multi-turn call, if the prefix of the request (system prompt, fixed few-shot examples, or a long document) is identical to a previous request, the inference engine can reuse the already-computed prefix KV cache and skip the forward pass over that prefix. That prefix reuse is what billing systems call a “cache hit.”
Because the repeated computation is avoided, cache-hit input tokens are priced well below ordinary input tokens. After the adjustment, cache-hit input is 20% of the original price—a substantial reduction on the hit portion of the prompt.
Applications That Benefit Most
Not every call qualifies. Benefit depends on request structure. The following patterns see the largest gains:
- Long system-prompt applications. Customer-service bots and enterprise knowledge assistants often carry thousands of tokens of identical system instructions on every request; those tokens are natural cache-hit candidates.
- Batch processing with a fixed document prefix. When the same long document is analyzed or extracted from multiple angles, the document can be reused as a stable prefix.
- Few-shot-heavy tasks. Large sets of examples inserted to improve output quality form another stable, reusable prefix.
- Long multi-turn conversations. Session history accumulates; each turn’s history overlaps heavily with the previous request, producing high hit rates.
Conversely, prompts that are generated dynamically with unstable prefixes (user IDs or timestamps placed first) yield low hit rates and limited savings.
Optimizing Prompt Structure
Because billing now rewards cache hits, engineering practice should raise the hit rate. The core rule is: put stable content first and dynamic content last.
A poor pattern:
prompt = f"Current time: {now}, user: {uid}\n{system_instructions}\n{long_context}\n{user_query}"
The timestamp and user ID sit at the front, so every request has a unique prefix and the system instructions and long context never hit cache.
A better structure:
messages = [{"role": "system", "content": system_instructions}, # stable prefix{"role": "system", "content": long_context}, # stable prefix{"role": "user", "content": f"time: {now}, user: {uid}"},{"role": "user", "content": user_query} # dynamic content last]
After the reorder, system instructions and long context can be reused across requests and hit rates rise sharply. Also avoid randomized fields (shuffled examples, dynamically concatenated separators) inside the stable prefix, and version the templates: any change invalidates the old cache.
Amplifying Savings at the Architecture Level
- Observe usage. Record total input tokens, cache-hit tokens, and cost at the client wrapper and build a hit-rate dashboard. Hit rate is the most direct optimization metric and the way to measure prompt-structure changes.
- Respect cache TTL. Prefix caches usually expire. Low-frequency workloads can be scheduled or batched so related requests arrive closer together.
- Keep prefixes byte-identical. Store frequently used long context in object storage or a cache and load it on demand. Maintain prompt templates in a gateway so every service emits the same stable prefix; “looks the same but differs by a byte” causes misses.
- Watch other billing items. The price cut applies only to cache-hit input. Output tokens and ordinary input are unchanged. Generation-heavy tasks still need output-length limits and tighter instructions; cache optimization is only one part of overall cost control.
Conclusion
The reduction of cache-hit input to 20% of the original price reflects a broader trend of passing inference optimizations on to users. Developers should take three concrete steps: inspect existing prompt layouts and move stable content to the front; instrument cache-hit rate and let the numbers drive further changes; and treat cache-friendly prompt design as a team standard. Done well, the same application behavior can cost significantly less. The price cut is an external dividend; capturing it depends on engineering detail.
