Skip to main content
GrN.dk

Main navigation

  • Articles
  • Cases
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Join my community / free newsletter — sign up here

Breadcrumb

  1. Home

Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses

Illustrated infographic summarizing: Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses

By Greg Nowak. Last updated 2026-08-10.

Prompt caching is no longer something teams can safely leave running in the background and assume it saves money. With GPT-5.6, cache writes cost 1.25 times the uncached input rate, while cache reads receive a 90% discount. OpenAI has also introduced explicit breakpoints and a minimum cache lifetime of 30 minutes.

That changes the question. It is not enough to ask whether caching is enabled. You need to know whether the prefix written on one request is actually reused by the next.

This is particularly relevant to applications with long system instructions, tool definitions, examples, reference documents, retrieval context or growing agent histories. These workloads have plenty to gain from caching. They also have more opportunities for a timestamp, reordered tool definition or frequently changing document to create a new prefix and another billable write.

The economics depend on the next request

Take a cacheable prompt prefix and set aside output tokens and the changing suffix. Writing the prefix costs 1.25 units. Reading it from the cache on a later request costs 0.10 units. Processed twice, the total is 1.35 units rather than 2.00. One successful reuse already covers the write premium.

If the two requests write different versions of the prefix, however, the cost is 2.50 units instead of 2.00. Prompt length alone does not determine whether caching saves money. What matters is whether a write is followed by a read.

The GPT-5.6 release confirms the 1.25-times write rate, discounted reads and 30-minute minimum cache life. The OpenAI implementation guide shows where to find the evidence: writes appear as cache_write_tokens, and reads as cached_tokens. Log both by workflow, prompt version and deployment. An account-wide total is too blunt to reveal which workflow is repeatedly rewriting a large prefix.

Why an almost identical prompt can still miss

GPT-5.6 caches exact prefixes at cache breakpoints. In the default implicit mode, the service places a breakpoint at the latest user or tool message. Unlike earlier OpenAI models, it does not automatically fall back to the longest shared but unmarked prefix.

That distinction matters. Thousands of stable tokens can be followed by one changing timestamp, tool result or user message. If the breakpoint includes that changing content, the full prefix may differ on every request. The practical result is zero cached tokens and another charged write.

The match covers more than the prose you can see. Images and tools must also remain identical. A changed tool description, parameter schema or serialization order can alter the rendered prefix. Anthropic documents a similar structural risk: its hierarchy runs from tools to system content to messages, so changing a tool definition invalidates that layer and everything after it. Its troubleshooting guidance also identifies unstable JSON key ordering as a cause of cache misses.

Provider Evidence to capture Question worth asking
OpenAI GPT-5.6 cache_write_tokens, cached_tokens, breakpoint mode and 30-minute minimum lifetime Does the breakpoint end after stable content, or does it include something that changes on every request?
Anthropic cache_creation_input_tokens, cache_read_input_tokens, breakpoint placement and TTL Are the tools, system content and breakpoint locations identical across calls?
Gemini usage.total_cached_tokens, implicit caching on Gemini 2.5 and newer, and model-specific minimums Does the request put large shared content first, and do similar calls arrive close enough together?
Amazon Bedrock cacheReadInputTokens, cacheWriteInputTokens, checkpoints and TTL details Do the chosen model, endpoint and checkpoint meet that platform's requirements?
A useful cache audit looks for proof of reuse. Feature availability on its own says very little.

Audit real request sequences, not prompt templates

1. Build a baseline for each workflow

Start with representative, production-shaped requests. Capture cache reads, cache writes, uncached input, latency and the final task outcome. Group the results by workflow and prompt version.

This level of detail matters because averages hide expensive exceptions. A healthy account-wide hit rate can sit alongside one agent that continually rewrites a large prefix. Equally, a low-volume workflow with excellent reuse may barely register in the overall numbers.

2. Inspect the prefix the API actually receives

The prompt template in source control is only part of the request. Inspect the rendered payload after variables, retrieved documents, tool schemas and conversation history have been assembled.

Create a stable fingerprint for every candidate prefix, then compare requests that should share a cache entry. When the fingerprints differ, identify the first block that changed. That is usually much more useful than staring at a dashboard and wondering why the hit rate fell.

3. Put stable content before volatile content

Versioned system instructions, fixed examples, unchanged tool definitions and a reference file that stays constant for a run may all belong in the stable prefix. User input, timestamps, new tool results, changing retrieval output and the latest conversation turn belong later. This follows the prefix-ordering guidance shared by OpenAI, Anthropic and Google's Gemini documentation.

Stability always has a time boundary. A knowledge-base snapshot might remain unchanged throughout one agent run but change during the next daily refresh. Give the snapshot and its cache key an explicit version. This keeps different tenants, workflows and document versions from being bundled under an ambiguous routing key.

4. Put breakpoints where reuse is likely

For GPT-5.6, an explicit breakpoint can mark the end of the stable prefix. Explicit request mode disables the automatic breakpoint, so the changing suffix does not become eligible for additional writes. Requests that share the prefix should use the same prompt_cache_key, which OpenAI says provides more reliable matching. The rendered prefix must contain at least 1,024 tokens to qualify.

This configuration is not portable between providers. Anthropic supports automatic caching and block-level breakpoints, with a five-minute default lifetime and an optional one-hour lifetime at a higher write cost. Gemini's Interactions API offers implicit caching only; explicit cache objects require its generateContent API. Amazon Bedrock varies minimum prefix sizes, checkpoint counts, TTLs and request fields by model.

