n4nAI

Topic

Prompt Caching

7 posts on prompt caching — part of glossary on the n4n AI blog.

GlossaryDefinition

What is prompt caching in LLM APIs?

Prompt caching lets LLM APIs reuse computed attention for repeated prompt prefixes, cutting latency and cost on long-context workloads.

5 min read
GlossaryComparison

Prompt caching vs KV cache: what's the difference?

Understand the technical differences between prompt caching and KV cache, when each applies, and how they affect latency, cost, and throughput in LLM inference.

7 min read
GlossaryAnalysis

Prompt caching pricing: how discounts actually work

How prompt caching pricing discounts work across major LLM providers, with concrete examples of cache hit mechanics, token accounting, and cost optimization strategies.

6 min read
GlossaryHow-to

How to structure prompts for better cache reuse

Learn to structure prompts so prefix caching works — cut latency and cost by making repeated context cacheable across requests.

5 min read
GlossaryAnalysis

How prompt caching speeds up multi-turn conversations

How prompt caching reduces latency and cost in multi-turn LLM conversations, with concrete implementation patterns and honest tradeoffs.

6 min read
GlossaryDefinition

How OpenAI's automatic prompt caching works

How OpenAI's automatic prompt caching reduces latency and cost by reusing prefix tokens across requests, with technical details on cache keys, TTL, and billing.

6 min read
GlossaryHow-to

How Claude's prompt caching reduces API costs

Learn how to enable Claude prompt caching, structure requests for cache hits, and measure the cost reduction in your LLM API spend.

5 min read