How to Choose an LLM: Pricing, Capabilities, and Agent Performance

    Choosing the right large language model is rarely about picking the cheapest or the most powerful option. This guide explains how to align input requirements and acceptance criteria first, then calculate total cost of ownership across per-call fees, rework, and human intervention. It covers unifying comparison baselines for context windows, output budgets, reasoning modes, and billing, splitting candidates by input modality, and running a shared task set to measure real agent success rates. Readers will find a practical trial order, a decision checklist, and code snippets for budget and evaluation calculations.

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

    When building intelligent applications, teams often run into a seemingly contradictory pattern: for the same kind of work — reading documents, generating code, calling external tools — one round can cost a few cents on one model and several dollars on another. Deciding on unit price alone tends to backfire after launch in two ways: a cheap model keeps making mistakes and repeated retries drive the bill up, or an expensive model delivers capacity you never use and you keep paying for it.

    So the first principle of model selection is neither “find the cheapest” nor “find the strongest.” It is define the input and the acceptance criteria first, then calculate total cost of ownership. Total cost of ownership has at least three parts: the per-call fee, the extra calls caused by rework, and the hidden cost of human intervention to fix outputs.

    2. Unify the Measurement Baseline Before Comparing

    The most common mistake in cross-model comparison is treating different vendors’ spec numbers as equivalent. Reliable conclusions require aligning four baselines first.

    2.1 Context Window: The Stated Value Is Not the Usable Input

    Several models claim million-token context, but the definition of “million” is not consistent: some share one window between input and output, while others cap the maximum input separately. For capacity planning, engineering must use the maximum usable input rather than the stated window, or long-document scenarios will hit truncation.

    2.2 Output Budget: The Generation Limit Is Not the Answer Length

    The per-call output budget is often mistaken for the maximum length of the final answer. In fact, if the model has a reasoning mechanism enabled, the chain of thought and the final response share the same generation budget. That means a model labeled with a 384K output budget has significantly less room left for the actual answer on complex reasoning tasks.

    Illustrative budget calculation logic:

    1. def usable_answer_budget(total_output_budget, reasoning_tokens):
    2. # reasoning_tokens is what the thinking process actually consumes
    3. return max(0, total_output_budget - reasoning_tokens)

    2.3 Reasoning Modes: Switchability Adds Flexibility and Uncertainty

    Some models offer dual “thinking / non-thinking” modes. Non-thinking mode has a smaller output budget, lower latency, and lower cost, which suits structured extraction; thinking mode has a larger budget and suits multi-step reasoning. During selection, confirm whether the mode can be switched at runtime, and run acceptance tests for both modes separately.

    2.4 Billing: Calculate Input, Output, and Cache Separately

    Mainstream billing distinguishes input tokens from output tokens, and output is generally priced higher than input. Platforms with context caching can cut costs significantly for repeated prefixes, such as a fixed system prompt or repeated questions over a long document. Cache hit rate must be part of the budget model.

    3. Capabilities: Split by Input Modality and Task Shape

    Setting specific model names aside, candidates can be grouped by input modality at the capability level:

    • One group understands text, images, and video directly: suited to scenarios that consume video streams and mixed text-image material directly, such as content moderation support and video key-point extraction.
    • One group supports text and images and excels at text generation: suited to high-frequency image-text processing and structured output, such as receipt information extraction and form filling.

    A practical trial order:

    1. Run high-frequency image-text and structured tasks on a cost-baseline model to establish a unit-task cost anchor;
    2. Bring in a large-output-budget model for tasks that need long-form generation or long-chain reasoning;
    3. When direct video input is involved, add the two models that support video understanding for comparison.

    4. Agent Scenarios: Max and Flash in the Name Do Not Predict Success Rate

    It is worth stressing that all candidate models support tool calling, and neither context length nor the name suffix directly proves agent success rate. Agent performance depends on how clearly tools are described, the error recovery strategy, and how stable the model is at maintaining state across multiple turns.

    Run a lateral retest with the same task set, with metrics that include at least:

    • First-pass task success rate (no human intervention);
    • Average number of interaction turns and retries;
    • Tool call parameter accuracy;
    • End-to-end latency and total cost per task.

    A minimal retest skeleton:

    1. def evaluate(candidate, tasks):
    2. passed, rounds, cost = 0, 0, 0.0
    3. for t in tasks:
    4. r = run_agent(candidate, t) # run the same task
    5. passed += int(r.success)
    6. rounds += r.turns
    7. cost += r.token_cost
    8. return {"pass_rate": passed/len(tasks),
    9. "avg_turns": rounds/len(tasks),
    10. "cost_per_task": cost/len(tasks)}

    5. Decision Checklist

    • High frequency, structured, cost-sensitive: prefer the cost-baseline model, combined with caching and prefix reuse;
    • Long-form generation and complex reasoning: choose the large-output-budget model and reserve headroom for reasoning consumption;
    • Direct video understanding: choose a model that supports the video modality and run a small-sample acceptance test first;
    • Complex agents: do not assume a conclusion; let a unified task set decide the score;
    • Capacity planning: always base it on the “maximum usable input” and the “usable output after deducting reasoning.”

    In short, the essence of model selection is turning a vague sense of “stronger or weaker” into measurable “cost per unit task and first-pass rate.” Unify the baseline first, split by modality next, and close with a business retest — that is how you avoid paying for redundant capability and avoid the rework losses that cheap models bring. If an organization wants to put this retest process in place on Baidu AI Cloud, it can build a reproducible evaluation pipeline using general capabilities such as the container platform, object storage, and monitoring and alerting.