Choosing a Large Language Model: From Capability Evaluation to Cost Optimization in Practice

    This guide explains how developers can evaluate large language models (LLMs) by the business tasks they complete, rather than by single headline metrics. It covers task-chain evaluation, effective task cost, evaluation set design, layered routing, output validation, and gradual rollout to production.

    1. Start Model Evaluation From Business Problems

    Each time a new generation of large language models is released, discussion tends to focus on a few questions: Has capability clearly improved? Is the price reasonable? Does the model represent the industry’s new state of the art? These questions are worth attention, but for developers who need to integrate a model, they are not specific enough.

    Businesses do not buy abstract “intelligence.” They buy the ability to complete tasks. A customer service system needs to answer questions accurately from knowledge materials. A document processing system needs to extract fields reliably. A coding assistant needs to generate code that meets constraints and passes tests. Different scenarios place different demands on a model, so a single overall ranking rarely leads directly to a purchasing decision.

    A more useful set of questions is therefore:

    • Within a clearly defined input scope, can the model consistently meet quality requirements?
    • Does it remain stable when information is missing, materials conflict, or malicious instructions appear?
    • How many calls, how much waiting time, and how much human review are needed to reach the same business goal?
    • After a model upgrade, do existing workflows face new compatibility issues?

    These questions point to one principle: a model’s value should be measured by how well it completes actual business tasks, not by a single metric from its release announcement.

    2. Moving From Individual Capabilities to Complete Task Chains

    1. Separating Response Quality From Task Completion Rate

    A fluent answer does not necessarily complete a business task.

    Take information extraction as an example. A model may understand a document correctly, but the downstream system still cannot use the result if the model omits a required field, produces the wrong output format, or adds information that does not exist in the source. For automated workflows, format compliance, field completeness, and factual accuracy are usually equally important.

    Evaluation can be split into four layers:

    The first layer is semantic correctness: does the answer actually solve the problem?

    The second layer is evidence consistency: can the conclusion be supported by the input materials or reliable data?

    The third layer is constraint compliance: does the output meet requirements for fields, length, permissions, and output structure?

    The fourth layer is execution outcome: once the output enters downstream systems, does it complete the intended operation?

    The first three layers are important conditions for task success, but they cannot replace final execution verification. Generated code needs to be run against tests. Generated queries need their results checked. Generated business recommendations need to be verified against rules and evidence.

    2. Do Not Treat Parameter Count as Usable Capability

    Parameter count reflects the structural size of a model, but it does not directly indicate performance on a specific business task. Training data quality, training methods, inference strategies, context handling, and deployment conditions all affect the final result.

    Some architectures activate only part of their parameters during a single inference pass, so total parameter count and actual computing cost cannot be treated as equivalent. Even when models are similar in size, quality and latency can still differ significantly across tasks.

    In engineering, parameter count should be treated as background information, not a conclusion. A smaller model that completes tasks reliably may suit high-concurrency, tightly constrained production scenarios better than a larger model that needs multiple retries.

    3. A Long Context Window Does Not Guarantee Effective Use of All Material

    A context window describes how much input a model can accept. It does not mean the model uses every part of that input with equal accuracy.

    Longer materials are more likely to contain repeated content, version conflicts, irrelevant information, and key evidence spread across many sections. Placing all documents into a request may increase cost and latency without improving accuracy.

    When evaluating long-context capability, test at least the following:

    • Whether results stay consistent when key evidence appears at the beginning, middle, and end of the material;
    • Whether the model can explain its basis and uncertainty when multiple documents conflict;
    • Whether the model omits conditions when a question requires combining information across paragraphs;
    • Whether the model clearly refuses to infer an answer when the material does not contain one.

    In practical systems, filter, deduplicate, and version-manage materials before deciding whether the context needs to be expanded.

    3. Cost Analysis: A Cheap Call Does Not Guarantee a Cheap Outcome

    1. Unit Price Is Only Part of the Cost

    For calls billed by input and output text units, you can estimate the base cost with this general formula:

    Cost per call = input units ÷ billing unit × input price + output units ÷ billing unit × output price.

    The billing unit and the method for counting units should follow the actual service rules. Do not estimate the final bill from character count or text length alone.

    In addition, a single user request may trigger several model calls. For example, a system might first classify the task, then retrieve materials, generate an answer, and finally check the result. Formatting errors or tool call failures can add retries on top of that.

    Therefore, when comparing models, fix the complete task workflow rather than comparing the price of one request.

    2. Measuring Economics With Effective Task Cost

    A metric closer to business reality is:

    Effective task cost = total related cost in the statistical period ÷ number of tasks successfully completed.

    The numerator includes more than model call fees. Depending on the accounting scope, it can also include retrieval, storage, compute resources, human review, and failure handling.

    For example, suppose one option has an average processing cost of CNY 0.04 per task and an acceptance pass rate of 80%. Another option has an average processing cost of CNY 0.05 per task and a pass rate of 95%. Under the simplified condition that no extra remediation cost for failures is included, the cost per successful task is about CNY 0.050 and CNY 0.053, respectively.

    The first option still looks slightly cheaper. If failed tasks require substantial manual handling, however, the result may change. Price comparisons must rest on the same accounting scope and quality threshold, not on the cost of a single call.

    These figures only illustrate the calculation method. They do not represent the price or performance of any actual service.

    3. Separating Average Cost From Tail Risk

    Average cost can hide the expense of a small number of abnormal tasks. Complex inputs may lead to overly long out