Prompt Caching: What Happened When We Sent 100 Requests to 4 Places

Alex Chiang

Chief Revenue Officer, NXIO

Published

Updated

A cartoon robot keeps one hand on a giant closed manual with a bookmark in it, while its other hands stamp a stream of small question cards with green check marks. A founder in a hoodie watches with a cup of coffee, delighted.

Your app talks to an AI model all day.

And every request it sends starts with the same long text. Your instructions, your product manual, the whole conversation so far.

So here is a fair question. Do you pay for the model to read all of that again, every single time?

Here is the short answer. When you send the same long start again, the provider reuses the work it already did on it, so that part costs much less and the answer can start sooner.

That has a name. It is called prompt caching.

So we sent the same 100 requests to four different places and watched what happened.

At three of the four places, almost every request after the first few reused the start. At the fourth, our requests were passed around between many different providers, and about one in four paid full price.

And the place where the answer started much sooner was the one with no bill at all.

By the end of this article you will have an answer to four questions:

  • What is it, really?

  • Do I get it without doing anything?

  • How long does it last?

  • Does it work on my own GPU?

One thing you should know first. NXIO publishes this blog, and NXIO sells API access to open models. NXIO is also one of the four places we tested, so I show you every place the same way.

What is prompt caching, in plain words?

Imagine you hire a helper to answer questions about your product.

Before the first question, the helper has to read your 50-page manual from cover to cover. That takes a while, and you pay for the time.

Now the second question comes in. Does the helper read all 50 pages again?

A good one does not. They kept their notes from the first time. So the second question only costs them the one new line you added at the end.

That is the whole idea. The model reads the long start of your request once. The provider keeps the model’s notes for a while. When your next request starts with the same text, the provider reuses the notes.

Two terms you will see on price pages and bills. The reused part of your request is called cached input. And when a request finds notes it can reuse, people call that a cache hit.

So far so good. But there is one rule that people miss, and it decides whether you get any of this.

The start has to match word for word.

Think of how you would compare two copies of a book. You start at page one and you go on until the first page that is different. The provider does the same with your request. It reuses its notes up to the first difference, and from there it reads everything again.

Why can it not skip the one changed page? Because the notes on page 30 were written with pages 1 to 29 in mind. Change one word on page 2, and none of the notes after it fit.

So where you put things matters. If the first line of your request holds today’s date and time, the two copies differ at line one. Nothing is reused.

A diagram: one long green bar marked “fixed start, read once, then reused” on the left, with five short different questions branching off it on the right. Under it: keep what stays the same at the front, put what changes at the end.

Why does a cached request cost less?

Your bill for a request has three parts: the new input the model reads at full price, the cached input it reuses, and the output it writes. I explain all three in our article on ai token cost.

The cached part is cheaper because the provider did less work for it. How much cheaper depends on who made the model.

I read the price pages of seven model makers. This table shows what each one charges for the reused part, as a share of its normal input price.

Model maker

Cached price, as a share of the full input price

Extra charge the first time it stores your start

OpenAI

5% to 10%

Yes. 1.25 to 2.5 times the input price, depending on how long it is kept

Anthropic

2.5% to 10%

Yes. 1.25 to 2 times the input price, depending on how long it is kept

Google

5% to 10%

None for automatic caching

DeepSeek

2% to 3.3%

None listed

Moonshot AI

10%

Yes, billed by how long it is kept

Z.ai

19% to 20%

Free for a limited time

Alibaba Cloud

10% or 20%

Only when you ask for the cache yourself: 125% of the input price

Prices checked on 14 and 15 November 2026, on each maker’s own price page. The models: gpt-6-astra, gpt-6.1-sol and gpt-6-luna; Claude Fable 5.2, Sonnet 5.5 and Haiku 5.5; gemini-4-carbon and gemini-3.8-flash; deepseek-flash and deepseek-v4-pro; kimi-k3.1-pro; GLM-5.3 and GLM-5.3-Flash; qwen3.8-27b.

Look at the last column before you look at the middle one. At some makers the first request costs more than a normal one, because storing the notes has its own price. You earn that back from the second request on. OpenAI did the sum on its own page: store a start once and reuse it once, and you have paid about two thirds of what the same two requests cost without the cache.

So what does this do to a whole month?

Here is a made-up app. This is a calculation from a price list, and nobody was billed for it.

