[KongchangAI]
Concept提示词缓存 / Prompt Cache

Prompt Caching

A pricing optimization mechanism introduced by Anthropic that applies token-level cost discounts to reusable fixed-prefix portions of requests, such as system prompts, passing on savings from KV cache reuse to the billing structure.

Core Facts

Timeline (last 90 days)

Nov 17

Moving dynamic information into the user message, placing it after the static prefix, or simply omitting it is a common engineering practice for avoiding prompt cache invalidation.

Unverified50%
Nov 17

Embedding dynamic fields such as timestamps in the system prompt prevents prompt cache hits, because the cache uses prefix-level exact token-by-token matching.

Unverified50%
Nov 17

Adjusting reasoning effort clears the entire prompt cache, because different reasoning efforts correspond to different computation paths and system configurations, and cache entries cannot be reused across configurations.

Unverified50%
Nov 16

When the advisor is invoked, it re-reads the full session as input, and this reading does not enter prompt caching, so each summon is billed at full price for input tokens; the main model's cache is unaffected, and the advisor's returned suggestions are cached locally in subsequent steps.

Unverified50%
Nov 16

Each time the advisor model is invoked, it re-reads the entire session history from scratch, and the advisor's own reads are not cached, while the main model's cache remains intact.

Unverified50%
Nov 14

After a 120,000-token context sits idle for 6 minutes, a cache read that originally cost $0.024 turns into a context rewrite costing $0.60.

Unverified50%
Nov 9

Prompt caching from major cloud providers reduces repeated input overhead by reusing the KV cache of identical prefixes, but it only accelerates the prefill stage, and the model still must generate subsequent reasoning tokens for each new problem.

Unverified50%
Oct 31

Anthropic's prompt cache typically expires after about 5 minutes without requests, and using it again after expiration is billed anew at the write price.

Unverified50%
Oct 31

Anthropic charges a minimum of only 5% for prompt cache reads, while rewriting after expiration is billed at double.

Unverified50%
Oct 19

To achieve a high cache hit rate with prompt caching, stable content must be placed at the front of the prompt and variable content at the end, while keeping the request prefix byte-for-byte identical.

Unverified50%

40 more timeline events

All Facts (20)

Verified

KV Cache persistently stores already-computed key-value pairs so that subsequent requests sharing the same prompt prefix can directly reuse them, skipping redundant matrix operations.

90%
Verified

Prompt caching saves the KV state of reusable prefixes (the tokens at the beginning of a prompt that remain unchanged); if the next request starts with an identical prefix, the provider reuses the saved computation and only processes the new portion.

80%
Verified

Token caching (Prompt Caching) is a cost-optimization mechanism in large model APIs; when the same prefix appears repeatedly across multiple requests, the computation result can be cached and charged at a lower rate.

80%
Verified

The Claude API supports a Prompt Caching mechanism, where content is billed at full price on the first request, and subsequent tokens that hit the cache cost approximately 10% of the original price

80%
Verified

The core principle of prompt caching is cross-request reuse of the KV Cache, where already-computed KV states can be cached and reused when multiple requests share the same prefix.

80%
Verified

The Prompt Caching mechanism can reuse the KV Cache of identical prefix contexts, typically reducing input token costs by 50%–90%.

80%
Verified

Prompt Caching is a mechanism provided by large-model service providers such as the Anthropic API: when the request prefix is exactly the same as that of a previous request, the server reuses the already-computed KV Cache, the cache-hit portion is billed at 0.1 times the input price, and the first cache write is billed at 1.25 times.

75%
Verified

Prompt caching is a capability of the Anthropic API: when the prefix portion of a request is exactly identical to the previous request, the server can reuse the already-computed intermediate state and skip redundant prefill computation.

75%
Verified

The cache is not permanently valid; providers usually have a TTL of a few minutes to an hour, and the hit rate fluctuates with user behavior.

75%
Verified

Common methods for controlling token costs include truncating conversation history, using summary-based memory compression, and selecting models of different scales for different tasks.

75%
Verified

Fewer input tokens generally mean lower processing latency.

75%
Verified

The general principle for achieving cache hits is to keep the prefix of the request context as stable as possible, placing fixed content such as system prompts and tool definitions at the very front, with per-turn user input appended at the end.

75%
Verified

Whether prompt caching hits depends on byte-for-byte consistency of the request prefix; if even one character at the beginning differs, the entire cache is invalidated.

70%
Verified

On most Claude models, Anthropic bills cache reads at 0.1× the base input price; default 5-minute cache writes at 1.25×; 1-hour cache writes at 2×; and a 5-minute cache entry is refreshed for free each time it is used.

70%
Verified

The caching mechanism is technically commonly referred to as KV Cache or Prompt Caching

70%
Verified

Long context significantly raises time to first token, because prefill computation grows with input length; hitting the cache can skip most of the prefill and directly improve first-token latency.

65%
Verified

Prompt Caching is a cost-optimization mechanism introduced by mainstream LLM providers (such as Anthropic and OpenAI): when the prefix portion of multiple requests is completely identical, the provider caches that portion of the computation, and tokens that hit the cache are billed at a price far below normal input.

65%
Verified

Prompt cache validity typically ranges from only a few minutes to several hours, and discount rates and cache windows may be adjusted at any time.

65%
Verified

Prompt Caching refers to LLM service providers caching repeatedly occurring prefix content in requests, with cache hits reducing computational cost and latency.

65%
Verified

Some service providers have introduced cache-hit pricing, charging at a lower discounted rate when repeated long system prompts hit the cache.

65%

Source Articles