Prompt Caching vs Batch vs Model Routing vs Small Models: Which LLM Cost Lever Fits Your SaaS Feature (2026)
The right way to cut LLM costs without hurting quality depends on the feature. A guide by situation, with current Anthropic and OpenAI pricing mechanics and a worked cost-per-successful-outcome example.
The LLM cost lever that fits a SaaS feature depends on two questions: does the feature send the same long prompt on every call, and does the user need the answer now? Long, repeated prompts call for prompt caching, which Anthropic and OpenAI bill at 0.1x the input price or less on current models. Work that can wait calls for batch APIs, which both providers discount by 50%. Only after those, and only on traffic your own evals show is easy, does model routing make sense, and a fine-tuned small model fits just one case: a narrow task at steady, high volume that cheap rented models fail.
Start with how you will know quality held
Every option below except caching and batching changes which model answers or what it sees, so the first purchase is an evaluation, not a tool. No one has published a measurement of these levers, alone and stacked, on the same production SaaS workloads with held-out evals. The papers behind routing measured academic benchmarks on 2023 and 2024 models. That leaves teams to measure for themselves, and the method is not complicated.
For each AI feature, draw a held-out set from real production requests: a few hundred is enough to see large differences, more for features with many request types. Keep it separate from anything used to train or tune. OpenAI's fine-tuning guide gives the same advice for its own use, saying held-back data "acts as a control group" when used for evals. Grade every answer against a rubric that reflects the feature's job: field accuracy for extraction, label agreement for classification, schema validity for structured output, and a graded human or model-judge score for support replies and summaries. Then record four numbers before and after every change: cost, eval score, latency, and cost per successful outcome, which divides total spend, including retries and escalations, by the number of requests that met the bar.
The options at a glance
| Lever | Changes the answer? | Saving on the tokens it touches | Needs |
|---|---|---|---|
| Prompt caching | No | Reads at 0.1x input (0.05x on newest models) | Stable prefix, steady traffic |
| Batch API | No | 50% on input and output | Work that can wait up to 24 hours |
| Model routing or cascade | Yes | Price gap between models, on routed share | Eval set, measured easy share |
| Fine-tuned small model | Yes | Replaces per-token fees with GPU hours | Narrow task, volume, retraining |
If your feature sends a long, stable prompt on every call
This is most support assistants, copilots and agents: a system prompt, tool definitions and reference text that barely change between users. Prompt caching is the fit, and it is safe because the model sees the same tokens.
On Claude, Anthropic's docs price cache reads at 0.1x base input, or 0.05x on Opus 5.5 and Sonnet 5.5, and cache writes at 1.25x for a five-minute lifetime or 2x for an hour, with each hit refreshing the five-minute timer free. The minimum cacheable prompt is 512 tokens on the 5.5 models and up to 4,096 on older ones like Haiku 4.5; shorter prompts are not cached and "no error is returned." On OpenAI, caching "is enabled by default." GPT-5.6 and later models read at 0.1x, GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Sol and GPT-6.1 Terra at 0.05x, and charge 1.25x to write for 30-minute retention or 2.5x for 12 hours, a retention option OpenAI's changelog added on October 20, 2026. GPT-5.5 and earlier charge nothing extra to write.
A cached prefix pays for itself once it is read more than (w − 1) / (1 − c) times, where w is the write multiplier and c the read multiplier: one read at 1.25x, two at 2x or 2.5x. The usual reason it does not pay is a prefix that keeps changing. Anthropic requires "100 percent identical prompt segments," and OpenAI's guide says to keep stable content first, put timestamps and user details last, keep tool order fixed and append messages rather than rewrite them. Check the usage fields (cache_read_input_tokens on Anthropic, cached_tokens on OpenAI) to confirm hits.
If the work can wait
Enrichment, nightly digests, backfills and eval runs belong on a batch API. OpenAI's Batch API gives a "50% cost discount" with a 24-hour window and up to 50,000 requests per batch. Anthropic charges "50 percent of the standard API prices," accepts up to 100,000 requests per batch, says most finish within an hour, and lets caching and batch discounts "stack," with best-effort cache hits. Since November 17, 2026, OpenAI also offers two-hour and eight-hour background windows at 30% and 40% off Standard rates on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna; its docs say Standard requests cannot reuse cache entries those requests create, so keep them apart from cache-dependent live traffic. For anything that fits a 24-hour window, the Batch API is still the bigger discount.
If your traffic mixes easy and hard requests
Routing pays when a large share of requests can be answered by a model costing a fraction as much. The published results show both the potential and its limits. Stanford's FrugalGPT paper (May 2023) reported that a cascade matched the best single model on each task at savings of 98.3% on a financial-headline classification task, 73.3% on legal classification and 59.2% on reading comprehension. RouteLLM's project page reports cuts of "over 85% on MT Bench, 45% on MMLU, and 35% on GSM8K" at 95% of GPT-4's quality, and its paper warns that routers trained on general preference data did poorly on out-of-distribution questions and that "the greatest performance gains occur when the training data closely resembles the evaluation data."
So measure your own mix first. Run your held-out set through both the cheap and the strong model and count how often the cheap answer passes your rubric. That share is the ceiling on what routing can save; a router trained on your traffic will reach part of it, and a cascade adds the cost of re-running failures on the strong model.
If one narrow task runs at high, steady volume
Classification, extraction or a fixed-format reply that runs millions of times a month is where a small fine-tuned model can beat routing, but only if cheap rented models fail your eval on it. FrugalGPT names this option, training a cheap model on an expensive one's answers, though its experiments test the cascade. OpenAI's guide suggests starting with 50 good examples, but OpenAI is "winding down the fine-tuning platform," so the work moves to open-weight models. Together lists supervised fine-tuning of Qwen3.5 9B or Llama 3.1 8B from $0.34 per million training tokens, with a $4 minimum, and a dedicated H100 at $5.49 an hour.
The failure cases are predictable. Traffic drifts, so the model needs retraining from fresh production samples and a fresh eval gate before each release. Requests outside the training set need a fallback to a frontier model. And a GPU billed by the hour costs the same at 3 a.m. as at noon.
Teams that want this loop run for them can look at Parsec, a small language model lab whose custom-model service traces production traffic, builds datasets and evals the customer approves, trains and serves a compact model, and sends low-confidence requests to a closed frontier model. Its routers comparison page says a first post-trained model arrives in "about 4 weeks" and claims 60% savings on real workloads, without defining the workload or baseline. It publishes no price, and none of these figures has been independently verified.
Worked example: cost per successful outcome
Take a support-reply feature with 1 million requests a month, a 6,000-token stable prefix, 1,000 tokens of customer input and 400 output tokens, with 95% of requests hitting the cache. Claude Sonnet 5.5 ($2 input, $2.50 cache write, $0.10 cache read, $10 output per million) is the strong model and Haiku 5.5 ($0.10, $0.125, $0.01, $0.50) the cheap one; OpenAI's GPT-6.2 Sol and GPT-6 Luna list identical rates, so the result holds on either provider.
Without caching the bill is $18,000: 7 billion input tokens at $2 and 400 million output tokens at $10. Caching cuts it to $7,320, with output now the largest line at $4,000. Now assume your eval shows 60% of requests pass on Haiku 5.5 and that 5% of those answers still fail and are re-run on Sonnet. The Haiku share costs about $237, the Sonnet share $2,928 and the re-runs $220, for $3,384 a month before the router's own cost.
Cost per successful outcome is where quality enters. Suppose 90% of replies resolve the ticket on Sonnet, and routing lowers that to 88%. Cached Sonnet costs $7,320 for 900,000 successes, about $0.0081 each. Routed costs $3,384 for 880,000, about $0.0038 each. On API spend alone, routing stays cheaper per success until the success rate falls below about 42%. That is why the API bill rarely decides it: each unresolved ticket that reaches a human agent costs far more than a fraction of a cent, so the real limit on routing is how much success rate your support team can absorb. Those success rates are assumptions for illustration; your eval supplies the real ones.
For comparison, a dedicated H100 at $5.49 an hour is about $3,953 for a 30-day month before training. At this volume it does not beat routing; it wins only where Haiku-class models fail the eval and the alternative is $7,320 on Sonnet. Whether one GPU carries this traffic has not been measured.
Bottom line
If your feature repeats a long prompt, cache it first and check the hit fields. If the work can wait, batch it at half price. If your live traffic is mostly easy requests, measure that share on a graded sample and route only what passes, tracking cost per successful outcome. If one narrow task runs at high volume and cheap rented models fail your eval, a fine-tuned small model is worth pricing, with retraining and a frontier fallback planned from day one.
Sources
- Anthropic, Prompt caching: https://platform.claude.com/docs/en/build-with-claude/prompt-caching
- Anthropic, Batch processing: https://platform.claude.com/docs/en/build-with-claude/batch-processing
- OpenAI, Prompt caching guide: https://developers.openai.com/api/docs/guides/prompt-caching
- OpenAI, Batch API guide: https://developers.openai.com/api/docs/guides/batch
- OpenAI, Background mode: https://developers.openai.com/api/docs/guides/background
- OpenAI, API changelog: https://developers.openai.com/api/docs/changelog
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, Supervised fine-tuning guide: https://developers.openai.com/api/docs/guides/supervised-fine-tuning
- Chen, Zaharia, Zou, FrugalGPT (arXiv 2305.05176): https://arxiv.org/abs/2305.05176
- Ong et al., RouteLLM full paper (v4): https://arxiv.org/html/2406.18665v4
- Berkeley Sky Lab, RouteLLM: https://sky.cs.berkeley.edu/project/routellm/
- Together AI, Pricing: https://www.together.ai/pricing
- Parsec vs routers: https://parseclab.ai/compare/routers/
- Parsec, Inference: https://parseclab.ai/inference/