Extend GPT-5.1 prompt cache retention to 24 hours

Use prompt_cache_retention='24h' for faster, cheaper follow-up questions.

ChatGPTParaphrased
What
Set to '24h'
Where

API call parameter `prompt_cache_retention`

Why

Allows prompts to remain active in the cache for up to 24 hours, reducing latency and cost for subsequent related requests in long-running interactions.

What it does and when to use it

Extend prompt caching in GPT-5.1 to 24 hours using the `prompt_cache_retention='24h'` parameter. This significantly reduces latency and cost for follow-up questions in multi-turn conversations, coding sessions, or knowledge retrieval.

Why it works

A longer cache retention means more follow-up requests can reuse previously processed information, avoiding redundant computation and network calls, leading to faster and cheaper responses.

When not to use it

For single-turn requests or when the context of follow-up questions is unlikely to overlap with previous ones.

Sources and credit

First seen on Subvolts Nov 12, 2025. Updated Sep 11, 2026. Spotted a problem? Tell us.

Where it shows up
Terms used

Prompt Caching

Related in the PlaybookPlaybook →

The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.

Questions people ask

Which AI tools does this work with?
The sources used it with ChatGPT.
Where did this come from?
OpenAI (OpenAI News). Subvolts collected, normalized and credited it; the link above opens the original.