# Prompt caching (/docs/spot/prompt-caching)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

{/\* Draft structure. Check how caching works on each provider before filling in the details. \*/}

Input, cached input and output are priced separately. Cached input is input a provider served from its
prompt cache, and repeated prefixes are cached for you. See [Pricing](https://bitrouter.ai/docs/pricing) for the prices.

## How caching works \[#how-caching-works]

Which requests are cached, the minimum prefix length, how long an entry lasts, and whether you need to do
anything to turn it on.

## Make requests cache better \[#make-requests-cache-better]

How to order a prompt so the repeated part comes first, and what breaks a cache hit.

## Caching across providers \[#caching-across-providers]

Each provider keeps its own cache, so a request that falls back to another provider
(see [Reliability](https://bitrouter.ai/docs/spot/reliability)) may not hit the cache. How this shows up in your cost.

## See what was cached \[#see-what-was-cached]

Where cached tokens appear in a request's [settlement](https://bitrouter.ai/docs/api/settlement) and in usage.