Vibeleaderboard
← All Intel
Intel / post

OpenAI API adds selectable 12-hour prompt caching

Source
x.com
Publisher
OpenAI
Date
From the Daily Brief

OpenAI's API now lets developers choose 12-hour prompt cache retention in place of the 30-minute default, and a single request can mix the two. OpenAI pitches it at persistent agents, such as its own dots, that reuse the same context throughout the day. Under the short default, a gap of more than half an hour between requests meant the shared prefix of instructions, tool definitions and background context fell out of the cache and was billed at the full input rate on the next call. With the longer window, that prefix keeps the lower cached-input price even when requests arrive hours apart, while fast-changing conversation turns can stay on the 30-minute setting. The longer retention carries an extra caching cost that the announcement does not quantify, so the saving depends on how large the shared prefix is and how often an agent goes quiet. For an agent that idles for hours between bursts of work, the cache window now decides whether that context is billed at the cached rate or the full one.

Read the 2026-10-22 Brief →
OpenAIDevs@OpenAIDevs

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.

Context

OpenAI says developers can now choose 12-hour prompt caching in its API. lets an that keeps sending the same material, such as its standing instructions, tool definitions and shared , pay the lower cached-input rate for that repeated input instead of the full price. The discount only applies while the cache still holds that material, so how long it lasts decides which workloads benefit.

That timing problem is what the announcement targets. OpenAI's example is persistent agents, naming one called dots, which return to the same context throughout the day. With the 12-hour option, the post says, their shared instructions, tools and context can stay cached and keep getting the lower rate even when requests are hours apart. The post does not give the default cache lifetime, the cached-input price, any extra cost for choosing the longer option, or which models support it. It establishes the new choice but not the size of the saving.

It follows an earlier OpenAIDevs post on GPT-6 prompt caching, which raised default cache-hit rates and added diagnostics for spotting what prevented reuse. That change was about how often requests reuse the cache. This one is about how long cached material survives between requests.

Terms in this piece · Glossary
  • prompt caching — Reusing the model's processed form of a repeated prompt prefix so subsequent calls skip re-reading it, cutting cost and latency substantially.
  • Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
More from OpenAIDevs
Recommended reads