第16天/ 现在你可以在API中缓存12小时,对于Codex和Work的登录用户,我们永久保留缓存,并且你不会因...而受到任何惩罚
产品与工具 · 2026/10/21
OpenAI 宣布 API 现在支持 12 小时的提示缓存,而 Codex 和 Work 的登录用户可永久保留缓存,且返回旧对话或几小时后恢复不会受到惩罚,并保证命中缓存。API 用户可选择 12 小时缓存,适用于持久性代理等场景,可长时间缓存共享指令、工具和上下文,并享受更低的缓存输入费率。
该更新显著降低了长时间间隔请求的缓存成本,尤其有利于持久性代理和需要复用上下文的场景,提升了开发效率和成本效益。
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.<hr />OpenAI Developers: 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.