Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Explainer

How to choose an LLM for a task without trusting leaderboards

A method for choosing an LLM: build 20 test cases from your own work, then compare accuracy, cost per correct answer, latency and data terms. No rankings.

By 8 min read
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

To choose an LLM for a task, test the candidates on your own work rather than reading a leaderboard. Write 20 cases that look like the real job, each with a way to tell a right answer from a wrong one. Run two to four models on them, and compare four things: how many they get right, what each correct answer costs, how long they take, and whether the provider’s data terms fit what you are sending. Pick the cheapest model that clears your quality bar, write down why, and re-run the test when a new model comes out.

This page gives a method and no ranking. We do not publish “best model” lists, because the answer depends on your task, and a ranking from someone else’s test set tells you little about yours. Sources are linked inline; facts were checked on 25 November 2026.

Why leaderboards are the wrong starting point

Public leaderboards answer a different question from yours. A general ranking tells you which model people preferred, or which scored highest, across a mix of tasks someone else chose. You need to know which model does your task, at your volume, within your budget and rules.

There are also known problems with how the numbers are made:

  • Preference arenas can be gamed. “The Leaderboard Illusion”, a 2025 study of Chatbot Arena, found that “undisclosed private testing practices benefit a handful of providers” (Singh et al., arXiv). Providers could test many private variants and publish the best.
  • Benchmarks leak into training data. Once a test set is public, models can be trained on it, on purpose or not. Scores then measure memory as much as skill. The glossary entry on data contamination explains how this happens.
  • Benchmarks are not your inputs. Your support tickets, contracts or code have their own vocabulary, length and edge cases. A model that tops a maths benchmark may still mangle your date formats.

Leaderboards are still useful for one thing: building a shortlist. Use them to pick which two to four models to test, then ignore the ranking.

Step 1: write down what the task needs

Before you test anything, write a short spec. It stops you from choosing on vibes after the fact.

  • The task in one sentence. “Classify inbound support emails into one of nine queues.”
  • What correct means. “The queue matches what a senior agent would choose.”
  • Volume and latency. “About 4,000 emails a day, answered within 10 seconds.”
  • Hard constraints. Data that must not leave the EU, a contract that rules out training on inputs, a need to run offline.
  • Budget. A rough cost ceiling per month or per task.

Hard constraints remove candidates before you spend money testing them. If data must stay on your own hardware, you are choosing between local models, not between hosted APIs.

Step 2: build a 20-case test set

Take 20 real examples of the task. If you are not live yet, write realistic ones, including awkward cases. Aim for a mix:

  • 12 to 14 ordinary cases, the bulk of the real work,
  • 4 to 5 hard cases you know cause trouble (ambiguous inputs, long documents, mixed languages),
  • 2 or 3 cases where the right answer is “I can’t do this” or “this needs a human”.

For each case, write down how to check the answer. Prefer checks that a script can run: an exact label, a number within a tolerance, valid JSON with the right fields, a test that passes. Use a model as judge only where you have to, and calibrate it first, as LLM-as-a-judge shows.

Why 20? It is enough to separate a model that gets 18 right from one that gets 11, and small enough that you can read every output in an afternoon. It is not enough to separate 18 from 17. Anthropic’s own guidance on evals favours volume: “More questions with slightly lower signal automated grading is better than fewer questions with high-quality human hand-graded evals” (Anthropic docs). Treat 20 cases as a screen. If two models finish close, or the decision is expensive to reverse, grow the set to 100 or more before you commit.

Step 3: run each candidate the same way

Use the same prompt, the same settings and the same inputs for every model. Record, for each case and model:

  • whether the answer was correct,
  • input and output tokens (including reasoning tokens, which most APIs bill as output),
  • wall-clock time from request to complete answer.

If a model has an effort or reasoning setting, test it at two levels, because the cheaper setting is often good enough. Prompting reasoning models covers how effort works.

Run each case at least twice if the task is open-ended. Models vary between runs, and a model that gets a case right once in three tries is not a model that gets it right.

Step 4: compare cost per correct answer, not price per token

Price per million tokens is the wrong unit. A cheaper model that is wrong more often can cost more in practice, once you count the retries, the human corrections and the customers you annoy. Cost per correct answer puts quality and price in one number:

cost per correct answer = total cost of the run / number of correct answers

Here is a small script that turns a results file into that table. Put each provider’s current prices in PRICES, copied from their pricing page on the day you test (Anthropic, OpenAI, Google).

"""Summarise a model bake-off: accuracy, cost per correct answer and latency."""
import csv
import statistics
import sys
from collections import defaultdict

