LLM Selection Guide: Pricing, Capabilities, and Agent Scenarios

    Choosing the right large language model is rarely about picking the cheapest or the most powerful option. This guide breaks down the real cost of a model call into input size, output size, retries, and billing rules, then maps vendor-neutral capability dimensions such as input modalities, context window, output budget, and pricing units. It also outlines a practical trial order, the metrics to track during business re-testing, and three common Agent pitfalls, helping teams minimize total cost per task rather than unit price.

    1. The Problem: Why the Same Task Can Cost Two Orders of Magnitude Apart

    A common frustration in real engineering work is this: for the same three things—reading files, writing code, and calling tools—one model may cost a few cents per run, while another burns through several dollars. Many people’s first instinct is “the expensive model must be more capable,” so they put the entire budget on the priciest option. Others do the opposite and pick only the lowest unit price, only to have the Agent rework the task repeatedly, feeding the saved token cost right back into retry expenses.

    To understand this gap, break the cost of a single call into observable factors:

    • Input size: how much text, how many images, or even video frames are packed into the context;
    • Output size: the final answer length plus the generation tokens consumed by the reasoning process;
    • Retry count: whether it passes on the first attempt or takes multiple rounds of rework;
    • Billing rules: whether input and output are priced separately, or whether caching, batching, and other differentiated rules apply.

    The conclusion: unit price is only the denominator; first-pass rate is the numerator. The goal of selection is not to find the “cheapest” or “strongest” model, but to minimize total cost = price per call × number of retries.

    2. Stay Neutral First: Abstract Product Comparisons into Capability Dimensions

    Flagship and lightweight models from different vendors often carry suffixes like “Max,” “Flash,” or “Pro” in their names. It must be emphasized: a naming suffix proves neither Agent success rate nor effective context utilization. In engineering, only four verifiable dimensions should count.

    2.1 Input Modalities

    • Text + images only: suitable for document parsing, screenshot understanding, and form extraction;
    • Text + images + video: suitable for directly understanding video streams, surveillance footage, and instructional recordings.

    The first cut in selection happens right here: if the business needs to ingest video directly, filter out candidates that support only text and images first.

    2.2 Context Window

    Mainstream candidates have all entered the million-token range, but two details matter:

    1. Vendors do not write K and M identically (1M and 1,048,576 are not exactly equal);
    2. “Maximum input” and “total window” may be two different concepts—some platforms allow maximum input to approach the window limit, while others require input and the current generation to share the same window.

    2.3 Output Budget per Call

    This is the most easily misread item. The output budget is not the same as the final answer length, because the reasoning process also consumes generation tokens. Two common designs exist:

    • The reasoning chain and the answer share the same budget;
    • Non-reasoning mode and reasoning mode map to different upper limits.

    2.4 Billing Rules

    Pricing units, whether input and output are distinguished, and whether long context is priced in tiers all affect the real bill across platforms. Do not rank costs directly using the numbers on a spec sheet.

    3. A Practical Trial Order

    To turn the dimensions above into a workflow, the following order is recommended to establish a baseline at minimal cost:

    1. High-frequency text-and-image and structured tasks: start with a lightweight-tier model to establish a cost baseline and get the parse–extract–verify loop working;
    2. Budget-sensitive tasks that need a larger generation budget: bring in a high-output-budget tier for comparison and observe whether long-form generation suffers fewer truncations;
    3. Direct video input involved: first validate candidates that support the video modality, and confirm frame extraction and understanding quality;
    4. Complex Agents: decide in the end with the same task set, not with a parameter sheet.

    4. Business Re-Testing: Turning “Feel” into Metrics

    The core of re-testing is to fix variables and quantify results. Record at least the following metrics:

    Metric Meaning Why It Matters
    First-pass rate Share accepted without manual or automatic retries Directly determines retry cost
    Average retries Average number of rework rounds after failure Reflects stability
    Total cost per task Sum of input and output charges The real billing measure
    P95 latency 95th-percentile response time Affects interaction experience
    Truncation rate Share truncated due to insufficient output budget Exposes budget-setting problems

    Illustrative re-testing code (pseudocode that only expresses the flow and points to no specific API):

    1. def evaluate(candidate, tasks):
    2. stats = {"pass": 0, "retry": 0, "cost": 0.0, "latency": []}
    3. for t in tasks:
    4. for attempt in range(MAX_ATTEMPT):
    5. r = candidate.run(t.input, budget=t.output_budget)
    6. stats["cost"] += r.input_tokens * P_IN + r.output_tokens * P_OUT
    7. stats["latency"].append(r.latency)
    8. if verify(r.output, t.acceptance):
    9. stats["pass"] += 1
    10. break
    11. stats["retry"] += 1
    12. return summarize(stats)

    The key point: acceptance criteria must be fixed in advance, otherwise fair comparison across models is impossible.

    5. Three Common Pitfalls in Agent Scenarios

    1. Stuffing the context full: when input and generation share a window, filling up the input can compress or even break the output;
    2. Treating the output budget as the answer length: reasoning mode eats into the budget, causing the final answer to be truncated;
    3. Looking only at unit price and ignoring rework: a cheap model with a low first-pass rate can end up costing more in total.

    6. Implementation Recommendations

    • Build a three-piece kit of “candidate pool + task set + acceptance script,” and run every new model through the same set of problems first;
    • For long-context tasks, do input trimming and segmentation first, then assess whether a larger window is needed;
    • For reasoning tasks, set the output budget explicitly and monitor the truncation rate;
    • Show unit price, retry count, and first-pass rate together on the cost dashboard to avoid single-dimension decisions.

    If you are already using Baidu AI Cloud capabilities to carry this kind of evaluation, you can connect the re-testing script to logging services and monitoring alerts, making first-pass rate and truncation rate continuously observable metrics rather than a one-off manual spreadsheet. Selection has no finish line—only continuous re-testing.