Nythrex

Glossary · Definition

Prompt caching

Prompt caching lets a model provider reuse the processing of an identical prompt prefix across requests, reducing cost and latency for repeated content.

By Nythrex EngineeringUpdated 1 min read

In plain words

Many requests start with the same long block: system instructions, tool definitions, a reference document. With caching, providers process that prefix once and bill later reuses at a reduced rate. Structure prompts with stable content first to benefit.

When it matters to you

  • Long, repeated system prompts
  • Multi-turn conversations
  • Agents with many tool definitions

Common pitfalls

  • Putting variable content before stable content
  • Confusing prompt caching with caching answers
  • Assuming the same rules across providers

Want a second opinion on your project?

Tell us what you’re building and where you’re stuck. We’ll reply within one business day with the most practical next step — even if that step isn’t us.

Start a project