On one provider's caching page, cached reads cost 0.1 times the base input price, with per-model exceptions; another provider's guide says reused tokens are discounted up to 95%. Both need the whole prefix to match. Five checks, each sized for an afternoon, from prompt order to routing.
One token policy covering all five checks
# token-policy.yaml: names in capitals are yours to set
prompt_order: [tools, system, documents, history, question]
move_to_end: [timestamp, request_id]
cache:
min_prefix_tokens: MODEL_MINIMUM # 512 to 4,096 by model, first page
min_reads_per_write: {default: 1, one_hour: 2}
alert_below_cached_share: CACHED_SHARE_FLOOR # set from your own traffic
trim:
start_above_tokens: TRIM_THRESHOLD
min_freed_tokens: MIN_FREED_PER_CLEAR
routing:
smaller_model: {only_for: easy, after: side_by_side_test}The checks
Everything starts ticked. Untick what you will not do; the choice is saved on this device only, and Print keeps only what you kept.
What happened. One guide says cache reuse requires the entire rendered prefix to match. Another says a change at one level (tools, then system, then messages) invalidates that level and every later one. A timestamp near the top leaves nothing below it to reuse.
The check.
- Order the prompt: tools, system prompt, shared documents, history, then the new question.
- Move timestamps and per-request IDs to the end; run the snippet on two consecutive prompts.
import os # prompt_1, prompt_2: two consecutive rendered prompts print(len(os.path.commonprefix([prompt_1, prompt_2])), "shared characters")
Source: Prompt caching, a model API provider's documentation, read 27 Oct 2026; Prompt caching guide, a second model API provider's documentation, read 27 Oct 2026
What happened. On one page, a prompt below the model's minimum cacheable length, 512 to 4,096 tokens by model, is processed without caching and no error is returned. Zero cache reads and writes in the usage fields show it was not cached.
The check.
- Log cached, written and uncached input tokens per call; alert when the cached share drops.
- Count your fixed prefix in tokens and compare it with the model's minimum.
u = response.usage # the other provider: usage.input_tokens_details.cached_tokens
r, w, n = u.cache_read_input_tokens, u.cache_creation_input_tokens, u.input_tokens
print("cached share:", r / (r + w + n))Source: Prompt caching, a model API provider's documentation, read 27 Oct 2026; Prompt caching guide, a second model API provider's documentation, read 27 Oct 2026
What happened. Both pages price the default cache write at 1.25 times base input (the second for its newest models), a standard read at 0.1 times, and the first's 1-hour write at 2 times. One read repays a default write; two repay a 1-hour write.
The check.
- List each prefix's call gaps; a gap past the lifetime (5 minutes, first page) means a new write.
- Keep caching only where reads per write reach 1 (default) or 2 (1-hour), counted as in check 2.
Source: Prompt caching, a model API provider's documentation, read 27 Oct 2026; Prompt caching guide, a second model API provider's documentation, read 27 Oct 2026
What happened. One guide says that even with chained responses all previous input tokens are billed as input tokens. Another says clearing old tool results invalidates the cached prefix, so each clear should free enough tokens to be worth it.
The check.
- Clear or summarise old turns only past a token threshold, and set a minimum freed per clear.
- Compare cached share and cost per conversation before and after, from check 2's counters.
Source: Context editing, a model API provider's documentation, read 27 Oct 2026; Conversation state, a second model API provider's documentation, read 27 Oct 2026
What happened. Two papers test sending each query to a cheaper model when it can answer. One reports matching the best single model with up to 98% cost reduction; the other, costs cut by over 2 times in certain cases without lower response quality.
The check.
- Hand-label a sample of real requests as easy or hard and run both models on the whole sample.
- Route to the smaller model only where it passes your checks; send the rest to the larger one.
Source: Paper on using LLMs while reducing cost and improving performance, arXiv, submitted 9 May 2023; Paper on routing between a stronger and a weaker LLM, arXiv, submitted 26 Jun 2024
Figures are as read on 27 October 2026 and can change. Break-even counts are arithmetic from the listed multipliers. Routing figures are what two papers saw on benchmarks, not what every model does. Effort is a planning estimate.
Take this list with youThe PDF is the handout: this list on one or two pages. The Markdown is for your own docs, your wiki, or an assistant you want to hand the list to. Print gives you this list only, without the navigation.
Something in your production AI broke in a way that is not on this list? Tell me what broke.