Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

AWS: prompt caching patterns for OpenAI models on Amazon Bedrock

The guide explains that every agent step resends the full history, including tool definitions, instructions and past results, so cost grows each turn. Prompt caching reuses the stable part of the prompt at a fraction of the input price. It walks through…

Published Read the original

Why it matters

Ordering prompt sections correctly can cut long-running agent costs several times over.

What happened

1 min read

The guide explains that every agent step resends the full history, including tool definitions, instructions and past results, so cost grows each turn. Prompt caching reuses the stable part of the prompt at a fraction of the input price. It walks through caching patterns across an agent's life, from the first turn to adding tools and spawning helpers, using OpenAI models on Bedrock.

inscraper analysis

Our analysis

The principles apply to any provider: put stable content first and volatile content last. The small news angle is that OpenAI models on Bedrock support prompt caching. A good explainer for anyone new to agent costs.

More in Guides