A support assistant starts every request with the same 10,000 tokens: its instructions and a product manual. Each customer question adds 300 tokens, and each answer is 400 tokens long. It handles 3,000 requests a day, which is 90,000 in a 30-day month.

I priced it with DeepSeek’s deepseek-flash at its peak-hour list price, which lists no charge for storing.

One month

Without the cache

With the cache on every request

The fixed start

US$270.00

US$5.40

The customers’ questions

US$8.10

US$8.10

The answers

US$43.20

US$43.20

The month

US$321.30

US$56.70

Same app, same customers, same answers. The month costs less than a fifth.

Two honest notes on that table. It assumes every request finds the cache, and DeepSeek itself says its cache works on a best-effort basis. A real month lands somewhere between the two columns.

And look at what is left. Once the start is cached, the answers become the biggest line on the bill. The cache does nothing for what the model writes.

Be one of NXIO's first 100 launch customers
You will get bonus credits on your first top-up and a direct line to the team, in return for your feedback.

What happened when we sent the same 100 requests to 4 places?

A price page tells you what should happen. We wanted to see what does happen.

So we wrote a manual for a product that does not exist. It is 80,000 characters long, which a model counts as about 16,000 tokens. Nobody could have stored it before, because nobody had ever seen it.

Then we asked 100 different short questions about it. Every request was the whole manual first and one question at the end. That is the same shape as the helper with the 50 pages.

We sent the requests one at a time, in four groups of 25. Between the groups we waited: one minute, then six, then twelve. After the last group we waited a full hour and sent 5 more.

We did this at four places:

  1. NXIO.

  2. DeepSeek, the company that makes the model we asked for at the first three places.

  3. OpenRouter, a service that passes your request on to one of several providers.

  4. A single graphics card with no token bill: an RTX Pro 6000 running the open model Qwen 3.8 27B.

One rule for reading the results. Each place is compared only with itself: a cached request against a full-price request at the same place, and the first request against the later ones. The four places are different setups, so I do not rank them.

Place

Requests that reused the start, out of 105

Did the first request pay full price?

What a cached request cost, against a full-price one

Reused the start after the one-hour wait

NXIO

102

Yes. So did two more of the first four

About 1/31

5 of 5

DeepSeek

104

Yes. Only that one

About 1/26

5 of 5

OpenRouter

81

Yes, on our first attempt

About 1/13

4 of 5

Own GPU

104

Yes

No token bill

5 of 5

104 of 105

reused the start at DeepSeek and on our own GPU

19

providers our OpenRouter requests landed at

11 times

sooner to the first word on our own GPU, once cached

So what does the table say?

At NXIO, at DeepSeek and on our own graphics card, the pattern was the same. The start paid full price while the cache warmed up, and after that every single request reused it. At NXIO the warm-up took the first few requests. At DeepSeek and on the graphics card it took one.

And when a request did reuse the start, it reused nearly all of it. At the paid places, more than 98% of the input was billed at the cached price.

OpenRouter behaved differently because of how it works. It does not run the model itself. It passes each request on to a provider, and its public list showed 48 of them for this model on the day of the test. With the default settings, our 105 requests landed at 19 different ones.

A provider that has never seen your manual has no notes to reuse. So in every group, from the first to the last, some requests paid full price.

One more thing we saw there. The same full-price request cost up to about 4 times as much at one of those providers as at another, and some of them charge different prices by time of day.

OpenRouter’s public list of providers for the model we tested, each with its own input, output and cache read price.

OpenRouter’s providers for the model we tested, as listed on 16 November 2026.

A cartoon: the founder has just stuck one small yellow note on the cover of a giant book. The bookmark shoots out, pages explode into the air, and the robot sits buried in loose pages, sweating, reading from the beginning again while blank question cards pile up.

How long does the cache last?

The helper keeps their notes on the desk for a while. Then the desk gets cleared.

Each maker clears the desk on its own schedule. Here is what they say.

Model maker

How long it keeps your start

OpenAI

At least 30 minutes. You can ask for at least 12 hours.

Anthropic

5 minutes, and the clock starts again each time the notes are used. You can ask for 1 hour.

Moonshot AI

5 minutes unless you choose 1 hour.

Alibaba Cloud

5 minutes for a cache you ask for. No stated time for the automatic one.

DeepSeek

No fixed time. It says “usually within a few hours to a few days” after the last use.

Google

No time on its page. It says to send similar requests within a short time.

