S
Sonny
Text
Cutting Cost and Latency with Prompt Caching — Building with the Claude API
Mark a long stable prefix — system prompt, documents, tool definitions — so the provider reuses its computed state across calls, sharply reducing cost and time-to-first-token on repeated requests. Ta…