Systemics
← All blog posts & case studies
Article | FinOps & Cost |

LLM Cost Levers, Ranked by Typical Impact

The five levers that move an LLM bill, honest savings ranges, a routing table template, and the breakeven math for when fine-tuning beats prompting.

The formula

cost = sum over models of (input tokens x input price) + (output tokens x output price)

Every lever shrinks one of those four terms. Output tokens typically cost 3-5x input tokens, so output-side cuts pay disproportionately.

The levers, ranked

RankLeverTypical savingsApplies toPrerequisiteMain risk
1Model routing30-60% of model spendAnyone on premium modelsEval gate per task typeSilent quality regression
2Prompt and semantic caching20-50% of input spendRepeated prefixes, RAG, multi-turnCache-aware prompt layoutStale or leaked cached context
3Prompt discipline10-30% of total spendEveryoneNothingOutput truncation bugs
4Quantization40-60% of serving infraSelf-hosted onlyQuality eval on your tasksAccuracy loss on hard tasks
5Spot capacity60-90% on eligible batchSelf-hosted batch onlyCheckpointing and retriesMid-job interruptions

Ranges are synthesized from published sources and assessment work; your traffic distribution decides where you land. Order by effort-adjusted payback: 3 and 2 this quarter, 1 next quarter, 4 and 5 when self-hosting is already justified.

Prompt discipline (do this first)

  • Cap max_tokens per feature. An output cap is often worth more than any input optimization.
  • Trim chat history to the turns that matter; stop resending resolved context.
  • Compress system prompts. Every line costs on every call.
  • Cache reference documents instead of inlining them per request.
  • Measure p50 and p95 output length per feature before and after. Typical outcome: 10-30% of total spend for a week of work.

Caching facts (as of mid-2026; verify against current provider docs)

ProviderMechanismPricing shape
AnthropicExplicit cache control on prompt blocksCache reads around 10% of base input price; writes carry a premium; default TTL 5 minutes
OpenAIAutomatic prefix cachingCached input tokens discounted roughly 50-90% depending on model; best-effort, so measure hit rate before forecasting

Layout rule: stable content first (system prompt, tool definitions, few-shot examples), variable content last. Caches match prefixes; a volatile timestamp at the top of the prompt zeroes the lever.

Routing table template

Task typeQuality barTierWhy
Classification, extractionDeterministic evalSmall/cheap10-15x cheaper per token, clears eval
Summarization, FAQEval plus spot checksMidQuality insensitive at this length
Client-facing drafting, analysisHuman rubric, sampledFrontierQuality is the product
Regulated data (any task)PolicyApproved tiers onlyRouting is a data-governance artifact

Rules: routing lives in the gateway, not in app code; every tier change passes an eval gate; the fallback chain is configured and has carried traffic at least once.

When fine-tuning beats prompting on cost

Breakeven: fine-tune when monthly prompt-overhead cost exceeds monthly fine-tune cost.

monthly prompt overhead = extra few-shot tokens per call x calls per month x token price

monthly fine-tune cost = training amortized over model lifetime + any serving premium

Fine-tuning tends to win when all of these hold:

  • One stable task shape (classification, extraction to a fixed schema, a house style).
  • High, steady call volume on that shape.
  • A few-shot prompt long enough that its tokens dominate the call.
  • A maintainable training set in the hundreds to low thousands of good examples.

Prompting wins when the task changes weekly, volume is low, or the dataset cannot be maintained. The end state is a fine-tuned small model behind the same gateway interface: the routing rule changes, the app code does not.

Quick checks

  • [ ] Cost per successful request by feature: measured, not estimated.
  • [ ] p50 and p95 output length per feature; caps set.
  • [ ] Cache hit rate measured before savings are claimed.
  • [ ] Eval gate runs before any routing change ships.
  • [ ] The bill reconciles with attribution data weekly.

Book a free assessment: systemics.ai.

Start with a free architecture assessment.

Thirty minutes, no slides. Tell us where your AI posture stands and we will tell you honestly whether we can help.