Better prompt caching for GPT-6

OpenAI Blog News

Summary

OpenAI announces improved prompt caching for GPT-6, offering higher cache hit rates, discounts, and new tools for monitoring and optimization.

Learn how GPT-6 improves prompt caching with higher cache hit rates, new diagnostics, explicit breakpoints, and controls that reduce latency and costs.
Original Article
View Cached Full Text

Cached at: 09/22/26, 10:01 PM

# Better prompt caching for GPT-6 Source: [https://openai.com/index/better-prompt-caching-for-gpt-6/](https://openai.com/index/better-prompt-caching-for-gpt-6/) GPT‑6 enables persistent agents to work for hours on complex tasks, from refactoring codebases to producing well\-researched documents and presentations\. The applications behind these agents make a series of API requests that build on one another, often carrying forward the same instructions, tool definitions, and context from earlier turns\. OpenAI caches that shared context to reuse computation across requests, reducing response times and giving developers discounts of up to 90% on cached input tokens\. With the GPT‑6 family, we launched an improved prompt caching system that delivers higher cache hit rates by default\. We now give cache discounts for eligible shared prefixes reused within a 30\-minute window\. We’re also introducing new tools to help developers monitor cache performance, diagnose misses, and choose how much of a prompt to cache\. ## Monitor caching and diagnose cache misses The new[Prompt Caching Dashboard⁠\(opens in a new window\)](https://platform.openai.com/usage?usage_section=prompt-caching)shows how much of your application’s input is served from cache\. Track hit rates over time and use the input composition chart to compare cached and uncached tokens\. These views help you spot drops in cache hits and evaluate how changes to your application impact caching performance\. When you see an unexpected cache miss, use the[prompt caching diagnostics tool⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching/diagnostics)to understand what happened\. Compare a request with a recent response to identify changes to the model, tools, settings, or input that prevented reuse\. The estimated number of affected tokens helps you assess the size of the impact and decide how you can optimize your integration to maximize cache hit rates\. ``` { "prompt_cache_diagnostics": { "type": "cache_miss", "reason": "tools_changed", "comparison_reusable_tokens": 5629, "cache_missed_tokens": 5629 } } ``` ## Optimize caching for your application **Choose what to cache\.**Explicit cache breakpoints let you choose which prompt prefixes to reuse\. The refreshed[prompt caching guide⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching)explains how to use them, how long cached prefixes remain eligible, and how changes to tools and inputs affect reuse\. **Adjust reasoning effort without breaking cache\.**On GPT‑6 models, you can now[change reasoning effort⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/reasoning?api-mode=responses#change-reasoning-mid-conversation)between responses without breaking cache\. Raise effort for a harder task or lower it for a routine follow\-up by appending a`configuration\_update`while leaving request\-level reasoning effort unchanged\. This lets you adjust how much reasoning a task needs while preserving reusable context\. **Preserve cache as tools and instructions change\.**As your agent’s tool use needs change, keep tool definitions, schemas, and ordering stable so earlier context stays reusable\. Use`allowed\_tools`to make only the relevant tools callable, or set tool\_choice to none when no tools are needed, instead of removing definitions\. Use new developer messages to append new instructions towards the end of the context to override older ones\. See our[guidance on managing tool changes⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching#manage-tools-with-append-only-updates)\. **Prewarm the cache to reduce latency\.**[Prewarming⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching#prewarm-the-cache)prepares known context ahead of time so the model can start responding sooner when a request arrives\. For example, an application can prewarm shared instructions, tool definitions, or reference material during startup, before the user asks their first question\. This moves processing out of the user’s wait time\. These optional controls build on the engine’s default performance, helping you tailor caching to your workload\. ## Get started - Monitor cache hit rates in the[Prompt Caching Dashboard⁠\(opens in a new window\)](https://platform.openai.com/usage?usage_section=prompt-caching)\. - Investigate unexpected misses with the[diagnostics tool⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching/diagnostics)\. - Follow the[prompt caching guide⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching)to improve your setup, or[use Codex⁠\(opens in a new window\)](https://developers.openai.com/api/docs/guides/prompt-caching#how-to-optimize-prompt-caching)to review your code, apply improvements, and measure results\.

Similar Articles

Prompt Caching in the API

OpenAI Blog

OpenAI introduces Prompt Caching, an automatic feature that reduces API costs by 50% and improves latency by reusing recently cached input tokens on GPT-4o, GPT-4o mini, o1-preview, and o1-mini models. The feature automatically applies to prompts longer than 1,024 tokens without requiring developer integration changes.

Introducing GPT-5.1 for developers

OpenAI Blog

OpenAI releases GPT-5.1, a new model in the GPT-5 series that dynamically adapts thinking time based on task complexity, offering 2-3x faster performance than GPT-5 while maintaining frontier intelligence. The release includes extended prompt caching (24-hour retention), new coding tools (apply_patch and shell), and a 'no reasoning' mode for latency-sensitive applications.