Optimizing cost and latency with Amazon Bedrock prompt caching for Anthropic models
AWS•How-to••by Daniel Abib•AWS Artificial Intelligence Blog
Prompt caching in Amazon Bedrock can cut input token costs by up to 90% when you repeatedly send the same context to foundation models. This post walks through six practical prompt caching scenarios using the Converse API: message content, system prompt, tool definition, mixed TTL, tenant isolation, and LangChain integration.
Bedrock prompt caching is shown through six Converse API scenarios: message content, system prompt, tool definitions, mixed TTL, tenant isolation, and LangChain.
Who it is for
Teams running Claude on Amazon Bedrock with repeated long context, system prompts or tool schemas who want lower input token cost and time-to-first-token.
Key points
AWS says cache reads cost 90% less than standard input; cache writes cost 25% more (1-hour TTL: 100% more).
Minimum cacheable checkpoint is 1,024 tokens for Sonnet 4.5/4.6 and 4,096 for Opus models.
Cache entries are scoped to an AWS account and Region; cross-Region inference profiles can raise cache write frequency.
Mixed TTL requires longer-TTL checkpoints to come before shorter ones.
AI:Bedrock prompt caching for OpenAI models lets agents reuse stored tools, instructions and history across turns, sessions and helper agents, instead of resending them.
AI:AgentCore agents can cut per-turn token use by offloading large JSON to S3, paging tool results on demand, and compacting dictionary outputs into descriptors.
AI:Bayer Crop Science's Agentic Decision Engine uses Bedrock AgentCore to let staff ask natural language questions about its ML workflow platform, with 22 specialist agents and about 80 percent of questions resolved without an engineer, per AWS.