ByteCosts
best-llm-apis-for-prompt-caching.mdx

Cost optimization

Best LLM APIs for Prompt Caching (2026)

For prompt caching workloads, DeepSeek V4.1 Flash ($0.003/1M cache reads, 98% off input) and Alibaba Qwen3.7 Flash ($0.003/1M, 90% off) have the lowest published cache-read rates in ByteCosts’ pricing index. Among frontier reasoning LLM APIs, Claude Sonnet 5.5 and GPT-6.1 Sol both drop input from $2.00 to $0.10 per 1M cached tokens (95% discount).

Which LLM API has the cheapest prompt caching?

DeepSeek V4.1 Flash ($0.003 per 1M cached input tokens, a 98% discount off its $0.15 input rate) and Qwen3.7 Flash ($0.003 per 1M, 90% off) offer the lowest cache-read rates among major labs in ByteCosts’ pricing index. At the frontier tier, GPT-6.1 Sol and Claude Sonnet 5.5 both offer a 95% cache-read discount ($0.10 vs $2.00 input).

ModelProviderStandard Input / 1MCache Read / 1MCache DiscountOutput / 1M
DeepSeek V4.1 FlashDeepSeek$0.15$0.00398%$0.60
Qwen3.7 FlashAlibaba$0.03$0.00390%$0.13
Ministral 3BMistral$0.04$0.00490%$0.04
GPT-5 NanoOpenAI$0.05$0.00590%$0.40
Gemini 2.5 Flash-LiteGoogle$0.10$0.01090%$0.40
Claude Haiku 5.5Anthropic$0.10$0.01090%$0.50
GPT-6 LunaOpenAI$0.10$0.01090%$0.50
DeepSeek V4 ProDeepSeek$1.32$0.04497%$3.96
GPT-6.1 SolOpenAI$2.00$0.10095%$10.00
Claude Sonnet 5.5Anthropic$2.00$0.10095%$10.00

Rates from ByteCosts’ committed dataset snapshot (October 9, 2026). Check each provider’s current cache-write surcharge and TTL rules before deploying.

How much does prompt caching actually save at an 80% cache hit rate?

On an input-heavy workload sending 100M prompt tokens per month with an 80% cache hit rate (20M uncached + 80M cached), effective input spend falls by 72% to 78% before cache-write premiums. On GPT-6.1 Sol or Claude Sonnet 5.5, 100M input tokens drop from $200.00 uncached to $48.00 at an 80% hit rate.

Model100M Input (No Cache)100M Input (80% Hit Rate)Monthly Input Savings
DeepSeek V4.1 Flash$15.00$3.24$11.76 (78%)
GPT-5 Nano$5.00$1.40$3.60 (72%)
Claude Haiku 5.5$10.00$2.80$7.20 (72%)
DeepSeek V4 Pro$132.00$29.92$102.08 (77%)
GPT-6.1 Sol$200.00$48.00$152.00 (76%)
Claude Sonnet 5.5$200.00$48.00$152.00 (76%)

Calculate your exact break-even reuse count (including 5-minute 1.25× or 1-hour 2× cache-write surcharges) in the Prompt Cache Savings Calculator.

When does prompt caching lose money?

Prompt caching loses money on providers with a cache-write surcharge (typically 1.25× for 5-minute TTL or 2× for 1-hour TTL) when your prefix is written more often than it is reused. If every user session has a unique prompt or traffic arrives slower than the cache TTL window, you pay the write premium with almost zero cache hits.

Keep three design rules in place:

  • Freeze the prefix: put static system instructions, tool schemas, and shared docs at the top of the prompt; move timestamps and user IDs to the end.
  • Check minimum prefix length: most providers require a minimum cacheable prefix (commonly 1,024–2,048 tokens) before caching activates.
  • Measure hit rate, not theoretical savings: output tokens are never cached, so output-heavy tasks see a smaller total bill reduction than RAG or agent loops.

Clear verdict: which prompt-caching API should you pick?

Pick DeepSeek V4.1 Flash or DeepSeek V4 Pro for maximum cache-read discount (97%–98% off) on long-context agent and RAG prefixes. Pick GPT-6.1 Sol or Claude Sonnet 5.5 when you need frontier reasoning with a 95% cache-read cut, and GPT-5 Nano / Claude Haiku 5.5 / Gemini 2.5 Flash-Lite for high-volume apps with shared system prompts.

Sources and method

How this note was produced

Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-29). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.

Best LLM APIs for Prompt Caching (2026). ByteCosts. Updated 2026-11-29. https://bytecosts.com/blog/best-llm-apis-for-prompt-caching/

Sources