[KongchangAI]
Concept上下文缓存

Context Caching

Context caching is a technical mechanism that stores processed contextual information in a cache layer for reuse by subsequent requests. Its primary objective is to avoid redundant computation of identical contexts, thereby improving system response efficiency and reducing resource consumption. The technology is widely applied in large language model inference, dialogue systems, and distributed computing, and is particularly suited for workloads that frequently reference large volumes of shared context, serving as an important means of optimizing computational performance and cost.

Core Facts

Timeline (last 90 days)

Oct 31

Anthropic's Context Caching marks breakpoint positions via cache_control in the request body, and after a hit, the price of cached read tokens is far lower than that of regular input tokens.

Unverified50%
Oct 31

Context Caching's "saving 90% of inference costs" is an upper limit under specific workloads rather than a universal value; when designing, stable content should be placed first and volatile content later, and attention should be paid to the cache TTL and the minimum cacheable length limit.

Unverified50%
Oct 19

Context Caching is a billing optimization mechanism provided by model vendors; when multiple requests share the same long prefix, cache breakpoints can be marked to reuse the already-computed KV Cache, billed at a lower unit price and reducing first-token latency.

Unverified50%
Oct 8

Context caching is a feature provided by some model vendors (such as Anthropic's Claude and Google's Gemini) that allows frequently occurring long text prefixes to be cached on the server side to reduce the cost of subsequent calls.

Unverified60%

All Facts (8)

Verified

The disk caching mechanism persists already-computed KV Cache to storage media; when a subsequent request's prefix hits the cache, it can be reused directly, skipping redundant forward propagation.

65%
Verified

The context caching mechanism is particularly beneficial for scenarios such as multi-turn conversations, long document processing, and batch tasks.

65%
Unverified

According to official Google data, Context Caching can reduce input token costs by up to 75% for scenarios containing a large amount of shared context.

88%
Unverified

The Context Caching feature can significantly reduce Time to First Token generation.

88%
Unverified

Context caching is a feature provided by some model vendors (such as Anthropic's Claude and Google's Gemini) that allows frequently occurring long text prefixes to be cached on the server side to reduce the cost of subsequent calls.

60%
Unverified

Anthropic's Context Caching marks breakpoint positions via cache_control in the request body, and after a hit, the price of cached read tokens is far lower than that of regular input tokens.

50%
Unverified

Context Caching's "saving 90% of inference costs" is an upper limit under specific workloads rather than a universal value; when designing, stable content should be placed first and volatile content later, and attention should be paid to the cache TTL and the minimum cacheable length limit.

50%
Unverified

Context Caching is a billing optimization mechanism provided by model vendors; when multiple requests share the same long prefix, cache breakpoints can be marked to reuse the already-computed KV Cache, billed at a lower unit price and reducing first-token latency.

50%

Source Articles