OpenAI added a 12-hour prompt caching option to its Responses API on October 20, 2026. Developers can now keep shared instructions, tool definitions and long context cached for at least 12 hours instead of the default 30 minutes, which lowers input costs for requests that repeat the same prefix hours apart.
Key details
- How to turn it on: set
prompt_cache_options.ttlto"12h". It can be overridden for a single breakpoint withprompt_cache_breakpoint.ttl. Leaving both unset keeps the default"30m". - Models: GPT-5.6 and later, which includes GPT-6.1 Sol, GPT-6 Astra and GPT-6 Luna. Older models keep the existing
prompt_cache_retentionparameter (in_memoryor24h); GPT-5.5 and GPT-5.5 Pro support only24h. - Minimum prompt size: 1,024 visible input tokens on GPT-5.6 and later.
- Errors: unsupported values return
400 invalid_request_error.
Pricing
| Cache lifetime | Cache write (total rate) | Cache read |
|---|---|---|
| 30 minutes (default) | 1.25x input price | 0.1x input price (0.05x on GPT-6.1 Sol) |
| 12 hours | 2.5x input price | 0.1x input price (0.05x on GPT-6.1 Sol) |
OpenAI says the write rates are totals, not surcharges added on top of normal input pricing. Upgrading a prefix that is already cached for 30 minutes to 12 hours is charged as a new 12-hour write, with no credit for the earlier one.
When it pays off
A simple illustration, using the rates above: if a long system prompt is reused once an hour for 12 hours, the 30-minute cache expires between calls, so you pay 12 writes at 1.25x, or 15x the input price for that prefix. With the 12-hour cache you pay one write at 2.5x plus 11 reads at 0.1x, about 3.6x. If your requests arrive every few minutes, the default 30-minute cache already stays warm and the 12-hour option mostly adds cost.
Two limits are worth knowing. The 12-hour value is a minimum lifetime, not a promise that every request will reuse the cache or run faster. It also does not set a deletion deadline or change OpenAI’s maximum data-retention policy.
What it means for you
The option is aimed at workloads with large shared prefixes and uneven traffic: internal assistants used during office hours, customer-support bots that carry long policy documents, scheduled agents and batch jobs that run several times a day, and coding agents that load the same repository context. If you build on the OpenAI API, check how far apart your repeated requests are; that gap decides whether 30 minutes or 12 hours is cheaper.
For a wider look at keeping API bills down, see the cheapest ways to use the top AI models in 2026, and our guides to coding and agents and automation.


