Vibeleaderboard
← All Intel
Intel / article

Response Caching

Source
openrouter.ai
Author
OpenRouter
Date

Context

OpenRouter's response cache reuses an entire model response when an identical request arrives before the stored result expires. Caching is opt-in, enabled per request with a header or through a preset, and the feature was described as beta. The first request reaches the provider and is billed normally; a cache hit returns the saved result without another provider call or generation charge. Matching includes the request body, model, key, and mode, so similar prompts are insufficient. The announcement describes this as useful for repeated tests and retries: completed calls can be replayed while new requests still require generation.

Terms in this piece · Glossary
  • API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.
  • streaming — Sending a model's response token by token as it is generated, so the reader sees text immediately instead of waiting for the whole answer.
  • Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
  • 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.

Get the Brief

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

Read the source openrouter.ai
More from OpenRouter
Recommended reads