# What is Prompt caching?

Markdown version of https://kymaapi.com/glossary/prompt-caching, for agents and crawlers. Same content as the HTML page.

- Generated: 2026-10-28T21:43:30.487Z
- HTML page: https://kymaapi.com/glossary/prompt-caching
- Model catalog: https://kymaapi.com/models.md
- Pricing: https://kymaapi.com/pricing.md

Prompt caching reuses a model's computation for repeated prompt prefixes, billing the cached input at a fraction of the normal rate.

Many applications send the same long prefix on every request: a system prompt, a tool schema, a document, or a conversation history. Prompt caching stores the model's internal representation of that prefix so it doesn't have to be recomputed on the next call, which is both faster and cheaper.

How much cheaper varies by model, and by more than most pricing pages admit: across the models Kyma publishes a cached rate for, the cheapest bills a cached token at a tenth of the input rate and the dearest bills it at the full input rate, with no discount at all. Some models publish no cached rate at all. For agents and chatbots with large stable prefixes this is often the single biggest lever on cost, which is exactly why it is worth reading the model's own figure rather than a headline percentage.

Caching is most effective when the cacheable prefix is large and stable and the variable part (the user's new message) is small, which is exactly the shape of coding agents, RAG pipelines, and long-running chats.

## How Kyma does it

Kyma forwards caching hints to models that support it and publishes each model's own cached rate beside its input rate on /models and /pricing, with a dash where nobody publishes one. Every response reports usage.cost and the cache discount, so what caching saved on your request is a measured number rather than an advertised one.

- [Pricing](https://kymaapi.com/pricing)
- [Pay-per-token pricing](https://kymaapi.com/glossary/pay-per-token)
- [Prompt caching guide →](https://docs.kymaapi.com/guides/prompt-caching)

Try it with $0.50 free credit on the free tier. No card required. · [Get API key →](https://kymaapi.com/signup)

More terms

- [LLM gateway](https://kymaapi.com/glossary/llm-gateway)
- [LLM router](https://kymaapi.com/glossary/llm-router)
- [Model aliases](https://kymaapi.com/glossary/model-aliases)
- [LLM failover](https://kymaapi.com/glossary/llm-failover)
- [Tool calling](https://kymaapi.com/glossary/tool-calling)
- [Structured outputs](https://kymaapi.com/glossary/structured-outputs)
- [Pay-per-token pricing](https://kymaapi.com/glossary/pay-per-token)
