AI Cloud Architect

Groundhog Day for AI agents: Prompt caching patterns for using OpenAI models on Amazon Bedrock

AWSHow-to by Claudio MazzoniAWS Artificial Intelligence Blog

Every time an agent takes a step, it re-reads its entire context before acting. Here is how prompt caching for OpenAI models on Amazon Bedrock lets your agent remember, cutting input cost and latency without resending the same tools, instructions, and history every turn.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock prompt caching for OpenAI models lets agents reuse stored tools, instructions and history across turns, sessions and helper agents, instead of resending them.

Who it is for

Teams running multi-turn agents on Amazon Bedrock with OpenAI models that want to cut input cost and latency.

Key points

  • Cached prefix must reach 1,024 tokens; cached prefixes stay eligible for at least 30 minutes after last write or reuse.
  • Cache writes cost 1.25 times the normal input rate; read prices depend on the model.
  • Authors report about 62% lower input cost with implicit caching and about 61% with explicit rolling breakpoints on GPT-6 Astra in a six-turn test workload.

Timeline

  1. What it explainsIntroducing explicit prompt caching for OpenAI models on Amazon Bedrock · AWS · How-to
  2. This postGroundhog Day for AI agents: Prompt caching patterns for using OpenAI models on Amazon Bedrock

Go deeper