A model that scores 95% on your accuracy eval but costs 40 cents and takes 12 seconds per query can still be the wrong choice, because quality is not one number. Real product quality is the joint outcome of accuracy, p95 latency, and cost-per-successful-task — and shipping decisions that ignore two of those three are gambling with unit economics.

Quick answer: Treat accuracy, p95 latency, and cost-per-successful-task as three coequal eval dimensions, not one accuracy score with two afterthoughts. Plot quality against cost to find the "knee of the curve" — the point past which paying more buys almost no extra quality — and set explicit numeric budgets for all three before you ship.

Why Quality Is a Three-Variable Function, Not One

Most eval dashboards report a single accuracy percentage, and that number is a trap. It tells you whether the model got the answer right, but says nothing about whether a real user would tolerate the wait or whether the business can afford to serve that answer at scale. A PM who only optimizes accuracy is optimizing one-third of the actual product.

This isn't a fringe idea. Stanford's Center for Research on Foundation Models built its HELM (Holistic Evaluation of Language Models) benchmark specifically because accuracy-only leaderboards were misleading teams. HELM scores models across accuracy, calibration, robustness, fairness, and efficiency as separate, coequal axes — precisely because a model that wins on one can lose badly on another.

Efficiency, in HELM's framing, covers exactly the terrain most product evals skip: how much compute, time, and money a correct answer actually costs. Treat that as a mandate, not a footnote. If your eval suite doesn't yet have a structured way of defining pass/fail criteria at all, this site's complete guide to AI evals covers how accuracy thresholds get built in the first place, before layering cost and latency on top.

The practical failure mode looks like this: a team ships the highest-accuracy model from its eval leaderboard, discovers three weeks later that p95 latency tripled support tickets about a "frozen" assistant, and only then finds the new model's per-query cost erased the feature's margin. None of that was invisible. It just wasn't measured.

Part of the confusion is that "model quality" and "product quality" are different things wearing the same word. Model quality is intrinsic — how often the model gets the answer right, independent of context. Product quality is experienced — how the interaction actually felt, including whether the user waited too long or whether the feature could exist at that price point at all. Evals that only score the model are answering the easier, less useful question.

The Metrics: p95 Latency and Cost-per-Successful-Task, Defined

p95 latency and cost-per-successful-task are the two metrics missing from most eval suites, and both are cheap to compute once you're already logging eval runs. p95 latency is the response time that 95% of requests beat — it exposes the slow tail an average silently hides. Cost-per-successful-task divides total spend by the count of tasks the system actually completed correctly, not the raw query count.

Why p95, not average

Averages lie about user experience. If 90 requests return in 2 seconds and 10 time out at 30 seconds, the average (~4.8s) looks fine while one in ten users has a broken experience. This isn't a new insight — it's the core argument of Google's Jeff Dean and Luiz André Barroso in their widely cited paper "The Tail at Scale," which holds that tail latency, not average latency, is what determines whether a system feels reliable at scale.

For an LLM product, the tail is often where things break worst. Retries, tool-call chains, and long-context prompts blow past typical latency and drag the p95 (or p99, for stricter products) far past what a mean would suggest.

Why cost-per-successful-task, not cost-per-call

Raw API cost per call rewards a cheap model that fails often and gets retried, or that produces answers a human then has to redo. Cost-per-successful-task equals total cost of all attempts divided by the number of tasks completed to your quality bar. It's the number that actually maps to the job a user hired your product to do — a framing borrowed directly from jobs-to-be-done thinking, where the unit of value is the completed job, not the individual interaction.

Eval dimensionWhat it measuresCommon metricFailure mode if ignored
AccuracyCorrectness against a labeled or judged standard% pass rate on a golden setConfidently wrong answers ship
LatencyResponsiveness under real loadp50 / p95 / p99 response timeMedian looks fine, tail users churn
CostEconomic sustainability at volumeCost-per-successful-taskQuality wins, margin dies

That accuracy row still needs a real foundation: a representative, labeled set of examples to score against, which is exactly what building a first golden dataset of about 50 examples is for. And when the "correctness" judgment itself comes from another model rather than a human rubric, it's worth knowing when an LLM-as-judge can actually be trusted before building cost and latency math on top of a shaky accuracy signal.

What to log on every eval run