# Prices per million tokens, copied from each provider's pricing page on the day you test.
PRICES = {
    "model-a": {"in": 3.00, "out": 15.00},
    "model-b": {"in": 0.80, "out": 4.00},
}

rows = defaultdict(list)
with open(sys.argv[1], newline="") as f:
    for r in csv.DictReader(f):
        rows[r["model"]].append(r)

print(f"{'model':<10}{'correct':>9}{'cost $':>9}{'$/correct':>11}{'p50 s':>8}{'p95 s':>8}")
for model, runs in rows.items():
    p = PRICES[model]
    cost = sum(int(r["input_tokens"]) * p["in"] + int(r["output_tokens"]) * p["out"] for r in runs) / 1e6
    correct = sum(r["correct"] == "1" for r in runs)
    secs = sorted(float(r["seconds"]) for r in runs)
    p95 = secs[min(len(secs) - 1, round(0.95 * (len(secs) - 1)))]
    per_correct = cost / correct if correct else float("inf")
    print(f"{model:<10}{correct:>5}/{len(runs):<3}{cost:>9.4f}{per_correct:>11.5f}{statistics.median(secs):>8.2f}{p95:>8.2f}")

The results file has one row per case and model:

case,model,correct,input_tokens,output_tokens,seconds
case-01,model-a,1,1200,191,4.37
case-01,model-b,1,1200,170,1.71

Run on a made-up file of 20 cases (the model names and prices are placeholders, there only to show the arithmetic), it prints:

model       correct   cost $  $/correct   p50 s   p95 s
model-a      18/20    0.1325    0.00736    3.37    4.33
model-b      15/20    0.0328    0.00219    1.27    2.17

Read a table like this in order. First, does either model clear your quality bar? If you need 90% and only model A reaches it, the cost column does not matter yet: try a better prompt for model B, and if it still falls short, choose A. If both clear the bar, the cheaper cost per correct answer usually wins, unless latency rules it out.

At scale, multiply out. At 4,000 tasks a day, a difference of half a cent per correct answer is about 20 dollars a day. That is worth an afternoon of testing; it is not worth a week.

Step 5: check latency where users wait

Two numbers matter. The median tells you the usual experience. The 95th percentile tells you how bad the slow cases are, and users remember those. For chat interfaces, also measure time to first token, because streaming makes a slow model feel faster than it is (Anthropic’s latency guide covers the levers).

For batch work that nobody watches, latency barely matters; many providers offer batch APIs at a lower price for work that can wait.

Step 6: read the data terms before you send real data

The test so far tells you which model can do the job. It does not tell you whether you are allowed to send it the data. For each provider on your shortlist, check:

  • Training. Are inputs and outputs used to train models? For example, OpenAI’s API docs say data sent to the API “is not used to train or improve OpenAI models” unless you opt in (OpenAI). Consumer chat apps often have different defaults from the API.
  • Retention. How long are requests kept, and for what? The same OpenAI page says abuse-monitoring logs are kept “for up to 30 days” by default. Zero data retention is usually an account-level agreement, and some features are not eligible for it.
  • Region. Where is data processed and stored, and can you choose?
  • Your contract. What your customer agreements and your own policies allow.

What happens to your data in AI tools explains these terms for each major provider. If you cannot get a clear answer, treat that as a reason to rule the provider out.

Write the decision down

Keep a short record so the next person does not repeat the work:

Task: support email triage (9 queues)
Date tested: 25 November 2026
Candidates: [model A, model B, model C] at [settings]
Test set: 20 cases, tickets 2026-10-01 to 2026-10-31, file evals/triage-20.csv
Result: model B, 19/20, lowest cost per correct answer, p95 under 3 s
Rejected: model A (same accuracy, 3x cost), model C (data processed outside the EU)
Re-test when: a new model from a shortlisted provider, a price change, or accuracy in production drops

Keep the test set. When a new model appears, you can test it in an hour instead of reading launch posts and guessing.

When this method is not enough

  • Agents and long tasks. One case is many steps, so a single correct/incorrect flag hides a lot. Use outcome and trajectory checks as in evaluate AI agents, and for coding agents, evaluate them on your own repository.
  • High-stakes decisions. Medical, legal or financial output needs a much larger test set, domain experts as graders, and usually a human in the loop regardless of the model.
  • Taste and tone. Where “correct” is subjective (marketing copy, say), blind side-by-side review by the people who will use the output works better than a score.

Next steps

Covers

Back to top