OpenAI's 12-hour prompt cache costs 2.5x to write, and the 30-minute one already renews on every read
A 12-hour write costs exactly two 30-minute writes, guarantees no cache hit, and sets no deletion deadline.
On October 20, OpenAI added a second prompt-cache lifetime to the Responses API. The changelog entry is one line: "12-hour cache writes cost 2.5x the input token price." The prompt-caching guide has the rest, and the most useful detail is a quiet one: the default 30-minute cache already renews itself every time it is read.
The knob
The new setting is prompt_cache_options.ttl, which takes "30m" (the default) or "12h". A per-breakpoint override, prompt_cache_breakpoint.ttl, sets the lifetime for one part of the prompt. Any other value returns 400 invalid_request_error. The guide notes that this is separate from the older prompt_cache_retention parameter.
{
"model": "gpt-6.1-terra",
"prompt_cache_options": { "ttl": "12h" }
}
The option works only in the Responses API, on GPT-5.6 and later. Earlier models stay on prompt_cache_retention (in_memory or 24h) and cannot use "12h". The minimum cacheable prefix is 1,024 visible input tokens.
What it costs
The guide puts it plainly: "In the Responses API, you can choose a 12-hour minimum lifetime at a write rate of 2.5× ordinary input." A 30-minute write costs 1.25×. These are the full write prices, not surcharges added to ordinary input. Reads cost the same under both lifetimes: 0.1× ordinary input, or 0.05× on GPT-6.1 Sol and GPT-6.1 Terra.
Usage reports the split. cached_tokens counts billed reads only. cache_write_tokens is the total written, and cache_write_tokens_details breaks it into ttl_30m_tokens and ttl_12h_tokens, which do not overlap. The guide warns against counting cache_write_tokens a second time after you have added up its parts.
When it pays
This part is our arithmetic, not OpenAI's. A 12-hour write costs exactly two 30-minute writes (2.5× against 2 × 1.25×). The 30-minute cache only has to be rewritten when it lapses, and the guide says: "A 30-minute read refreshes coverage to at least 30 minutes after that read." So a prefix hit at least every half hour stays warm on the default setting and never needs the long lifetime.
The 12-hour option wins when traffic has gaps. If a prefix would otherwise lapse and be rewritten at least twice within 12 hours (a nightly batch, an internal tool used a few times a day), the long write breaks even at two rewrites and saves money after that. On Terra, at $1 per million input tokens, that is $2.50 per million for one 12-hour write against $1.25 for each 30-minute write.
Two rules can erase the saving. "Upgrading valid 30-minute coverage to 12 hours charges a new 12-hour write for those tokens," with no credit for the earlier write. Within a single request, each token is billed once, at the longest lifetime of any write that covers it.
What it does not promise
The 12-hour value is a minimum, and it buys no guarantee of a hit. The guide says: "It does not guarantee that every request reuses stored KV tensors or has lower latency." Locality matters too: "Cached states live on individual machines, where traffic above 15 requests per minute can lead to overflow routing," and a request routed to another machine can miss the cache. There is no way to clear a cache by hand, and cached tokens still count against tokens-per-minute limits.
On data retention, the guide says caching is compatible with Zero Data Retention and stores KV tensors rather than prompt text, held for at most 24 hours. The 12-hour setting does not shorten that: "OpenAI may retain entries longer than the requested minimum; "12h" does not set a deletion deadline." Teams that chose 12 hours expecting their data to be deleted after 12 hours should read that line twice.
Primary sources: OpenAI API changelog, OpenAI prompt caching guide, GPT-6.1 Terra model page, read 2026-11-02.