If an application uses more than one provider, its caching layer therefore needs provider-specific policies and telemetry adapters. A single generic caching flag will not capture these differences.

5. Test cost, latency and output quality together

Single requests tell you very little about reuse. Replay realistic sequences: a cold start, the first repeated call, several tool turns, a document refresh and a prompt deployment.

Measure the ratio of read tokens to write tokens, the share of writes followed by a read within the relevant lifetime, cost per completed workflow, and latency for cold and warm requests. Run the same quality evaluation used for the uncached implementation. Moving content around to improve cache matching should not quietly change the system's behaviour.

Make deployment conditional on measured reuse

A long prompt is not automatically a good caching candidate. It still needs to exceed the provider's minimum, remain byte-for-byte or structurally identical where required, and be reused before the opportunity expires. On the other hand, an expensive write can make financial sense when one stable prefix serves many calls during an agent run.

The deployment rule is straightforward: promote a cache configuration only when representative tests show that discounted reads outweigh the write premium without reducing output quality. Keep the telemetry after launch. A small change to a tool schema, timestamp field, document order or breakpoint can alter the economics overnight.

Greg can help instrument read and write tokens, map stable and changing prompt sections, adjust API request construction, place provider-appropriate breakpoints and test production-shaped workloads. The handover can include revised code, per-workflow cache metrics, prompt-version conventions and a deployment runbook with rollback thresholds. That gives the team a cache setup it can inspect and manage, rather than a discount it merely assumes is working.

Related on GrN.dk

  • A stray Set-Cookie can waste your CDN: audit the cache at the edge
  • OpenAI Is Retiring Agent Builder: Save the Workflow, Not Just Prompts
  • When AI writes JSON, one bad field can break the workflow

Need help with this kind of work?

Audit your AI workflow Get in touch with Greg.

Sources

  • GPT-5.6 release and new cache economics
  • OpenAI prompt-caching implementation guide
  • Anthropic prompt-caching documentation
  • Gemini context-caching guide
  • Amazon Bedrock prompt-caching guide
Last modified
2026-08-10

Tags

  • AI integration
  • prompt caching
  • API costs
  • Performance
  • workflow automation

Review Greg on Google

Greg Nowak Google Reviews

 

Illustrated infographic summarizing: Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses
Prompt Caches Have Write Costs Now—Audit What Your Workflow Reuses
2026-08-10

GPT-5.6 makes cache writes billable. See how to spot wasted writes, stabilise prompt prefixes, place breakpoints and measure whether caching pays.

Illustrated infographic summarizing: The AI Crawler in Your Logs May Be Wearing a Borrowed Name
The AI Crawler in Your Logs May Be Wearing a Borrowed Name
2026-08-09

A User-Agent is a claim, not proof. See how to verify AI crawler traffic before it shapes reporting, robots.txt decisions, or WAF exceptions.

Illustrated infographic summarizing: AI Agents Need a Spending Brake, Not Just a Billing Dashboard
AI Agents Need a Spending Brake, Not Just a Billing Dashboard
2026-08-08

AI agent costs can climb inside a single workflow. Runtime budgets, loop detection, outcome metrics, and safe handoffs keep that spending under control.

Illustrated infographic summarizing: Drupal 12 Slipped to December. Drupal 10 Still Runs Out of Road
Drupal 12 Slipped to December. Drupal 10 Still Runs Out of Road
2026-08-07

Drupal 12 arrives as Drupal 10 support ends in December 2026. Moving to Drupal 11.3+ first keeps two mandatory upgrades manageable.

Illustrated infographic summarizing: EU OpenAI Residency Is a Migration Project, Not a Dashboard Toggle
EU OpenAI Residency Is a Migration Project, Not a Dashboard Toggle
2026-08-05

An EU-resident OpenAI API setup needs a new project, regional routing, dependency and state migration, compatibility testing, and clear governance evidence.

Illustrated infographic summarizing: AI Images Need a Chain of Custody, Not Just a Disclosure Label
AI Images Need a Chain of Custody, Not Just a Disclosure Label
2026-08-04

AI image labels are only the endpoint. Learn how to test C2PA credentials through editing, CMS, CDN and agency handoffs while preserving evidence.

Illustrated infographic summarizing: MCP Just Went Stateless: Audit the Integrations Behind Your AI Tools
MCP Just Went Stateless: Audit the Integrations Behind Your AI Tools
2026-08-03

The 28 July 2026 MCP release removes protocol sessions and changes discovery, tasks, caching, OAuth and tracing. A practical guide to auditing the move.

Illustrated infographic summarizing: SEO Trends for 2026: What Actually Changed Since 2024
SEO Trends for 2026: What Actually Changed Since 2024
2026-08-03

A practical guide to what changed in SEO between 2024 and 2026, from AI and multimodal search to Core Web Vitals, privacy and local visibility.

Illustrated infographic summarizing: INP and Green SEO Share a Backlog: Cut the Work Every Visit Repeats
INP and Green SEO Share a Backlog: Cut the Work Every Visit Repeats
2026-08-03

INP and sustainable web work often expose the same waste. Use field data, profiling, caching and performance budgets to build one practical backlog.

Illustrated infographic summarizing: AI crawler policy now has verbs: separate search, RAG, and training
AI crawler policy now has verbs: separate search, RAG, and training
2026-08-02

AI crawler rules now need separate decisions for search, RAG, and training, backed by practical testing across robots.txt, CDNs, WAFs, and CMS controls.

More articles
RSS feed

Footer

  • All articles
  • Contact

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.