Two switches must agree
The organization cache policy and the selected route must both be enabled. New routes and new organization policies start with caching off.
Many users ask the same question in slightly different words. A semantic cache can return an approved earlier response without making another provider request, while keeping every hit visible in your usage trail.
Exact text matching misses questions that mean the same thing. LLMRegistry compares a protected request representation inside a narrow policy boundary, then applies the stricter similarity and expiration rules from the organization and route.
The organization cache policy and the selected route must both be enabled. New routes and new organization policies start with caching off.
Organization, project, route, operation, and response-changing controls form the lookup boundary. One project cannot reuse another project’s entry by accident.
Response headers and the request ledger show whether the cache answered, found no match, or stayed out of the way because the request was not eligible.
A cache check stays inside the normal authorization and spending flow instead of becoming a hidden shortcut.
The gateway checks the API key and route first. Direct model calls, media, embeddings, multimodal chat, and unsupported operations bypass the semantic cache.
The cache compares the request with recent eligible entries from the same organization, project, route, operation, and request controls.
A qualifying hit decrypts the stored response. A miss calls the normal model path and may save the approved response for later use.
A hit writes a normal request record with its original token counts, a cached outcome, and zero provider cost. It does not disappear from reporting.
Caching response content is different from the default request path, so the feature is explicit and bounded.
Start with caching off, define the safe boundary, and turn it on only for routes whose responses can be reused.
Get started