Prompt caching helps reduce repeated input processing when multiple requests share the same context. This can improve response latency and reduce input-token costs. Cached input tokens are billed at a lower rate. See Models and Pricing for more information. Support is per-model—check the Prompt Caching column under Available Models.
Chat Completions
Prompt Caching
Improve performance at scale by caching repeated input context.
Prompt caching helps reduce repeated input processing when multiple requests share the same context. This can improve response latency and reduce input-token costs. Cached input tokens are billed at a lower rate. See Models and Pricing for more information. Support is per-model—check the Prompt Caching column under Available Models.
The first request processes the prompt. If the selected model supports prompt caching, eligible context may be cached for reuse in a subsequent request.
The second request keeps the system prompt unchanged, but sends a different user question.
Prompt caching helps reduce repeated input processing when multiple requests share the same context. This can improve response latency and reduce input-token costs. Cached input tokens are billed at a lower rate. See Models and Pricing for more information. Support is per-model—check the Prompt Caching column under Available Models.

