Anthropic Prompt Caching
Optimizes Claude API performance and costs by implementing ephemeral prompt caching for large, stable content blocks.
The Prompt Caching skill enables Claude to leverage ephemeral caching mechanisms that significantly reduce latency by up to 80% and costs by up to 90% on repeated long-context calls. It provides a standardized pattern for applying cache control to system prompts, tool definitions, and large reference documents, making it essential for complex agentic loops and multi-turn conversations where the prefix remains stable while the conversation grows.
Key Features
01Reduces input token costs by up to 90% on cache hits
02Decreases response latency by approximately 80%
03Supports up to 4 cache breakpoints per API request
04Monitors cache hits via detailed response usage metrics
05Implements cache_control for system prompts and tool definitions
061 GitHub stars
Use Cases
01Optimizing agentic workflows using large OpenAPI schemas or stable tool definitions
02Speeding up code review tasks that reference consistent style guides across multiple files
03Managing multi-turn conversations involving massive RAG contexts or reference documents