Skip to content

What Is Prefix Caching / Cache Reuse?

Without caching, the same prompt prefix is reprocessed every time, even when it’s identical across consecutive requests. That costs time and tokens.

With KV cache prefix caching, the operator keeps already-computed key-value states for recurring prompt prefixes in GPU VRAM/RAM. On a cache hit, the prefix doesn’t need to be recomputed.

  • Faster: lower latency, since the prefix isn’t reprocessed
  • Cheaper: cached input tokens are billed at a reduced rate
  • Fixed system prompts that are identical across every request
  • RAG pipelines with the same context
  • Multi-turn conversations sharing conversation history