OpenAI API adds 12-hour prompt caching option alongside 30-minute default

OpenAIDevs · x · 2026-10-21

OpenAI's developer account announced a new 12-hour prompt caching option for the API, on top of the 30-minute default. Both TTLs can be mixed in one request: 12h for shared instructions, 30 minutes for newer conversation content. Per the docs, if you reuse the same context throughout the day, savings from repeated reuse can significantly outweigh the extra cost of 12-hour caching. Documentation is live on developers.openai.com, with Markdown versions available by appending .md to page URLs.

Related event: OpenAI API Adds 12-Hour Prompt Caching Option(2 posts)→

Original post →

More from Infra

Infra channel →