Large context windows enable loading massive documents, but they scale cost and latency linearly.
Prompt Caching at the model level allows you to persist static system prompts, database schemas, and few-shot examples in memory.
By design, reusing cached prefixes reduces token costs by up to 90% and cuts time-to-first-token (TTFT) by 2-10x, enabling highly responsive, cost-efficient agentic architectures.
System Prompt: You are an SQL database assistant.
Context Database Schema (Static - Cached Prefix): (10,000 tokens of static table definitions)...
User Query (Dynamic): Find client X's refund status.
Anthropic supports prompt caching (minimum 1,024 tokens for Sonnet/Haiku). Use the 'cache_control' parameter in messages/system parameters to declare cache breakpoints.