New InstaDataNewsOur live magazine on AI, Agentic AI & Robotics — updated daily Explore the Magazine ↗
Skip to content
General Blogs

Prompt Caching Cost: Why Routing Can Erase Your Savings

Dr. Subhabaha Pal (Guest Author)
6 min read
Prompt Caching Cost: Why Routing Can Erase Your Savings

On 27 November 2026, a public Token Price Index reported that its blended frontier benchmark stood at $1.65 per million tokens, down 12.7% over 30 days. The index itself warns that it tracks benchmark list prices, not what any organisation actually pays. That gap is where your prompt caching cost hides. Unit prices are falling, but many teams’ AI invoices are not, because they send more tokens, repeat the same context on every turn, and send too many requests to expensive models. Prompt caching is the lever that targets the repeated context. Used carelessly, though, it can be undone by the very routing that is supposed to save money.

Why Cheaper Tokens Have Not Made Bills Smaller

Token prices have fallen fast, yet spend keeps climbing. Agents make dozens of model calls per task, and each call re-sends the system prompt, tool definitions and conversation history. A coding agent that sends a 20,000-token codebase summary on every turn pays for that summary again and again, even though it barely changes.

The same pattern shows up in how vendors now bill. On 23 November 2026, Google began billing Gemini API file reads only for the slice the model inspects, such as selected page ranges or spreadsheet cells, according to a DEV Community roundup of recent LLM billing changes. The lesson is that input volume is the cost driver, and caching and routing both need to target it.

Developer checking prompt caching cost savings on repeated AI requests in an agent workflow

What Prompt Caching Cost Looks Like in Practice

Providers now price the repeated part of a prompt differently from fresh input. The rules differ by vendor, so check the current pricing page before you build a budget. Two of the most widely used APIs work like this:

  • Anthropic (Claude): per Anthropic’s documentation, a cache write with a 5-minute TTL costs 1.25 times the base input price, and a cache write with a 1-hour TTL costs 2 times the base input price. A cache read costs 0.1 times the base input price on most models, with lower multipliers on some newer ones. The default lifetime is 5 minutes, refreshed at no extra cost each time the cached content is used. A 1-hour option is available by setting "ttl": "1h" in cache_control. Minimum cacheable prompt lengths vary by model, from 512 to 4,096 tokens.
  • OpenAI: caching is automatic on supported models, with no setup. Cached reads cost 0.1 times the ordinary input rate on most listed models, and 0.05 times on some of the newest ones. For GPT-5.6 and later, the minimum cacheable prompt is 1,024 tokens, and the default lifetime is 30 minutes, with an option to request up to 12 hours at a higher write rate.

The key point is that the discount only applies when the same prefix is read from the same model’s cache. A cache belongs to a model on a provider. Send the identical prefix to a different model and you pay full price for it again.

The Break-Even Maths

Take a static prefix of system instructions and history, and call it 1 unit of input cost. Compare two requests that reuse it:

  • No caching: 2 requests cost 2.00 units.
  • 5-minute cache: the write costs 1.25 units, and the read costs 0.10 units. Total: 1.35 units, about 32.5% less. One reuse is enough to pay back the write.
  • 1-hour cache: the write costs 2.00 units, so the first reuse alone leaves you about 5% above the uncached cost. You need at least two reads before it pays off.

These numbers are simple arithmetic from Anthropic’s published multipliers, and they explain why an agent that re-reads the same context within a few minutes benefits so much, while a one-off request with no follow-up gains nothing.

Team planning model routing decisions to protect cache hits and reduce LLM spend

Where Routing Quietly Wastes the Cache

Here is the trap. A router that picks the cheapest model for each turn looks efficient on paper. But if turn 1 goes to a small model and turn 2, a few seconds later, goes to a frontier model, turn 2 pays full price for a prefix that was already cached on turn 1. Multiply that across thousands of conversations and the routing saving can shrink quickly.

Several things make this worse:

  • Long agent sessions keep growing the prefix, so the cached portion is large and expensive to rewrite.
  • Tool definitions and retrieved documents are often inserted near the start of the prompt, which is exactly the part that should stay stable.
  • Mid-conversation switches happen when a router reacts to a single turn that looks harder, even though the conversation as a whole has already built a warm cache on another model.

The right question is not “which model is cheapest for this request?” but “which model is cheapest for the rest of this conversation, after counting the cache we would lose?”

What InstaRoute Does With Cache-Aware Routing

InstaRoute is an AI gateway that sits between your apps and 29 model providers behind one API. It classifies each request by difficulty and routes it to the cheapest model that should do the job well. For prompts of at least 1,024 tokens, it also applies prompt-cache-aware sticky routing: for 10 minutes it remembers which model served a conversation and keeps the next turn on that model. It only moves the conversation if switching is still cheaper after losing the cache discount, or if the task has become clearly harder.

Each response also carries an itemised receipt with the cost, the baseline cost, the savings and the routing reason, so you can see whether the cache is paying off rather than guessing. Calls go to providers on your own keys, with no token markup. Pricing is ₹1,000 + 18% GST per 30 days, plus 3% of net measured savings, so you pay the success fee only when savings are measured.

How to Check Whether Your Cache Is Working

You do not need special tooling to start. Ask three questions of your current logs:

  1. What share of input tokens is a repeated prefix? Agents often send the same system prompt and tool list on every call. If that share is high, caching is worth the setup.
  2. How often does the same conversation change model? If the answer is “often”, routing may be cancelling your cache hits.
  3. What is the cost per completed task, not per request? Judge savings by finished work, not by token count, so a cheaper call that forces a retry is not really cheaper.

Start with the longest, most repetitive sessions. Keep those on one model until the task changes, then measure the difference.

Watch: Cut Your LLM API Bill: Model Routing and Caching in Python (InstaRoute)

Watch on YouTube · More tutorials on our channel

Frequently Asked Questions

Does prompt caching reduce costs for every request?

No. Caching helps when the same prefix is sent again within the cache lifetime. A one-off request still pays the write premium, which is why the 5-minute Anthropic write (1.25 times) is cheaper to justify than the 1-hour write (2 times) unless the context is reused often.

Why does switching models reduce the benefit of caching?

Cached prefixes belong to a specific model on a specific provider. When a conversation moves to another model, the new model has no cache for that prefix, so the full input is charged again. The cached discount only applies on the same model.

Is the 90% discount guaranteed?

No. Providers describe the discount as “up to” a level, and it applies to the cached input tokens only. Output tokens are billed separately, and the cache must still be warm when the next request arrives. Check your provider’s current pricing page before building a forecast.

How can I protect cache hits when using a router?

Use sticky routing rules for long conversations, keep stable content such as system prompts and tool lists at the start of the prompt, and measure cost per completed task. A gateway that shows the routing reason for each request makes it easier to see when a switch is worth it.

Sources

Want to see which model each request used, what it cost and what it saved? Try InstaRoute, or read more on the InstaDataHelp blog.

Share this article

Leave a comment

Your email address will not be published. Required fields are marked *

Keep reading

Related articles

Verified by MonsterInsights