Read on the same day as the prices, on each maker’s caching page.

That is why we built waits into the test. At NXIO, at DeepSeek and on our own graphics card, the cache was still there after every wait, including the full hour.

At OpenRouter the waits made no visible difference. Its misses were spread across all the groups, so they came from the provider a request landed at, not from the clock.

One moment the cache cannot help you with. The very first request with a new start always pays full price, because there are no notes yet. Developers call this a cold start. At DeepSeek it can even take two requests: its system saves a shared start only after it has seen it twice.

So if your app changes its instructions every morning, every morning starts cold.

Why don’t I get the cache discount?

Most of the time it is one of four things. Each one has a fix.

What goes wrong

Why it breaks the cache

The fix

Something that changes sits at the top, such as today’s date or the user’s name.

The two requests differ at the first line, so nothing after it is reused.

Put the fixed part first and the changing part last. OpenAI and Anthropic both give this advice.

The start is too short.

Makers set a minimum. OpenAI and Alibaba Cloud: 1,024 tokens. Google: 4,096 tokens on its newest models. Anthropic: 512 tokens on its newest models, more on older ones.

Check the minimum for your model. A short prompt is processed at full price and you get no error message.

Your requests land on different machines.

The notes sit on the machine that read your text. OpenAI says a request can reuse them only if it reaches a machine that holds them.

Ask your provider how it keeps your requests together. OpenRouter lets you send a session_id for this.

The pause between requests is too long.

The notes were cleared before your next request arrived.

Compare your quietest hour with the table in the section above. Where a longer time is offered, weigh its storing price against the requests it saves.

The third row is the one a price page cannot show you. OpenRouter prompt caching depends on what it calls sticky routing: after a cache hit, it tries to send your next requests to the same provider. In our run, with no session_id, that did not keep our requests together.

And how do you know whether it worked? You look at the receipt.

Every answer from the API carries a small usage record, and the reused tokens have their own line in it. On OpenAI, OpenRouter and NXIO the line is called cached_tokens. With DeepSeek context caching it is prompt_cache_hit_tokens. On Anthropic it is cache_read_input_tokens.

If that line says zero, you paid full price for everything.

Here is a real usage record from one of our NXIO test requests, with the request ID and the cost line removed.

{
  "usage": {
    "prompt_tokens": 15663,
    "completion_tokens": 23,
    "total_tokens": 15686,
    "prompt_tokens_details": {
      "cached_tokens": 15616
    },
    "completion_tokens_details": {
      "reasoning_tokens": 20
    }
  }
}

Read the two input lines together. Of the 15,663 tokens that went in, 15,616 were reused. Only the question at the end was new.

Does prompt caching work on your own GPU?

Maybe you run a model on your own machine. Then you have no token bill, so there is no discount to get. Is the cache still worth anything?

Yes, and here it buys you time.

Your graphics card has to read the long start before it can write the first word. If the serving software keeps the notes, it skips that reading. vLLM, one of the servers built for this job, calls it automatic prefix caching.

vLLM is also clear about the limit. The cache shortens the reading, not the writing. So with long answers you will notice it less.

And what did our own card do?

The card ran Qwen 3.8 27B in an 8-bit version, served by llama.cpp behind Open WebUI, with the model’s thinking switched off.

On the first request, the first word of the answer came after 6.7 seconds. Once the manual was cached, it came after about 0.6 seconds. That is about 11 times sooner, for the same manual and the same kind of question.

At the three paid places we did not see that. A cached request did not get its first word noticeably sooner. It may on a longer start or a busier day. In our test, the paid places saved money, and our own card saved time.

One thing to check on your own machine. Some software unloads a model that sits idle. Ollama, for example, keeps a model in memory for 5 minutes by default. When the model goes, the notes go with it.

How NXIO handles prompt caching

NXIO sells API access to open models through one endpoint that works like the OpenAI API.

Here is what you can check for yourself, without an account. Open NXIO’s models page. Every text model there shows three prices: input, output and Cached input, the price for the reused start.

A listed price is no promise that every request gets it. Caching still depends on the order of your text, its length and the pause between your requests.

NXIO makes the check easy. Every answer tells you how many tokens were cached and what the request cost in US dollars. Each request is itemized as uncached input, cached input, cache writes and output, and charged exactly that from your prepaid credits. You can look up any request later by its ID.

How long does NXIO keep a start? NXIO does not publish a fixed time, so I will not give you one. What we measured is in the test above.

