Lattice
Skip to content

Provider prompt caching

A discount providers apply when a request repeats a prefix they have already processed.

By Entry last reviewedmethod

What it implies

Completely separate from prefix caching in your own runtime: this is a billing discount, that is a computation saving. The practical consequence is that a large, stable system prompt is far cheaper than one rebuilt per request, which makes prompt structure a cost decision, not just a readability one.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.