Sintra AI
Home
Live Feed
Automation Hub
Prompt Library256
AI News554
Weekly Digest
Topic Hubs
AI History
AI Labs
Research
Learning Paths
Guides
Resources
Concepts
Videos
AI Tools74
Models
Claude
Google AI
Cost Calc
Skip to content
Sintra AIConcepts
Home/Concepts/Prompt Caching
⚡
ProtocolsPractitioner

Prompt Caching

Reusing the processed version of a repeated prompt prefix to cut cost and latency.

Prompt caching allows providers to save the KV cache (the model's internal representation) of a prompt prefix so that subsequent calls reusing the same prefix skip reprocessing those tokens.

Cost impact: Anthropic charges 10% of normal input price for cache hits; OpenAI charges 50%. For a 4,000-token system prompt sent 1 million times: uncached = $8/M input × 4k tokens × 1M calls = $32,000. Cached = $3,200.

How to use it (Anthropic): Mark static prompt sections with "cache_control": {"type": "ephemeral"}. The cache persists for 5 minutes and refreshes on each hit. Cache breakpoints can be set at up to 4 positions in a prompt.

What to cache: System prompts, large static documents (product manuals, codebases, transcripts), few-shot examples, tool definitions — anything identical across many calls.

Latency benefit: Cache hits also reduce time-to-first-token because the provider skips processing thousands of tokens.

When it's not applicable: Short prompts (< 1,024 tokens for Anthropic), highly dynamic content that changes every call, one-off requests.

In plain terms

Like saving a compiled version of a document. The first time you compile it takes work; every subsequent use of that compiled version is instant.

Related concepts

🔌

API

A standardised way for software to talk to other software.

🪙

Tokens

The tiny chunks of text an AI reads, one at a time.

⚡

Inference

The moment a trained model actually runs and generates output.

📋

System Prompt

The hidden instruction that shapes how an AI behaves before you say anything.

Stay current

New prompts & AI news, weekly

No noise. Curated highlights from the library.

Newsletter signup is currently disabled.

Sintra Tesseract

A curated library of AI use cases, mapped across every way to think with a machine.

Open source · Free forever

Discover

Use CasesCollectionsAI Tools DirectoryAI NewsLearning PathsResources & Links

Reference

Claude & AnthropicAI ConceptsAI HistoryAI LabsGoogle AI Tools

Elsewhere

AI Keynote ↗GitHub ↗RSS Feed ↗
© 2026 Sintra · Curated in the open.Built on the void.