The same page also lists models that make images and video. Those are charged per request, so the cache plays no part in them.

Join the launch

Be one of NXIO’s first 100 launch customers. You will get bonus credits on your first top-up and a direct line to the team, in return for your feedback.

Bring an app with a long fixed start, and tell us what your cached line shows after the first day.

Leave your name and email in the form below, and we will send you the launch offer.

Fixed part first

If you take one thing from this article, take the order.

Put everything that stays the same at the start of your request. Your instructions, your tools, your documents. Put everything that changes at the end.

Then, after your first day, open your usage records and find the cached line. If it is not zero, the cache is working for you. If it is zero, go back to the four rows in the checklist.

And if you want to try this on open models, join the NXIO launch.

Limits of this article

Prices and rules are a snapshot from November 2026 and can change. Two Google prices have set end dates.

We ran the test on 14 November 2026. Each place got 105 requests. The OpenRouter run was started twice, so the counted run’s first request found the manual already stored. 30 of its billing records were not ready when we counted providers, so the true number of providers may be higher.

It was one day, one model at each place, a text we invented and OpenRouter’s default settings. It says nothing about busy hours, about heavy traffic or about other models. We did not grade the answers. The worked month is a calculation.

For the full rules, read the makers’ own pages: OpenAI’s prompt caching guide, Anthropic’s prompt caching page and DeepSeek’s context caching page.

References

Three pages are linked in the article: OpenAI’s prompt caching guide, Anthropic’s prompt caching page and DeepSeek’s context caching page. The other pages are named here without links.

  • OpenAI, “Prompt caching” guide and Pricing, read 14 November 2026.

  • Anthropic, “Prompt caching” and Pricing, read 14 November 2026.

  • Google, Gemini API “Context caching” and Gemini API pricing, read 14 November 2026.

  • DeepSeek, “Context Caching” guide and Models & Pricing, read 14 November 2026, prices again on 15 November 2026.

  • Moonshot AI, Model inference pricing, read 14 and 15 November 2026.

  • Z.ai, Pricing, read 14 November 2026.

  • Alibaba Cloud, Context cache and Model pricing, read 14 November 2026.

  • OpenRouter, “Prompt Caching”, read 14 November 2026.

  • vLLM, “Automatic Prefix Caching”, read 14 November 2026.

  • Ollama, FAQ, read 14 November 2026.

  • NXIO, Quickstart, Usage & billing and Models docs, read 14 November 2026, and the models page, read 15 November 2026.

  • Redis, “What is prompt caching?”, read 14 November 2026, for the description of semantic caching.

Frequently asked questions

Does prompt caching change the answer?

No. The cache only saves the model the work of reading the start again. The answer is still written fresh for every request, and the usual settings still shape it. Anthropic and DeepSeek both say this in their documentation. If two answers differ, look at your settings before you blame the cache.

Is prompt caching the same as semantic caching?

No. Semantic caching saves whole answers. When a new question means about the same as an old one, it hands back the saved answer and the model is never called. Prompt caching saves only the reading of the start. The model still reads your new question and still writes a new answer.

Do I have to turn prompt caching on?

Mostly no. OpenAI prompt caching is on by default, and so is the automatic kind at DeepSeek, Google, Moonshot AI and Alibaba Cloud. Anthropic prompt caching is the exception: you add one field to your request to switch it on. If you buy through another provider, ask that provider.

How much does prompt caching save?

On the makers' price lists in November 2026, the reused part of a request cost between 2% and 20% of the normal input price. Your whole bill falls by less than that, because your new text and the answers are still charged in full. Work it out with a month of your own numbers.

Is my text safe while it sits in the cache?

That depends on who holds it, so ask. OpenAI and Anthropic both say a cache is never shared between organizations. Anthropic adds that it keeps the model's working notes in memory only for the cache's lifetime. A provider that resells a model has its own rules. Get them in writing.

Written by

Alex Chiang

Chief Revenue Officer, NXIO

Alex has been an entrepreneur for 18 years, and AI is the part of his work that excites him most. He helps companies bring new technology into the way they really work. He also loves helping people learn the newest AI tools, in plain and practical steps.

Headshot of *Designer Name*

Need more info?
Contact us for more details.

Need more info?
Contact us for more details.

Learn more about how NXIO can help with your next steps in your AI journey.

Learn more about how NXIO can help with your next steps in your AI journey.