OpenAI API adds 12-hour prompt caching for persistent agents

jeppa35 · reddit · 2026-10-21

OpenAI's developer account announced 12-hour prompt caching in the API, up from the 30-minute default. You can mix both in a single request: 12h for shared instructions, 30 minutes for newer conversation content. Persistent agents that reuse context all day — like dots — can keep shared instructions, tools, and context cached longer and keep paying the lower cached-input rate even when requests are hours apart. The accompanying Reddit post adds the cost logic: when the same context is reused repeatedly across a day, savings from cache hits significantly outweigh the extra 12-hour caching cost.

Related event: OpenAI API Adds 12-Hour Prompt Caching for Long-Running Agents(4 posts)→

Original post →

More from Models

Models channel →