# OpenAI API adds 12-hour prompt caching at 2.5x write price

> OpenAI's Responses API now offers 12-hour prompt caching on GPT-5.6 and later. Writes cost 2.5x the input price; the 30-minute default stays.

- URL: https://acceptallhq.com/diff/2026-10-20-openai-12-hour-prompt-caching/
- Section: The Diff
- Published: 2026-10-20T15:02:00-04:00
- Author: MK (https://acceptallhq.com/about/)
- Tool: OpenAI API
- Source: https://developers.openai.com/api/docs/changelog

## What changed

OpenAI's API changelog for October 20 adds a 12-hour prompt caching option. It keeps shared instructions, tools and context cached so requests hours apart still get cached-input pricing. Per the prompt caching guide, you ask for it with `prompt_cache_options.ttl` set to `12h` in the Responses API, on GPT-5.6 and later. The default stays `30m`. A 12-hour cache write costs 2.5x the input token price, against 1.25x for the 30-minute write. Reads stay at 0.1x the input price on most of these models, and 0.05x on GPT-6.1 Sol.

## Why it matters if you ship with an agent

Nothing changes until you set the option. It pays when the same long system prompt comes back after a gap: a nightly job, a scheduled agent, a reviewer that runs on each push. Writes cost twice as much, so count the gaps before switching. Upgrading an existing 30-minute entry charges a fresh 12-hour write, so set it from the first request, not after.
