Prompt caching AI models: send the same prefix twice, pay once
| # | AI model | Capabilities | API $/1M (in / out) | Context window | Price / mo | Output $/1M | Overview | Visit site |
|---|---|---|---|---|---|---|---|---|
| 21 | Gemini 3.8 Flash Google | $0.75 / $3.75 | 1.05M tokens | API only | 3.75 | View | ||
| 22 | Qwen3.8 Max (0902) Qwen | $2 / $6 | 1M tokens | API only | 6 | View | ||
| 23 | Qwen3.8 2.4T A95B Qwen | $2 / $6 | 1.05M tokens | API only | 6 | View | ||
| 24 | Gemini 3.7 Flash Google | $0.75 / $3.75 | 1.05M tokens | API only | 3.75 | View | ||
| 25 | Grok 4.5 xAI | $2 / $6 | 500K tokens | API only | 6 | View | ||
| 26 | GPT-5.5 OpenAI | $5 / $30 | 1.05M tokens | API only | 30 | View | ||
| 27 | Claude Sonnet 5 Anthropic | $2 / $10 | 1M tokens | API only | 10 | View | ||
| 28 | GPT-5.6 Luna OpenAI | $0.2 / $1.2 | 1.05M tokens | API only | 1.2 | View | ||
| 29 | DeepSeek V4 Pro 0813 DeepSeek | $1.0494 / $3.1482 | 1.05M tokens | API only | 3.148 | View | ||
| 30 | DeepSeek V4 Flash 0731 DeepSeek | $0.065 / $0.18 | 1.31M tokens | API only | 0.18 | View | ||
| 31 | Gemini 3.6 Flash Google | $0.75 / $3.75 | 1.05M tokens | API only | 3.75 | View | ||
| 32 | Qwen3.8 27B Qwen | $0.42 / $3 | 1M tokens | API only | 3 | View | ||
| 33 | DeepSeek V4 Pro 0423 DeepSeek | $0.95526 / $1.91052 | 1.05M tokens | API only | 1.911 | View | ||
| 34 | Claude Sonnet 4.6 Anthropic | $3 / $15 | 1M tokens | API only | 15 | View | ||
| 35 | Qwen3.7 Max Qwen | $2.5 / $7.5 | 1M tokens | API only | 7.5 | View | ||
| 36 | MiniMax M3 MiniMax | $0.3 / $1.2 | 1.05M tokens | API only | 1.2 | View | ||
| 37 | GLM-5.1 Z.ai | $1.4 / $4.4 | 200K tokens | API only | 4.4 | View | ||
| 38 | Kimi K2.7 Code Moonshot AI | $0.71 / $3.5 | 262.1K tokens | API only | 3.5 | View | ||
| 39 | Qwen3.7 Plus Qwen | $0.32 / $1.28 | 1M tokens | API only | 1.28 | View | ||
| 40 | Grok 4.3 xAI | $1.25 / $2.5 | 1M tokens | API only | 2.5 | View |
Browse by need
Prompt caching stores an identical prompt prefix between calls, so repeated context is charged at a fraction of the base input rate - typically 10%, and as little as 2.5% on Claude Fable 5.1. If your application sends the same lengthy system prompt with every request, this is usually the biggest saving available to you.
147 models support it. The saving applies to input only, so the effect is largest where prompts are long and answers are short - support bots with detailed instructions, agents with big tool catalogues, RAG systems that resend the same corpus. Cache entries expire, so the economics favour high request frequency against a stable prefix.
Models with this capability
The 147 models below all support this capability. Prices are input and output per 1M tokens from the vendor official price list; for dirhams multiply by 3.6725. Tap a card to open the model page.
How to choose
- Put everything stable at the very front: system prompt, tool definitions, reference documents.
- Keep user-specific content after the cached prefix.
- Check the cache lifetime — short TTLs punish low-traffic applications.
- Account for write cost: some vendors charge a premium to create the entry.
Common mistakes
Who this suits
Related filters
Frequently asked questions
How much does caching save?
What has to stay identical?
When is caching pointless?
How much can I realistically save?
Does caching change answers?
Frequently searched
Rate this page
Help us improve