Problem: businesses pick an AI model from rankings or by habit, then discover it is mediocre on their actual work or too expensive at full volume. Result: a small scorecard that turns hand-labelled verdicts on your own test items into a quality score, a rewrite rate and a monthly cost per model. Stack: Python 3.10+ standard library (tested on 3.15.2). Boundaries: you label the outputs yourself; the script does not call any model or know real prices, and the example numbers are invented
Why your own tasks
I work with a mix of models, Claude, Codex, GLM, Gemini and others, each with a role: one plans, one builds, one audits, one draws, one handles voice. That mix did not come from rankings. It came from running real tasks through several models and keeping the one that did each job best. Tests on someone else's examples say little about your emails, contracts and customers
A team of 8 AI agents works for me daily. My main agent has a primary model and an automatic backup, which is part of the same idea: a role, a first choice and a fallback, all decided on real work
Input, processing, output
Input: for each model, a list of verdicts on the same test items, judged by the person who usually does the work: send as is, send after edits, rewrite; plus a cost per call and the expected monthly number of calls
Processing: average a 0 to 2 score into a 0 to 1 quality, count the rewrite share, multiply cost by volume
Output: one row per model, sorted by quality and then by monthly cost
The example
from statistics import mean
SCORE = {"send": 2, "edit": 1, "rewrite": 0}
def scorecard(results: dict, cost_per_call: dict, monthly_calls: int):
"""results: model -> list of verdicts on your own test items."""
rows = []
for model, verdicts in results.items():
quality = mean(SCORE[v] for v in verdicts) / 2 # 0..1
rewrites = verdicts.count("rewrite") / len(verdicts)
monthly = cost_per_call[model] * monthly_calls
rows.append((model, round(quality, 2), f"{rewrites:.0%}", round(monthly, 2)))
return sorted(rows, key=lambda r: (-r[1], r[3]))
if __name__ == "__main__":
# invented verdicts on ten emails and invented prices, for illustration
results = {
"model_a": ["send"] * 7 + ["edit"] * 2 + ["rewrite"],
"model_b": ["send"] * 4 + ["edit"] * 3 + ["rewrite"] * 3,
"model_c": ["send"] * 6 + ["edit"] * 4,
}
cost = {"model_a": 0.02, "model_b": 0.004, "model_c": 0.008}
for row in scorecard(results, cost, monthly_calls=1500):
print(row)
Output, exactly as printed when I ran it:
('model_c', 0.8, '0%', 12.0)
('model_a', 0.8, '10%', 30.0)
('model_b', 0.55, '30%', 6.0)
In this invented case two models tie on quality, but one never needed a rewrite and costs less than half as much at full volume. The cheapest model loses because three items in ten had to be redone, and redoing work is the hidden cost a price list never shows
Choosing test items
Ten items per task is enough to start, if they are the right ten. Take them from last week's real work, not from memory, and include two or three hard ones: an email with two requests in it, a contract with an unusual clause, a customer who writes in fragments. Easy items make every model look good; the hard ones are where the differences show. Write down the instruction you give each model and keep it identical across them; changing the prompt between models turns the comparison into a test of your prompting rather than of the models
Design notes
Label before you look at prices. Knowing which model is cheap biases the verdicts
Use the person who does the work. Their "send as is" is the only quality bar that matters for this task
Count rewrites separately. An average can hide a model that is usually fine and occasionally disastrous; the rewrite share makes that visible
Price at full volume. A model that looks cheap in a pilot can dominate the bill once every request goes through it
Keep the test set. When a model updates, rerun the same items. It takes half an hour and tells you whether to switch before customers notice anything
Beyond the scorecard
Add a second model as reviewer for anything that matters. A model is poor at catching its own mistakes; a different one looks with fresh eyes, and one round of review is usually enough. And plan a fallback: services fail and hit limits, and important work should switch to a backup automatically
When one model is enough
A single clear task does not need a mix. A clinic chatbot answering only from documents that cover about 114 price items and 48 services needs good documents far more than a second model. Local models are another case where restraint pays: I transcribe long calls on my own computer, about 10 minutes for a call of almost an hour, but have not needed local large language models yet
Reproduce it
- Save the code as
scorecard.pyand runpython3 scorecard.py - Replace the verdicts with your own labels on ten real items
- Replace the costs with current prices and your monthly volume
- Rerun whenever a model updates
The non-technical version: AI tools for business: picking the right mix
This article was created with the help of AI.



Top comments (0)