Use prompt caching with open-weight models on Amazon Bedrock
View original on aws.amazon.comSpinGraph describes patterns in a story; it does not establish an author's intent. Beneficiaries, frames, omissions, and likely AI summaries are analysis or predictions unless separately verified. AI recall is marked observed only after a recorded check. Read our methodology →
Overview
Many generative AI applications resend the same long context on every request. Prompt caching lets open-weight models on Amazon Bedrock reuse it to reduce input cost and latency. This post shows implicit and explicit caching through the Chat Completions API and applies caching to an OpenCode coding agent session.
SpinGraph analysis pending — check back after processing.
Ask AI about this story
Opens with the SpinGraph .md URL and structured context — one click, prompt included.
More from AWS Machine Learning Blog
View all →- Introducing the Amazon Bedrock Trusted Access API with Anthropic’s Enterprise Frontier Safeguards and Enterprise Data Controls
- Meta ads is now available in AWS Quick
- Cut self-hosted LLM cost and latency with the distributed KV caching agent skill
- New in AWS Quick: More capable flows, an updated web experience, and agents that work together
- Use Kimi Code CLI with models on Amazon Bedrock
- Amazon SageMaker Inference: 2026 launches in review, part 2
Markdown (.md) · JSON-LD schema (.json) · Machine-readable for AI & GEO