Exact Cache

Exact & Semantic AI Response Caching: Zero Provider Cost on Repeat Queries

Cloptima's exact response cache matches identical requests within a policy-scoped namespace and serves them without a provider call — with a Monitor only mode that shows the savings before you serve anything.

Start freeTalk to the founders
app.cloptima.ai/llm/spend
Exact response cache
Policy: docs-search · production
Illustrative
Cache hit rate
5.3%
+1.2pts this month
Realized savings
$114.31
provider calls skipped
Mode
Enforce
Blast-radius preview before save
Affected apps
3Scoped
Eligible request volume
96.4K / moObserved
Projected monthly savings
$131.00Preview
The problem

Paying the provider twice for the same answer

Identical requests, such as the same support macro, classification prompt, or tool-call pattern, are common in production LLM traffic. Caching them blind risks serving one customer's answer to another, so teams need scope, safety, and savings proven first.

  • Duplicate requests billed by the provider every time
  • No safe way to scope a cache across tenants, apps, or environments
  • Enforcing a cache blind risks stale answers with no visibility
  • No way to know the savings before you commit
How it works

Fingerprint, match, skip the provider call

Cloptima fingerprints eligible requests within a policy-scoped namespace, then checks for an exact match before the provider is called. In Serve mode a hit skips the provider entirely, so that request's cost becomes realized savings instead of spend.

  • Namespace scoped by organization, app, team, environment, model, and provider
  • Monitor only: see hit rate and would-be savings with no behavior change
  • Serve: return the cached response and skip the provider call
  • Miss reasons, plus a savings estimate before you save the policy
Day one

Prove it in Monitor only first

Turn on Monitor only for one high-volume, repeat-heavy app — a support macro or a classification endpoint is a good first target — review a week of hit-rate and savings data, then read the policy's savings estimate before switching that scope to Serve.

Architecture

On the hot path, adding nothing to it

Cache lookups sit on the hot path but add no latency budget beyond the lookup itself — a miss falls straight through to the provider. Cloptima's policy authoring flow keeps cache scope internal, uses real observed hit-or-would-hit signal where available, and never asks customers to reason about gateway routes.

Developer quickstart

Keep your SDK, change the base URL

The gateway speaks the OpenAI and Anthropic protocols. Point your existing client at it and add attribution headers.

bash
# First request: Cache MISS (forwarded to provider, ~450ms)
curl -i https://api.cloptima.ai/v1/ai/chat/completions \
  -H "Authorization: Bearer $CLOPTIMA_PAT" \
  -H "X-Cloptima-Team: customer-ops" \
  -H "X-Cloptima-App: faq-assistant" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5.6", "messages": [{"role": "user", "content": "What is our enterprise refund SLA?"}]}'

# Repeat request: Cache HIT (served from gateway cache, <10ms, $0.00 provider cost)
# Response headers:
# HTTP/1.1 200 OK
# x-cloptima-cache: hit
Get started

Launch path

Turn on the exact cache in Monitor only for a policy scope, choose how long answers are kept, and review hit rate and savings for a rollout period. Then switch the same scope to Serve once the savings estimate and audit history look right.

FAQ

Questions teams ask

Put your first governed call through in five minutes

Point your SDK at the gateway, bind a policy, and watch the first call land on the ledger.

No credit card required
5-minute setup
Free plan