---
title: "OpenAI’s Responses API can keep prompts in cache for 12 hours from GPT-5.6 onwards"
canonical: "https://aiaulis.com/en/juttu/openai-s-responses-api-can-keep-prompts-in-cache-for-12-hours-from-193c73b91072/"
language: "en"
published: "2026-10-21T04:04:34.203400+00:00"
publisher: "AI Aulis"
label: "AI GENERATED"
---

# OpenAI’s Responses API can keep prompts in cache for 12 hours from GPT-5.6 onwards

**AI GENERATED** · Written by AI

developers.openai.com, x.com · 2 sources · Sources published: 20 October 2026 · Some source publication dates are unknown

In OpenAI’s Responses API, developers can keep a prompt in the cache for at least 12 hours with GPT-5.6 and later models. Writing to the cache costs 2.5 times the ordinary input rate, and reading from it costs the same as with the default 30-minute lifetime.

The OpenAI Developers account said on X on 20 October that developers can choose a 12-hour prompt cache lifetime in OpenAI’s API. The default remains 30 minutes, and a single request can use both: 12 hours for shared instructions and 30 minutes for newer conversation content. OpenAI’s documentation says the option is available in the Responses API for GPT-5.6 and later models.

Prompt caching works like this: when a model processes input, it computes intermediate states for the tokens. If the next request begins with exactly the same content, such as the same instructions and tool definitions, the model can reuse the stored states instead of recomputing the beginning. The input then costs less and the response starts sooner.

For these models, writing to the cache costs more than ordinary input, and reading from it costs much less. The multipliers in the table express the total price, not a surcharge on top of the ordinary input rate, the documentation says.

|  | 30 min (default) | 12 h |
| --- | --- | --- |
| Write, × ordinary input rate | 1.25 | 2.5 |
| Read, × ordinary input rate | 0.1 | 0.1 |

*Source: OpenAI’s prompt caching documentation, GPT-5.6 and later models. The read multiplier of 0.1 applies to most of these models; on GPT-6.1 Sol it is 0.05.*

A write to the 12-hour cache therefore costs twice as much as a write to the 30-minute cache, but reads cost the same. The OpenAI Developers account said that if the same context is used throughout the day, savings from repeated use can significantly outweigh the extra cost of 12-hour caching. The documentation advises weighing the higher write rate against the cost of writing the prompt prefix to the cache again once the 30-minute cache has expired.

Lifetimes are set per breakpoint. A breakpoint marks the point up to which the start of the prompt is stored in the cache. The lifetime setting given for the request (ttl) applies to any breakpoints that have no lifetime of their own. OpenAI recommends placing material used all day at the start of the prompt with a 12-hour breakpoint, followed by session context that changes more often, with a 30-minute lifetime.

Order affects the price. A breakpoint covers the whole prompt up to that point. Within one request, each token is billed only once, and if several breakpoints cover it, the longest lifetime sets the price. If a 12-hour breakpoint comes after a 30-minute one, the whole prefix is billed at the 12-hour rate. Extending a valid 30-minute cache to 12 hours is billed as a new write, with no credit for the earlier write. When a request made with a 30-minute lifetime reads a valid 12-hour entry, the 12-hour clock does not restart and no new write charge applies. The entry remains valid for at least 30 minutes after the read.

The 12-hour minimum lifetime determines whether a read is billed at the lower rate. The documentation says it does not guarantee that every request actually reuses the stored states or gets a faster response. A request can use the cache only if it lands on a machine that holds a matching valid entry. Nor does the setting determine when entries are deleted: OpenAI may keep them longer.

Older models still control the lifetime through a separate retention setting (values in_memory or 24h), and there is no separate charge for writing to the cache.

## What this is based on

1. [Prompt caching | OpenAI API](https://developers.openai.com/api/docs/guides/prompt-caching)
   Publisher: developers.openai.com · source publication time unknown · retrieved 21 October 2026 at 05:25 (UTC+03:00) · discovery channel: web
2. [You can choose “12h”, keep the 30-minute default, or mix both in one request: 12h for shared instructions, 30 minutes for newer conversation content. If you need to reuse the same context…](https://x.com/OpenAIDevs/status/2112603918522105890)
   OpenAIDevs · Publisher: x.com · published 20 October 2026 at 20:56 (UTC+03:00) · retrieved 21 October 2026 at 04:43 (UTC+03:00) · discovery channel: X

Canonical: <https://aiaulis.com/en/juttu/openai-s-responses-api-can-keep-prompts-in-cache-for-12-hours-from-193c73b91072/>

---

AI Aulis is a newspaper written and checked by artificial intelligence. No human reads the stories before publication, and AI can make mistakes: check important facts in the story's original sources. Publisher: Fiquan Holding Oy. Responsible editor: Jukka Haikala.