Cost and latency evals fall apart when the underlying data isn't captured at run time — retrofitting it later means re-running everything. At minimum, log these fields per call:

  • Wall-clock latency, timestamped from request to final token
  • Input and output token counts, since most provider pricing is token-metered
  • Dollar cost, computed from the provider's published rate at call time, not a stale estimate
  • Pass/fail label against your accuracy rubric, so cost and latency can be sliced by outcome, not just averaged blindly
  • Retry count, since a retried call's full cost belongs to whichever attempt finally succeeded

Plotting the Quality-Cost Frontier to Find the Knee of the Curve

Plot every model or configuration you're considering as a single point, with quality score on the y-axis and cost-per-successful-task on the x-axis. The models that sit on the upper-left "frontier" — best quality for their cost, with nothing both cheaper and better — are your real candidates. Everything else is dominated and can be dropped from consideration immediately.

Independent benchmarking efforts do exactly this across providers. Artificial Analysis, for instance, publishes quality-versus-price and quality-versus-speed frontier charts across frontier and mid-tier models, and the shape is consistent: quality rises steeply at first, then flattens, while price keeps climbing roughly linearly or worse.

That flattening point is the knee of the curve — the spot where an additional dollar buys a shrinking sliver of additional quality. Past the knee, you're paying a premium for marginal gains your users may never perceive.

Finding the frontier mechanically is simple: sort every candidate by cost, then discard any point that's beaten on quality by something cheaper or equal in price. What survives is the Pareto frontier — the only models worth deliberating over. Everything discarded is what economists call dominated, and no rational buyer should choose it once the alternative exists on the same chart.

Here's an illustrative shape (not sourced from any specific benchmark) of what that curve typically looks like across several tiers of one model family:

Model tier (illustrative)Quality scoreCost per successful taskNotes
Small82%$0.02Fast, cheap, misses edge cases
Mid90%$0.06Near the knee — strong value
Large95%$0.42Past the knee — steep premium
Frontier96.5%$1.10Marginal gain, disproportionate cost

The jump from mid to large tier buys 5 points of quality for roughly 7x the cost; the jump from large to frontier buys 1.5 points for another 2.6x. The knee sits at the mid tier — which is exactly the setup for the scenario below.

Broader industry data supports re-plotting this over time, too, not just across current models. a16z's research on LLM pricing, often summarized under the term "LLMflation," has tracked cost-per-token for a given quality bar falling sharply year over year — meaning today's knee will keep moving left. Re-run the frontier plot whenever a new model generation ships. It's a living chart, not a one-time decision.

The Scenario: A 90%-Quality Model That Wins on Unit Economics

A smaller model at 90% quality can beat a larger model at 95% quality once you multiply by volume, because the larger model's cost and latency premiums compound while its accuracy edge doesn't. This is worth running as explicit numbers rather than trusting intuition.

Take the illustrative mid-tier and large-tier models from the table above, applied to a support-triage feature handling 500,000 queries a month:

Metric (illustrative scenario)Model B — 90% qualityModel A — 95% quality
Cost per successful task$0.06$0.42
p95 latency2.5s11.8s
Monthly cost at 500K queries~$30,000~$210,000
Quality advantagebaseline+5 points
Marginal cost for the +5 points—+$180,000/month

Five additional accuracy points cost an extra $180,000 a month in this illustrative case — roughly $36,000 per accuracy point. Whether that trade is worth it depends entirely on what those points are worth to the business, a question most eval dashboards never ask because they never show cost in the same view as quality.

The latency gap compounds the problem. An 11.8-second p95 sits well past the point where users perceive an interaction as "hung" rather than "thinking," which shows up as abandonment mid-interaction — the kind of friction point customer journey mapping is built to surface, since a technically correct answer delivered after the user has already left isn't a successful task at all.

In this scenario, Model B wins the product decision even though Model A wins the accuracy leaderboard, because cost-per-successful-task and p95 latency are product requirements, not nice-to-haves.

When the premium model is still the right call

None of this means the higher-cost model is always wrong. If the task is high-stakes and low-volume — a legal-clause review run a few hundred times a month, say — the extra accuracy can be worth far more than its dollar premium, since one bad answer costs more than a year of the price difference. The math above only breaks the expensive model's case at meaningful volume, which is exactly why re-running the frontier at your real projected scale matters more than at a demo's trickle of traffic.

Setting Explicit Cost and Latency Budgets

