cd /news/artificial-intelligence/openai-12-hour-cache-api-available-a… · home › topics › artificial-intelligence › article
[ARTICLE · art-154169] src=twitter.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

OpenAI – 12 hour cache (API) available and "cache forever" for work/codex users

OpenAI now offers a 12-hour prompt caching option in its API, announced by Tibo (OpenAI staff) on X as "Day 16" of a series, and keeps cache indefinitely for logged-in users across Codex and Work with no penalty for resuming an old conversation after a few hours. OpenAI said developers can keep shared instructions, tools and context cached longer and pay the lower cached-input rate even when requests are hours apart, a setup it said suits persistent agents that reuse context throughout the day.

read1 min views3 publishedOct 21, 2026
OpenAI – 12 hour cache (API) available and "cache forever" for work/codex users
Image: source

Tibo on X: "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." / X

Tibo on X: "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."

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.

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.

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.

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.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @openai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/openai-12-hour-cache…] indexed:0 read:1min 2026-10-21 · —