711
Dictionary

Prompt Caching

Reusing the processed form of a repeated prompt prefix so later requests are cheaper and faster.

1 min readupdated 2026-10-08

/ quick answer

Providers can cache the computed state of a long, unchanged prefix — system prompt, tool definitions, reference documents — and bill cached tokens at a steep discount. Caching only works when the prefix is byte-identical, so stable content must come first and variable content (user message, timestamps) last.

Reusing the processed form of a repeated prompt prefix so later requests are cheaper and faster. Providers can cache the computed state of a long, unchanged prefix — system prompt, tool definitions, reference documents — and bill cached tokens at a steep discount. Caching only works when the prefix is byte-identical, so stable content must come first and variable content (user message, timestamps) last. In practice: Moving a 6,000-token policy document to the start of every support prompt and the customer question to the end lets most requests hit the cache.
Definition
Providers can cache the computed state of a long, unchanged prefix — system prompt, tool definitions, reference documents — and bill cached tokens at a steep discount. Caching only works when the prefix is byte-identical, so stable content must come first and variable content (user message, timestamps) last.
Example
Moving a 6,000-token policy document to the start of every support prompt and the customer question to the end lets most requests hit the cache.
Related Workflows

/ frequently asked

What is Prompt Caching?

Providers can cache the computed state of a long, unchanged prefix — system prompt, tool definitions, reference documents — and bill cached tokens at a steep discount. Caching only works when the prefix is byte-identical, so stable content must come first and variable content (user message, timestamps) last.

What is an example of Prompt Caching?

Moving a 6,000-token policy document to the start of every support prompt and the customer question to the end lets most requests hit the cache.

Why does Prompt Caching matter?

Reusing the processed form of a repeated prompt prefix so later requests are cheaper and faster.

What should I learn after Prompt Caching?

Open the related workflows and prompts further down this page: they show how this idea is applied in a real task, step by step.

/ continue exploring

Related concepts

The vocabulary this page depends on.

  • →Small Language Model (SLM)

    A language model with roughly 1–15B parameters, small enough to run on a laptop, phone or single GPU while handling narrow tasks well.

  • →Semantic Cache

    A cache that returns a stored LLM answer when a new question means the same thing as an earlier one, even if worded differently.

  • →Knowledge Distillation

    Training a small model to imitate the outputs of a large one, keeping most of the quality on a target task at a fraction of the cost.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related tool stacks

The tools that run it in production.

all tool stacks →

Related prompts

Reusable prompts for this job.

all prompts →

Related use cases

How people apply it, and what came out.

all use cases →