Aabha AI Academy

AI Development

OpenAI's API can now keep cached prompts for 12 hours, at a higher price

Useful if you reuse the same instructions throughout the day, but do the maths before switching it on.

Many AI apps send the same long instructions, tool definitions or reference documents with every request. Prompt caching lets the provider reuse that repeated input more cheaply. On 20 October OpenAI added a 12-hour cache option to its Responses API, for apps that reuse context across requests made hours apart.

Here's how the cost works for GPT-5.6 and later models. Writing to the default 30-minute cache costs 1.25 times the normal input price, and writing to the 12-hour cache costs 2.5 times. Those are the total rates, not extra fees on top. Reading from the cache costs the same either way.

So the longer cache only pays off if the same context gets reused often enough to cover its higher upfront cost. Measure your actual cache reads and total spend rather than assuming longer is cheaper.

Two points of fine print: 12 hours is a minimum lifetime, not a deadline for deletion, and OpenAI doesn't promise faster responses on every request.

Sources: OpenAI API changelog · Prompt-cache lifetime

All AI news