OpenAI has announced an optional 12-hour prompt caching feature for GPT-5.6 and later models in the Responses API. The feature enables developers to reuse shared context at a lower rate even when requests are spaced several hours apart, while keeping the default cache duration at 30 minutes and allowing both durations to be combined within the same request.
Core Feature Release
OpenAI has officially introduced an optional 12-hour prompt caching feature for GPT-5.6 and subsequent models in the Responses API. Through this mechanism, developers can still reuse shared instructions, tools, and contextual information at a lower cached input rate even when requests are separated by several hours.
Mixing Strategy and Usage Rules
- Default and Mixing Mechanism: The system's default cache retention duration remains 30 minutes, and developers can flexibly mix both cache durations within the same request. For instance, static shared instructions can be configured with a 12-hour cache, while newer, dynamic conversational content uses a 30-minute cache.
- Trigger Conditions and Duration Definition: Cache reuse requires an exact match at the beginning of the prompt, with a minimum cacheable length of 1,024 visible input tokens. OpenAI also clarified that 12 hours represents a minimum retention period rather than a mandatory expiration deadline.
Pricing Structure
- Write Rates: The cache write rate for 12-hour prompt caching is 2.5x the standard input rate, compared to 1.25x the standard input rate for 30-minute caching.
- Read Rates: Cache read rates remain unchanged regardless of the selected cache duration.