LLM Selection: Don't Just Look at the Leaderboard, Look at the Bill

    A practical guide to choosing large language models based on real cost rather than benchmark rankings. It explains why leaderboards systematically mislead, how to break down the bill into measurable variables such as retries, context length, and caching, and offers a four-dimension evaluation framework, a tiered routing strategy, and a pre-launch load-testing checklist.

    1. One Benchmark, Two “First Places”

    Open a widely used model capability report and look at the overall ranking first. The top spots usually go to a few leading overseas models. In the domestic camp, the strongest general performers tend to be those built for long context and reasoning, followed by lightweight versions focused on high throughput and low latency, and then several in-house general-purpose models. This order roughly matches the prevailing impression in developer communities, so it rarely sparks debate.

    But keep scrolling to the “capability vs. price” page and the conclusion suddenly turns uncomfortable: only two or three lightweight, inference-cost-focused versions land in the “high cost-performance zone,” while the “domestic first place” from the overall ranking is placed in the “low cost-performance zone,” with a comment roughly meaning “capability is acceptable, but the API price is high.”

    This is not the report contradicting itself. Two evaluation systems are working at the same time: one measures “how strong the model is,” the other measures “how much each unit of capability costs.” In engineering practice, the latter is what actually determines the bill.

    2. Why Leaderboard Rankings Mislead Systematically

    The way a leaderboard is constructed determines its bias. First, the tasks are mostly static, single-turn, and automatically scorable, while real business runs on long chains, multiple turns, and tool calls. Second, the score is usually an arithmetic average of capabilities and ignores which of those capabilities your business actually uses. Third, leaderboards almost never account for price, rate limits, time to first token, or failed retries—the variables that truly drive cost.

    So a common mismatch appears: for two or three points on the overall leaderboard, a team picks a model that costs several times more per token, and in real scenarios those two or three points are diluted to near invisibility by retrieval quality, prompt design, and post-processing logic. The bill, however, is settled per token as-is.

    3. Breaking the “Bill” into Measurable Variables

    To determine the real ranking, write the cost formula clearly first. The expected cost of a single request can be approximated as:

    1. Expected cost per request =
    2. (input tokens × input price + output tokens × output price)
    3. / cache hit rate correction
    4. + retry count × cost per request
    5. + overflow cost of falling back to a backup model on failure

    The last two terms are the ones most easily overlooked. Let the failure rate be p and the retry limit be r; the expected amplification factor from retries is roughly 1/(1-p) (approximately 1+p when p is small). When p rises from 0.5% to 5%, cost increases by 5% out of nowhere, while the capability score does not move at all.

    Add two structural variables on top of that. One is context length: in long-context scenarios, input tokens are often more than ten times the output tokens, which amplifies the weight of the input price. The other is caching: if the platform supports a general capability like prefix caching, a stable system prompt and knowledge snippets can significantly dilute the cost of repeated input.

    4. A Reusable Four-Dimension Evaluation Framework

    Break selection into four dimensions, score each independently, and then apply weights, instead of deciding with a single overall score.

    • Effect dimension: use only samples from your own business set, not public leaderboards. A sample size of at least 300 is recommended, covering long-tail and adversarial inputs.
    • Cost dimension: use “cost per thousand successful requests” as the metric, not unit price. A low unit price with many retries is not necessarily cheap.
    • Throughput and latency dimension: focus on time to first token and output tokens per second, which directly determine user experience and the number of instances needed for concurrency.
    • Stability dimension: rate-limiting policy, error code distribution, availability-zone disaster recovery, and version change notification mechanisms.

    Illustrative weighted decision code:

    1. # Four-dimension weighted selection: higher score is better; the cost dimension is normalized (cheaper means a higher score)
    2. def score(model, weights):
    3. return (
    4. weights["quality"] * model["quality"] # business set accuracy 0~1
    5. + weights["cost"] * model["cost_score"] # normalized cost score 0~1
    6. + weights["latency"] * model["latency_score"]
    7. + weights["stability"] * model["stability_score"]
    8. )
    9. weights = {"quality": 0.45, "cost": 0.30, "latency": 0.15, "stability": 0.10}
    10. ranking = sorted(candidates, key=score, reverse=True)

    The key action is constructing cost_score: first replay real traffic to measure the average input/output token distribution, then plug it into the cost formula above, and finally apply min-max normalization. Only then does the “bill” enter the ranking for the first time.

    5. Tiered Routing: Let the Bill Come Down on Its Own

    Most businesses do not need every request to go to the strongest model. A practical general approach is three-tier routing:

    1. Lightweight tier: intent recognition, format conversion, summarization, and classification go to high-throughput small-parameter models;
    2. Main tier: routine Q&A and generation go to the model with the best overall cost-performance;
    3. Fallback tier: only complex reasoning, long documents, and code tasks call the high-capability, high-unit-price model.

    Pair this with two engineering constraints: first, set a confidence threshold and escalate only when confidence is low; second, cache the stable, unchanging prefix to reduce repeatedly billed input. In practice, this structure can usually compress overall cost to a fraction of “sending everything to the strongest model,” while keeping quality loss within an acceptable range.

    6. Load-Test Checklist: Six Things to Test Before Launch

    • Replay the real traffic distribution, not nicely constructed manual samples;
    • Measure the actual ratio and long tail of input/output tokens;
    • Record the failure rate and retry rate, and calculate the real amplification factor;
    • Test time to first token under concurrency and the point where rate limiting is triggered;
    • Verify the fallback path: whether the backup model can take over when the primary model is unavailable;
    • Set up version change monitoring and rerun the business set regression after model iterations.

    7. Conclusion

    The leaderboard answers “who is stronger”; the bill answers “who is more suitable.” The former is a ranking at the marketing and perception level; the latter is the ranking at the engineering and financial level. Switch the evaluation metric from “overall score” to “cost per thousand successful requests + business set effect,” then add tiered routing and caching, and selection turns from guesswork into reproducible calculation. As for the underlying compute and cloud resources, using a container platform to host inference services, object storage to accumulate sample sets, and log and monitoring services to cover observability—the general capabilities offered by a platform like Baidu AI Cloud are enough to support the framework above. What really needs to change is putting the bill on the same table as the leaderboard.