Most applications can cut costs substantially without changing what they do. The savings are concentrated in a few places, and it is worth attacking them in order.
What saves the most?
Using a smaller model where the task allows. That is an order-of-magnitude difference, and classification, extraction and formatting rarely need the most capable model available.
What is routing?
Sending easy work to a light model and difficult work to a capable one, deciding per request. That captures most of the saving without losing quality where it matters.
What comes next?
- Send less. Only the relevant material.
- Ask for less. Output costs more than input.
- Cache repeated content. Where offered.
- Batch. Where latency does not matter.
- Prune history. Rather than resending everything.
Why does sending less matter so much?
Because people include far more than necessary. An entire document where one section is relevant, or a full history where the last three turns would do, multiplies the input cost of every call.
How do you shorten outputs?
By asking. A specified length in the system prompt reduces output tokens directly, and output is the more expensive direction, so this pays twice.
What about the cheapest model that works?
Worth finding deliberately rather than defaulting upwards. Starting with the lightest model and moving up only when quality is inadequate produces a different answer from starting with the flagship and never revisiting.
Your evaluation set makes this a quick experiment. Running the same cases through each tier shows exactly where quality drops off, which is frequently further down the range than people assume for narrow tasks.
What about structured output?
Cheaper as well as more useful. Requesting specific fields rather than prose eliminates the explanation and framing that would otherwise be generated and discarded.
What about doing less work per item?
Worth examining before optimising anything else. Applications frequently send a model something a simple rule could have filtered out, which means paying for a decision that did not need making.
Checking a value, matching a pattern or looking something up in your own data first removes a proportion of calls entirely. Eliminating a call is a larger saving than making one cheaper, and it is frequently easier.
When does batch processing help?
When results are not needed immediately. Providers offer substantial discounts for work that can be processed on their schedule, which suits overnight jobs perfectly.
What should you not do?
Compress your prompts into something unreadable to save a few tokens. The saving is marginal and the resulting configuration is one nobody can maintain, which costs more in time than it saves in tokens.
What saves nothing worth having?
Micro-optimising prompts. Removing a few words from a system prompt to save tokens produces a marginal saving and an instruction set that is harder to read and maintain.
The savings worth pursuing are structural: a smaller model, less input, shorter output, caching. Those are each large, and they leave the configuration comprehensible, which matters more over the life of an application than a few per cent.
What about doing it in fewer calls?
Frequently possible and worth examining. Applications accumulate steps, and a pipeline that classifies, then extracts, then formats can occasionally do all three in one request with structured output.
The trade is debuggability. Separate calls are easier to inspect when something goes wrong, so combining is worth doing once the pipeline is stable rather than while you are still working out what it should do.
What about the retry policy?
Worth checking. Retries without backoff can multiply cost during an outage, and a failure loop is the most common way an application quietly spends a great deal.
What is the realistic saving?
Frequently more than half, mostly from model choice and from sending less. Both are straightforward changes rather than optimisations, which is why they are worth doing first.