Glossary

What is Prompt caching?

In Turkish: İstem önbellekleme (prompt caching) · Topic: Using AI

Processing the long, unchanging beginning of a prompt once and storing it, so it need not be recomputed on later calls. It aims to cut both cost and response delay.

How does it work?

As a model reads a prompt, it produces a series of intermediate computations. For the fixed opening part of a prompt, the provider keeps this intermediate state for a while. If the next request starts with the same content, that part is not processed again; the stored state is reused and only the newly added part is computed. This is why unchanging material such as the system prompt, long documents and tool definitions goes first, and the changing part goes last. If the beginning changes, the cache no longer applies; retention time and pricing vary by provider.

Why does it matter?

For agents or apps that work with long documents and resend the same large context at every step, repeated processing is a real cost and a source of waiting. Caching eases that load. It is a technique that often appears in news about how AI application costs are brought down.

Example

If an internal assistant adds the same long policy document to the start of every question, that document can be cached so it is not reprocessed from scratch for each new question.

FAQ

Does prompt caching store the answer itself?

No. What is stored is the processed form of the beginning of the prompt. The model still generates the reply each time; only the repeated work on the input side is skipped.

Does caching affect answer quality?

It is not expected to. It simply reuses the same computation. The goal is not to change quality but to get the same result faster and more cheaply.

All terms