Choosing a Large Language Model by Cost Per Successful Task

    On multi-stage tasks, strict pass rates of frontier LLMs often cluster within a narrow range—a difference of just a few checkpoints—while per-call costs can differ by several multiples. Pushing reasoning strength higher increases latency and expense without necessarily producing more correct results. If you evaluate models purely by "which one is stronger," you can easily pay a large premium for marginal capability. A more reliable approach is to treat models as interchangeable inference services and, using the same tasks, the same scoring criteria, and the same cost accounting, calculate how much it costs to obtain one deliverable result—then decide your default routing based on that number.

    Define Success Before Comparing Models

    Coding, knowledge work, and multimodal understanding are not the same capability. Coding tasks should be judged on whether tests pass, whether patches apply cleanly, and whether regressions were introduced. Documents and analysis should be judged on whether facts are traceable, whether the structure is complete, and whether the model oversteps its evidence. Multimodal tasks should be judged on whether the model genuinely reads charts, audio/video, and document layout—not merely repeats filenames. Without a unified definition of “success,” neither price nor context length is comparable.

    Split your production traffic into four categories, each with its own acceptance criteria.

    1. Short interactions: completion, rewriting, classification, extraction. Success means correct formatting, all required fields present, and a manual spot-check error rate below threshold. These tasks are latency-sensitive and usually don’t need the longest context or the highest reasoning tier.

    2. Long-context understanding: contracts, specifications, logs, meeting notes. Success means citations are locatable, sources are not fabricated, and summaries are consistent with the source. The context window must cover real documents, but a bigger window doesn’t guarantee better recall—you still need chunking, retrieval, and citation verification.

    3. Multi-stage agentic tasks: read requirements, modify code, run checks, fix based on failures. Success criteria must be machine-verifiable—for example, all tests green, static checks passing, reviewable diffs. Relying on a model’s self-reported “done” will systematically overestimate capability.

    4. Multimodal input: images, audio/video, formatted documents. Success criteria should cover recognition, localization, and reasoning—avoid relying on open-ended Q&A and hoping for luck.

    A single model doesn’t have to handle all four. The first principle of routing is task fit, not brand loyalty.

    Evaluate Strictly, and Make It Reproducible

    Public leaderboards can serve as background, but not as a procurement basis. A self-built evaluation should meet at least five conditions:

    • Tasks come from real tickets or anonymized historical failure cases, not cherry-picked demos that play to a model’s strengths.
    • Every task has hidden checkpoints: unit tests, schema validation, prohibited items, citation spans.
    • Scoring looks at strict pass first, partial credit second—so “almost right” doesn’t mask delivery failure.
    • Reasoning tier, temperature, tool permissions, and retry counts are all fixed and written into the experiment record.
    • Samples cover easy, medium, and hard tiers; otherwise average scores get diluted by large numbers of easy tasks.

    When strict pass rates cluster together, don’t draw strategic conclusions from differences after the decimal point. Look first at confidence intervals and failure types: missed tests, hallucinated citations, tool-call loops, or timeouts. Failure type tells you more than ranking about what to do next—add retrieval, tighten tool constraints, or switch to a cheaper tier.

    Also run a separate “enhanced reasoning” comparison. Higher reasoning tiers typically add thinking tokens and wait time. If strict passes don’t increase—or only improve on a few tasks—don’t set the high tier as default. Common causes: over-reasoning breaks intermediate results that were already correct, output length limits are hit, or the model repeatedly second-guesses itself at uncertain points. The correct usage is to escalate per-task based on difficulty or first failure, not to max it out for everything.

    Make Decisions with Cost Per Success

    List price is just an input. The recommended decision metric is:

    Cost per success = (input token cost + output token cost + tool and retry cost) / strict pass count

    Add manual review hours if humans are in the loop. Four things to watch when comparing:

    1. Input and output prices are asymmetric. With long documents and multi-turn agents, output and intermediate reasoning dominate—you can’t look at input price alone.
    2. Fast tiers, batch tiers, and cache hits change the shape of the bill. Weight by real traffic proportions, not by the first line of the price sheet.
    3. Failures cost money too. Two cheap failures plus one manual review can cost more than one expensive run that succeeds on the first try.
    4. Price windows change. Calculate both “current price” and “price after contract or promotion ends” to avoid locking your architecture to short-term discounts.

    When strict pass rates are close, prefer the combination with lower cost per success, acceptable latency, and explainable failures. If a model is only clearly better on a high-value subset, put it on the escalation path, not the default path. A several-fold cost difference for a few checkpoints of capability is the norm, not the exception.

    Keep the illustrative calculation in your evaluation script, with accounting consistent with the bill:

    1. def cost_per_success(prompt_tokens, completion_tokens,
    2. price_in, price_out, successes):
    3. # price_*: price per million tokens; unit is flexible but must be consistent
    4. spend = (prompt_tokens * price_in + completion_tokens * price_out) / 1_000_000
    5. if successes <= 0:
    6. return None # no strict passes; don't disguise "unusable" as infinity
    7. return spend / successes

    Models with zero strict passes don’t participate in the “cheaper” ranking—they only get their failure modes recorded.

    Routing, Fallbacks, and Release Windows

    Model releases often cluster within a few weeks, and default configurations go stale quickly. Make routing an explicit policy rather than model names scattered through business code.

    • Default model handles most short tasks and medium-length contexts.
    • Escalation model is triggered only by a difficulty classifier, a first strict failure, or high-value tickets—with a per-call cost cap.
    • Fallback model covers timeouts, rate limits, and safety-policy blocks. Fallbacks must come with downgraded capability expectations—don’t pretend equivalence.
    • All routing decisions are logged with task type, reasoning tier, tokens, latency, and whether the run strictly passed, for weekly review.

    Before switching, run shadow traffic: the new route scores but doesn’t deliver, compared against a week of cost per success and tail latency. After passing, roll out gradually by business line. Keep the old model for one release cycle, so you have a way back if the vendor rolls back.

    If your team is still on defaults set months ago, re-run your evaluation set now—don’t wait for rumors of the next major release. The value of the window is that price, context, and tool protocols change together; testing and adjusting early is cheaper than reconciling the bill afterward.

    Implementation Checklist

    • Version your evaluation sets alongside prompts and tool schemas in the repository.
    • Write success criteria as automated checks; humans only spot-check edge cases.
    • Review three charts weekly: strict pass rate, cost per success, P95 latency.
    • Default to a medium reasoning tier; raise it only when a controlled experiment proves the gain covers the cost.
    • Use retrieval instead of stuffing the whole context; for multimodal, pass only the segments the task needs.
    • Budget contracts by “number of successes,” not “total tokens,” and include a retry coefficient.

    Models will keep getting replaced; the method stays: the same task set, the same definition of strict success, the same cost accounting. Who sits on the default path is decided not by slogans, but by reproducible cost per success.