To test an LLM on your workload, run a fixed set of your real prompts through each candidate model, grade every output against pass and fail rules you wrote in advance, and record quality, cost per task and latency side by side. Choose the model that clears your quality bar at a cost and speed you accept, then re-run the same set whenever a new model ships.
Updated December 2, 2026
Why your own prompts
Public leaderboards rank models on shared tasks. Your prompts, output formats and edge cases are your own, so a model that tops a leaderboard can still fail your extraction schema or your tone rules. Use public scores to shortlist, and your own set to decide.
The testing process
Collect real prompts
Pull inputs from production logs, support tickets or the requests your team tests by hand. Cover every task type the model will see, in the proportions you expect, and keep the hard cases: long inputs, ambiguous requests, other languages, the ones that broke last time.
Remove or mask personal data before the set leaves your systems. Store the set with a version, so every later run uses exactly the same cases.
Every production failure becomes a new test case.
Define pass and fail
Write the rule for each case type before you look at any output. Use code checks wherever the answer is checkable: valid JSON, a required field, an exact label, a regex, a test that runs. Use an LLM grader with a short rubric only where the output is open-ended, such as tone or completeness.
Check the grader against human labels on a sample. If it disagrees with your reviewers often, fix the rubric before you trust any score.
Pick candidate models
Shortlist three to five models: the one you run today, a larger model as a quality reference, and smaller or open-weight models that might clear the bar for less. Public benchmarks and model cards help you build the shortlist.
Keep the comparison fair. Use the same prompt template, temperature, max tokens and tools for every model, and record the exact model id and provider you called.
Score quality and cost
Run every case through every candidate, more than once if outputs vary, and grade each output with your rules. Report the pass rate per task type, not one blended number, so a weak spot does not hide behind an average.
Log input and output tokens for every call and turn them into cost per task with each provider's listed prices. Add median and slow-tail latency, because a model that passes but answers too slowly still fails the product.
Set a quality bar
Decide the lowest pass rate you will accept for each task type, and write it down with the date and the eval set version. A bar written before the results arrive keeps the choice honest.
Among the models that clear the bar, weigh cost and latency. Different tasks often land on different models, and that is fine.
Re-test on new models
Models, versions and prices change often. Re-run the same versioned set when a model you would consider ships, when a price changes, when you edit the prompt, and on a regular schedule.
Compare each run with the last one. A model only replaces the current choice when it clears the same bar on the same cases.
What a scored run looks like
One eval set, five candidates, the same rules. Pass rate decides who clears the bar; cost and latency decide among the ones that do.
Pass rate on one task type, with cost per 1,000 tasksIllustrative numbers
Model A96%$4.10
Model B93%$1.25
Model C91%$0.60
Model D86%$0.35
Model E81%$0.20
Quality bar 90%
Repeat per task type, each with its own scores and barIllustrative
Support triageModel C
Invoice extractionModel B
Code reviewModel A
Write the result down as a policy: task, model, the bar it cleared, the eval set version and the date.
Checklist before you choose
Updated December 2, 2026
Turn results into routing
A policy on paper only helps if your API calls follow it. RouterPlus gives you three ways to put your results to work.
One key for every candidate
RouterPlus gives you one API key for many model providers, so running your eval set against another catalog model is a change of model id. The Playground lets you try catalog chat models in the browser first.
RouterPlus can pick the model for each workload from your own evals and production traffic. The team builds evals from your production outputs, or starts from the evals you already keep in Braintrust or Langfuse.
A routing policy says which provider connections and marketplace deployments may be used, in what order and who pays, for an org, a workspace or a key. It can set hard restrictions on region, zero data retention and data collection; a route with no recorded fact is refused. Under a policy, fallback stays within the first provider you selected, and the gateway never swaps in a different model.
A routing policy body, from the RouterPlus docs. Bind it to an org, a workspace or a key.
Tools that run evals
You can run the steps above with a spreadsheet and a script. These open-source, source-available and hosted tools handle datasets, graders and run history for you, and each fits a different setup.
Open-source CLI that runs every prompt against every model from one config file, with code and model-graded assertions.
Listed alphabetically. Descriptions follow each project's own documentation.
Questions teams ask
What is LLM evaluation?
LLM evaluation is measuring how well a model does a specific job. You run a set of inputs through the model, grade the outputs against rules or reference answers, and track the results with cost and latency, so you can compare models and catch regressions.
How many test cases do I need?
Enough to cover every task type and its known hard cases. Grow the set over time by adding each production failure as a new case.
Can an LLM grade another LLM's output?
Yes, for open-ended outputs such as tone or completeness. Give the grader a short rubric, check it against human labels on a sample, and use code checks instead wherever the answer can be verified directly.
Why not choose from public benchmarks?
Public leaderboards rank models on shared tasks. Your prompts, output formats and edge cases are your own, so a model that tops a leaderboard can still fail your extraction schema or your tone rules. Use public scores to shortlist, and your own set to decide.
How often should I re-test?
Re-run the same versioned eval set when a model you would consider ships, when a price changes, when you change the prompt, and on a regular schedule, then compare each run with the last.
How does RouterPlus use eval results?
Eval-based routing is available on request: RouterPlus picks the model for each workload from your own evals and production traffic, using evals built from your production outputs or imported from Braintrust or Langfuse. Routing policies then set provider order, funding and data restrictions for an org, a workspace or a key.
Do I need a separate API key for each provider?
No. RouterPlus gives you one API key for many model providers, so you can run the same eval set against different models by changing the model id.