OpenAI API supports 12-hour prompt caching, with caches kept permanently for Codex and Work users
OpenAI's developer account announced that the API now offers an optional 12-hour prompt cache, letting long-running agents reuse instructions, tools and context at the lower cached input rate even when requests are hours apart. Tibo added that for logged-in users in Codex and Work, caches are retained permanently, so returning to an old conversation or resuming a session hours later is guaranteed to hit the cache with no extra penalty.
The author details the API's 12-hour cache and the persistent caching strategies on the Codex and Work sides, offering a direct read on how these affect the cost and experience of long-running agents.
Day 16/
You can now cache for 12h in the API and for logged in users across Codex & Work we keep cache forever and you don’t have any penalty for coming back to an old conversation or resuming after a few hours and are now guaranteed to hit the cache.
View the quoted post on XYou can now choose 12-hour prompt caching in the API.
Persistent agents, like dots, reuse context throughout the day.
You can keep shared instructions, tools, and context cached longer and pay the lower cached-input rate, even when requests are hours apart.
Source: Tibo · x.com