How Prompt Caching Cuts LLM Costs by 85%
Cached input tokens are billed at a fraction of the standard rate. Here is how TokenCLI prices cache hits, which models benefit most, and why cache savings are reported — not promised.
Prompt caching lets you reuse expensive system prompts, tool definitions and conversation prefixes across requests without paying the full input rate each time. When the upstream provider serves part of your prompt from cache, TokenCLI bills those tokens at the cached rate instead of the standard input rate — often 85–90% cheaper.
Live cache savings on popular models
| Model | Input / 1M | Cached / 1M | Savings |
|---|---|---|---|
| GPT-6 Astra | $4.00 | $0.60 | 85% |
| Claude Opus 5.5 | $2.10 | $0.14 | 93% |
| DeepSeek V4.1 Flash 1017 | $0.06 | $0.006 | 90% |
| Gemini 4 Argon | $0.80 | $0.08 | 90% |
| Grok 4.7 | $0.80 | $0.30 | 63% |
Savings are computed as (input − cached) / input. Claude Opus 5.5 delivers the deepest discount because its cached rate ($0.14) is set at 2× supplier cost while the standard input rate ($2.10) sits at 3× cost. Grok 4.7 saves less because its cached rate floor is higher relative to its input price.
How cache hits are billed
- The upstream provider reports cached token counts separately in the usage block. TokenCLI passes that count through unchanged.
- Cached tokens are billed at the published cached rate for that model at the moment the request was made. Rates never change mid-request.
- Standard input tokens (non-cached portion) are billed at the standard input rate. The two charges appear as separate line items on your usage receipt.
- Output tokens are unaffected by caching and always bill at the output rate.
Why cache hits are reported, not promised
Cache behavior depends entirely on the upstream provider. Whether a prefix hits depends on recency, exact byte match, model-specific TTLs, and provider-side eviction policies that change without notice. TokenCLI does not operate its own cache layer and makes no guarantee that any given request will receive cached pricing.
What we do guarantee: if the provider reports cached tokens, you pay the cached rate. If it does not, you pay the standard input rate. There is no middle ground, no estimated discount, and no retroactive adjustment. Your receipt reflects exactly what the provider reported.
Designing prompts for cache hits
- Keep system prompts and tool definitions identical across requests. Even a single character change invalidates the cached prefix.
- Place stable content first. Providers cache from the beginning of the prompt; variable user messages should come after reusable context.
- Reuse conversation prefixes within a session. Multi-turn chats naturally accumulate cacheable history when earlier turns remain unchanged.
- Check your receipts. The cached token count on each receipt tells you whether your prompt structure is actually hitting cache or not.
When caching does not help
Single-shot requests with unique prompts, short-lived sessions, and models with aggressive cache eviction will see few or no cache hits. DeepSeek V4 Pro and MiMo V2.6 cached rates sit above their official cached prices because the 2× cost floor wins — caching still saves versus our standard input rate, but not versus going direct. Plan on the standard input rate for budgeting and treat cache savings as a bonus when they materialize.