OpenAI extends prompt caching in API to 12 hours
OpenAI extends prompt caching in API to 12 hours
OpenAI has expanded prompt caching in its API: caches can now persist for up to 12 hours, and indefinitely for authorized Codex and Work users.
OpenAI has expanded prompt caching capabilities in its API. Prompt caches can now persist for up to 12 hours, while authorized users of Codex and Work can keep cache entries indefinitely.
This means developers can return to an older task after several hours and continue work with a guaranteed cache hit.
In practice, this reduces repeated context processing and can help avoid wasting usage limits.
More updates like this would be welcome.
Why it matters
AnalysisLonger prompt caching lowers repeated context-processing costs and makes long-running AI workflows more predictable, especially for developers working with large prompts and multi-hour sessions.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Prompt Caching & KV Cache Reuse
A technology utilized by modern inference engines and cloud APIs (Anthropic, OpenAI, DeepSeek, vLLM) that stores precomputed attention matrices (KV Cache) of static prefixes, reducing processing costs by 80–90% and decreasing time to first token (TTFT) by 4–8 times.
Prompt Caching Architecture & Economics
A methodology for designing prompts focused on maximizing hardware cache hits for prefixes (Prefix Caching) in Anthropic, OpenAI, and DeepSeek, achieving a 90% cost reduction and 80% speedup.
OpenAI Releases mcpfs: Turning MCP Servers into a Filesystem
OpenAI has released mcpfs, an open-source Rust project that exposes MCP servers as a filesystem for AI agents.
OpenAI Models Return to Grok Build
Grok Build has restored access to OpenAI models, including GPT-6 Astra and Sol 6.2, but third-party models remain outside X subscription limits.