How to cut your LLM API bill without losing quality

Where the money goes in a production AI feature, the four changes that usually save the most, and how to prove quality holds before you switch.

From a sample deliverable; the company is fictional.
In short
  • Most of the bill is usually input tokens that repeat on every request: system prompts, instructions and documents.
  • Caching, a smaller model for part of the work, shorter context and structured output are the main levers.
  • Measure quality on a fixed set of your own cases before and after every change, or the saving is a guess.

Start with where the money goes

Export a week of request logs and split the cost into four parts: uncached input, cached input, output and retries. Teams are often surprised that output is not the largest item: a long system prompt and retrieved documents sent with every request usually are.

A worked example

Assume 100,000 requests a month, 6,000 input tokens and 600 output tokens each, on Claude Opus 5.5 at list prices ($4 per million input tokens, $0.20 cached, $20 output). That is about $3,600 a month. If 70% of the input repeats and is cached, it falls to about $2,000. Moving the same workload to Claude Sonnet 5.5 with caching would be about $1,000, but only if quality holds on your cases.

Try your own numbers in the LLM cost calculator. Prices are list prices checked on 23 November 2026; cache writes and batch discounts are left out.

The four levers

Prove quality before you switch

Build an evaluation set of 50–200 real, anonymised cases with the answer you expect. Run the current setup and each candidate change on the same set and compare field accuracy, failure cases and cost per correct answer. A change that saves 60% and loses 5 points of accuracy may cost more in review time than it saves.

This is the method behind my LLM cost and reliability audit: a fixed-price report with before-and-after cost and quality on your own cases.

Discuss your workflow

The first call is free. If it fits, I send a written scope and a fixed price.