Skip to content
Tibo· @thsottiaux · X·Top PickAI score65

OpenAI API supports 12-hour prompt caching, with caches kept permanently for Codex and Work users

AI brief

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.

Why it matters

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.

Full text · Original

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.

QuotingOpenAI Developers@OpenAIDevs

You 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.

View the quoted post on X

Source: Tibo · x.com

Part of the story

See the full story
OpenAI API offers optional 12-hour prompt caching; Codex and Work caches kept permanently