Browse/Anthropic/Prompt Caching
Prompt Caching
Anthropic
$19 · Pro
Mark a large system prompt as cacheable to cut cost and latency on repeat calls.
prompt-cache-support-bot.ts
cache_control: { type: "ephemeral" },
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.
Prompt Caching — Anthropic Example (TypeScript, Node, Python, Go, PHP, Ruby) | apiexamples