OpenRouter'scaching guide explains why repeating the same prompt does not necessarily produce a cache saving: the next request may reach a different provider that lacks the stored content. Sticky routing tries to send subsequent requests back to the provider that holds it.
A stable SessionOne conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.Full definition →_id identifies the conversation even when an agent rewrites its opening messages. With that IdentifierA value that names exactly one record within a stated system, such as S-003 in the committee's table.Full definition →, routing becomes sticky after the first successful request. The reusable prompt content must still satisfy the provider's caching requirements and remain available before expiry. The cached_tokens usage FieldOne named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.Full definition → shows whether reuse actually occurred; keeping requests together is only one part of making caching work.
Terms in this piece · Glossary
Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.
Identifier — A value that names exactly one record within a stated system, such as S-003 in the committee's table.
Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
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.