Tools ·

OpenAI adds prompt caching of up to 12 hours in the API

What happened

OpenAI announced that prompts in the API can now be cached for up to 12 hours, instead of the default 30 minutes, and different durations can be mixed within a single request. The same day, DeepSeek revealed that it keeps caches for up to three days for agents.

Why it matters

If your app or agent keeps sending the same long context (a system prompt, documentation), a longer cache can noticeably cut your bill. Check the link for exact cached-token prices.

Sources

More from this brief