Test AI models v2.0 is hereSee what's new
Test AI models
Blog / Guide

How to cut your LLM API bill: test before you route

Before you add routing or caching, test whether a cheaper model already passes your own criteria. A short method, with one dated test as the example.

Marko MilojkovicFounder, Test AI models
6 min read

Key takeaways

  • A first step in cutting an LLM bill is to find out whether a cheaper model already passes your own criteria, before you add routing or caching.
  • Write your criteria before you run anything, so the pass mark cannot drift toward the answer you already like.
  • Compare models by cost per million requests, not by price per token, because models use very different amounts of thinking.
  • One test is a sample of one, so check again when your prompt, your traffic or the model list changes.

To cut an LLM API bill, find the cheapest model that passes your own quality check on your real prompt. Routing and caching reduce or redirect calls, but only a test shows whether a cheaper model passes. Run the prompt on several models, write down what a good answer must include, and compare cost per million requests.

StepWhat you doWhat you get
1Pick the one call that costs you the mostA single prompt and a typical input
2Write your criteria before you runA pass mark that cannot drift
3Run it on models from several providersCost per 1M requests and speed for each
4Let an LLM judge check every answerWhich models pass, and which do not
5Try cheaper models, then watch for new onesThe cheapest pass, and a signal when it changes

Start with the one call that costs you the most

Your provider dashboard usually shows spend by model and by day. Your own logs show which feature makes the calls. Pick the single prompt that adds the most to the bill, and take one typical input for it.

Write down three things before you touch a tool.

Prompt:        the exact text you send today
Typical input: one real example, with anything confidential removed
Current model: the model name and its settings

Prompts go to the model providers when you run a test, so remove names, keys and customer data first. One prompt is enough to start. You can repeat the method for the next most expensive call.

Write what a good answer must include before you run anything

Criteria are a few plain sentences that an answer either meets or does not. Write them first. If you read the answers before you write the pass mark, you will tend to write one that the answer you already like passes.

A weak rule says "a good, professional answer". A strong one names the values, fixes the format and says what fails. For the ticket-sorting test below, the rule was:

Exactly six lines in ticket order and nothing else. The categories must be:
1 billing, 2 bug, 3 question, 4 billing, 5 bug, 6 question. Each line is
"<number>: <category>" in lowercase. Any extra text, a wrong category or a
missing line is a fail.

Our guide on how to write a pass rule has more weak and strong examples you can copy.

Run it on models from several providers

Put the prompt in a test and pick models from different providers, including the one you use now. Compare them by cost per 1M requests, not by price per token. Models use very different amounts of thinking before they answer, and some providers charge a flat fee per request, so the price list alone misleads. We explain the difference in cost per run vs price per token.

Test AI models runs up to 10 models in one test on pay as you go and up to 20 on PRO. You see every answer next to its cost and speed.

Let an LLM judge check every answer against your criteria

After the run, the LLM judge asks a panel of models from other companies whether each answer meets your criteria. A judge is never from the same company as the model that wrote the answer, and an uncertain verdict is never counted as a pass.

Then press Find cheaper models. It runs your prompt on cheaper models you have not tried yet, four at a time, and checks them against the same criteria. You see the credits it needs before anything runs, and it stops when there is no cheaper model left to try.

What one test looked like

We ran the method on a deliberately simple job. On 15 November 2026 we ran 10 models from 9 providers on 6 made-up support tickets, with the rule above, and all 10 passed. The table shows 5 of the 10.

ModelCost per 1M requestsResult
Claude Haiku 5.5$40Pass, cheapest pass
Mistral Small 4$46Pass
DeepSeek V4.1 Flash$129Pass
Claude Sonnet 5.5$794Pass
Perplexity Sonar$5,160Pass, mostly a flat per-request fee

The cheapest pass cost $40 per million requests and the most expensive pass cost $5,160, about 129 times more for the same result on this prompt. The app's own line for the cheapest pass was "99% cheaper than the dearest model that also passed".

Read that as one prompt, one date, and list prices on 15 November 2026. It is a sample of one on made-up tickets, not a ranking of AI models and not a saving anyone has made in production. Your prompt may pass on fewer models, or on none of the cheap ones, and that is also a useful answer.

Then add routing or caching

Once you know a cheaper model passes, the other tools get easier to use. Our take: run the model test first.

  • Routing sends some calls to a cheaper model. It needs a cheaper model that passes, and a rule for which calls count as easy. A test gives you both.
  • Caching reuses an answer when the same input comes back. It pays off when inputs really repeat, and it does nothing for calls that are always different.

Neither replaces checking the answers. A cheaper path that fails your criteria on 1 call in 10 is not a saving.

Keep checking after you switch

Models and prices change. A Monitor re-runs your test on a schedule and tells you when an answer changes, or when a cheaper model among those you tested appears. We explain what it checks and what it costs in how monitors watch a test.

The catch

  • One prompt is a sample of one. Test a second prompt from the same feature before you move traffic.
  • Prices are list prices. Your discounts, cached input prices and batch rates are not in the numbers.
  • Your criteria are the quality bar. A vague rule lets weak answers pass, and a strict one fails good ones. Read a sample of answers yourself.
  • A test does not see your real traffic. Inputs that are longer or messier than your example can change the result.

Run your own test

Pick the one call that costs you the most, write its criteria, and run it on a handful of models. It takes one prompt and a few models, and it shows whether a cheaper model passes your own check.

Find the cheaper model for your own prompt
  • 10k free credits
  • No card
Run your own test

Marko

Questions

Is the cheapest model that passes always the right one to switch to?

No. It is the cheapest one that passed your criteria on one prompt. Read a sample of its answers yourself, and test again on a second prompt before you move real traffic.

Do routing and caching still matter?

Yes. They reduce or redirect calls, and they work better once you know which cheaper model passes. Caching helps when the same input repeats often. Routing needs a cheaper model to send easy calls to, and a quality bar to decide which calls are easy.

How many models should I test?

Enough to cover the price range, usually 5 to 10 from different providers. Test AI models runs up to 10 models in one test on pay as you go and up to 20 on PRO.

Does a test cost anything?

Yes, it uses credits, and you see the credits a run needs to start before anything runs. New accounts get up to 10,000 free credits, with no card needed.

Marko MilojkovicFounder, Test AI models

Runs Eterna Creative and built Test AI models after repeated multi-provider LLM integration work for client products.

About the team