Skip to content
Trending storyDeveloping

OpenAI adds 12-hour prompt caching option to its API

2 articles2 sourcessince Oct 20Last article 1h ago ·

Overview

AISummary of 2 articles

OpenAI adds a 12-hour prompt caching option to its API, letting developers keep shared instructions, tools and context cached for hours between requests.

OpenAI's API changelog says cached-input pricing stays available across that window and that 12-hour cache writes cost 2.5 times the input token price.

OpenAI Developers says on X that cached input is billed at the lower cached-input rate even when requests are hours apart, aimed at persistent agents that reuse context throughout the day.

Written by AI from the articles below · updated Oct 20, 2:09 PM ET

Check the sources:

Article timeline

The articles in this story. Times are ET.

Oct 20
  1. OpenAI DevelopersOfficial
    OpenAI API adds 12-hour prompt caching for persistent agents

    AIOpenAI says the API now offers 12-hour prompt caching, letting developers keep shared instructions, tools, and context cached for hours between requests. Cached input is billed at the lower cached-input rate even when requests are hours apart, which suits persistent agents that reuse context throughout the day.

  2. OpenAI API ChangelogOfficial
    OpenAI adds 12-hour prompt caching option to its API

    AIOpenAI says developers can now choose 12-hour prompt caching in the API, which keeps shared instructions, tools, and context cached longer, even when requests are hours apart. The longer cache keeps cached-input pricing available across that window, and 12-hour cache writes cost 2.5x the input token price.

Heat Trend

Not enough continuous observations to show a trend yet.