Glossary/Routing & GatewaysSemantic cacheReusing a previous response when a new request is sufficiently similar in meaning, skipping the model call entirely.By Kunj Shah·Entry last reviewed2026-09·methodWhat it impliesThe fastest cost reduction available, and the easiest to get wrong: a cached answer goes stale in a way nobody notices. Scope it by embedding similarity *and* a version of everything that affected the answer, and never cache calls with side effects.Tools in this indexPortkeyCloudflare AI GatewayRelated termsModel routerA layer that chooses which model answers a given request, from signals known before the model is called.Provider prompt cachingA discount providers apply when a request repeats a prefix they have already processed.