台灣 AI x AEC 情報BY FBI SICENTER
AI × AEC · CURATED INSIGHT

Amazon Bedrock Adds Explicit Prompt Caching for Open-Weight Models

Frontier AI models · Enterprise AI

Amazon Bedrock now supports explicit prompt caching for open-weight models via its Chat Completions API. Teams can define cache breakpoints to reuse static prompt prefixes, lowering token costs and request latency.

AI 生成概念示意圖,非實際產品或事件照片。
AI-generated concept illustration; not an event photograph.

AWS announced that Amazon Bedrock now supports explicit prompt caching for open-weight models accessed via its OpenAI-compatible Chat Completions API. When generative AI applications reuse static context such as system instructions, reference documents, or tool definitions across requests, prompt caching retrieves the precomputed prefix from cache rather than reprocessing it. Bedrock manages prompt caching and supports two modes depending on the model: implicit caching, which automatically detects reusable prefixes on a best-effort basis, and explicit caching, where developers mark specific reusable prefixes using cache breakpoints. With explicit caching, developers can configure prompt_cache_options in request payloads and insert prompt_cache_breakpoint markers on text parts to delimit reusable context. Content before the breakpoint is cached once and reused on subsequent calls, while content following the marker is processed at standard input rates. According to AWS, cached prefix reads are billed at lower rates than standard input tokens, though cache writes may incur higher rates depending on the model. Using explicit caching prevents dynamic user queries from being unnecessarily written to cache, avoiding higher write fees on models with differentiated pricing. Bedrock also reports cache activity per response through prompt_tokens_details, exposing cached, written, and uncached token counts.

Key takeaways

  • Amazon Bedrock supports explicit prompt caching for open-weight models via its Chat Completions API.
  • Developers can set explicit cache breakpoints to reuse static context across multiple requests while processing dynamic input normally.
  • Cache reads are billed at lower rates than standard input, reducing latency and recurring token costs.
  • API responses report token cache activity, allowing teams to verify cached, written, and uncached tokens.

Source:AWS Machine Learning Read the original ↗

Prepared, checked and automatically published by AI; not individually reviewed by a human.

← All articles