Set a numeric ceiling for p95 latency and cost-per-successful-task before comparing models, the same way you'd set an accuracy floor. A budget defined after seeing the results isn't a budget — it's a rationalization. Decide the ceilings from the product's real constraints, then let models pass or fail against them.

A workable process:

  1. Anchor latency budgets to the interaction type. A synchronous chat reply tolerates roughly 1-3 seconds before it reads as slow; a multi-step agentic task running in the background can tolerate much more, as long as the user knows it's working. Research from METR on how reliably AI agents complete longer-horizon tasks is a useful reminder that a latency budget should be scoped to the task shape, not one global number.
  2. Anchor cost budgets to the business model. A feature priced into a flat subscription has a hard cost ceiling per task; a metered or high-margin feature has more room. Work backward from a gross-margin target to a maximum cost-per-successful-task.
  3. Make both budgets failable, not advisory. A model that blows the latency or cost budget should fail the eval outright, the same way a model that misses the accuracy floor does, regardless of how well it scores elsewhere.
  4. Re-test at the volume you'll actually run at. Cost and latency behave differently at 500 queries a day versus 500,000; test at realistic concurrency, not a demo's happy path.
  5. Revisit budgets on every model or prompt change. A prompt rewrite that improves accuracy by adding few-shot examples can quietly double token count and latency — track that as a regression, not a side effect.

Budgets also need to survive contact with production, not just the eval run that approved a launch. Provider price changes, traffic mix shifts, and prompt drift can all move cost and latency after ship without touching accuracy at all — so treat the same three thresholds as ongoing monitors, not a one-time gate that gets checked once and forgotten.

This is the same discipline behind building numeric, failable thresholds into evals generally: a pass/fail bar only works if it's a number someone committed to in advance, not a vibe check after the fact. Prodinja's Evals workspace is built around that same instinct — it's designed to walk you through setting explicit numeric thresholds for a run, and nothing stops you from adding a cost ceiling and a p95 latency ceiling right alongside the accuracy bar, so a model change that helps one dimension can't quietly break another without tripping a failure.

Key Takeaways

  • Quality is three numbers, not one: accuracy, p95 latency, and cost-per-successful-task belong on the same eval dashboard, every time.
  • Use p95 (or p99), never average latency — averages hide the slow tail that actually drives user complaints and churn.
  • Cost-per-successful-task, not cost-per-call, is the number that maps to real unit economics, since it penalizes retries and failures rather than rewarding them.
  • Plot quality against cost to find the knee of the curve — the point where extra spend stops buying meaningfully more quality.
  • A lower-accuracy model can be the right product decision when it clears cost and latency budgets that a higher-accuracy model blows through.
  • Set numeric cost and latency budgets before comparing models, and make all three dimensions failable, not just accuracy.
  • Re-run the frontier analysis regularly — model pricing and speed both shift fast enough to move the knee of the curve within a single quarter.

Frequently Asked Questions

What is cost-per-successful-task in LLM evaluation?

Cost-per-successful-task is total spend, including retries and failed attempts, divided by the number of tasks completed to your quality bar. It's a more honest unit-economics metric than raw cost-per-call, since a cheap model that fails often can cost more per real outcome than a pricier model that rarely fails.

Why does p95 latency matter more than average latency for AI products?

Average latency hides the slow tail that drives the worst user experiences and support complaints. p95 (or p99 for stricter products) shows the response time nearly all users actually experience at the edge, which is where perceived reliability and abandonment get decided — the same logic behind Google's foundational "Tail at Scale" argument for measuring tail latency in any distributed system.

How do you plot quality versus cost to find the knee of the curve?

Plot each model or configuration as one point, with a quality score on the y-axis and cost-per-successful-task on the x-axis. Quality typically rises steeply at low cost, then flattens while cost keeps climbing — the knee is where an added dollar starts buying only a sliver of extra quality, and anything to the lower-right of that frontier can usually be dropped from consideration.

Should I always pick the cheapest model that clears my accuracy bar?

Not automatically — cheapest-that-passes is a reasonable default, but check latency too, since a slower model can hurt the user experience even at low cost. Re-verify at your real production volume and concurrency as well, since cost and latency behavior at low volume doesn't always predict what happens at scale.

How often should cost and latency budgets be re-evaluated?

Re-evaluate any time you change models, prompts, or context length, and on a standing cadence — quarterly is common — even without changes, since provider pricing and model speed shift often enough to move the knee of the curve. Treat the budget review as part of the same cycle as accuracy re-testing, not a separate process.