LLM Selection Methodology: Pricing, Capabilities, and Agent Testing

    Choosing a large language model by its name suffix is risky, because vendor naming reflects marketing strategy rather than task success in agent scenarios. This article presents a vendor-neutral four-dimension evaluation framework covering input modality, context and output budget, thinking mechanisms, and pricing units, along with a practical retesting method. It explains why total task cost equals per-round cost multiplied by average interaction rounds plus manual fallback cost, and lists common pitfalls to avoid when comparing models for your own workload.

    1. Why Choosing by Name Always Leads to Trouble

    In engineering practice, many teams start by looking at the suffix: a “Max” variant is assumed to be the flagship, and a “Flash” variant is assumed to be a lightweight, cheaper option. This is a dangerous assumption. Naming suffixes are a vendor’s marketing strategy; they do not necessarily reflect capability, and they say nothing about task success rates in agent scenarios.

    For the same instruction, such as “read a file, write code, call a tool,” one round of calls can differ by tens of times in cost between models. Price differences matter, but two engineering questions matter more: can the cheaper model pass acceptance on the first try, and does the more expensive one reduce the number of rework rounds? The cost of an agent task is not the per-round token price, but rather “total task completion cost = per-round cost × average interaction rounds + manual fallback cost.” A model with a low unit price that goes off track every round often costs more overall than a pricier model that gets it right the first time.

    For this reason, this article compares no specific products. Instead, it offers a vendor-neutral four-dimension evaluation framework and a practical retesting method.

    2. The Four-Dimension Evaluation Framework

    1. Input Modality: First Confirm Whether the Task Really Needs Multimodal Input

    General-purpose LLMs commonly support text and image understanding, and some additionally support direct video input. The first selection step is to verify the actual form of the task input:

    • If the input is structured extraction from batches of screenshots, receipts, or scanned documents, text plus image capability is sufficient;
    • If the input is long videos, screen recordings, or surveillance streams, confirm whether the model natively supports video. Otherwise you must add preprocessing such as frame extraction, slicing, or transcription, which introduces extra pipeline complexity and error.

    Engineering advice: Do not choose the most expensive modality combination up front just in case you need video later. Use the real data distribution to define the modality boundary first.

    2. Context and Output Budget: Two Completely Different Concepts

    “Million-token context” is a common spec today, but context length, like naming, does not directly prove agent success rates. More critical is the output budget, which is often misread:

    • The output budget is not the final answer length. If a model supports a thinking mode, the chain of thought and the final answer usually share the same generation budget;
    • Input and generation may share the total window. For some models the total window is the sum of input and the current round’s generation, so you cannot assume you can fill a million tokens of input and then output another million.

    An illustrative budget calculation:

    1. available generation budget = min(single-output limit, total window - current input tokens)
    2. if thinking is enabled: final answer length ≈ available generation budget - chain-of-thought consumption

    This directly determines whether long-document summarization, large code generation, and long report writing will be truncated.

    3. Thinking Mechanism: Non-Thinking, Thinking, and Adaptive

    Models handle whether the thinking process is displayed or consumed differently. There are three common types: non-thinking by default, thinking that can be explicitly enabled, and adaptive decisions made by the model. Thinking can improve the quality of complex reasoning, but it consumes generation budget and cost. In engineering terms, the thinking switch should be a configurable option, toggled dynamically according to task difficulty, rather than always on globally.

    4. Pricing Basis: Unify the Unit Before Comparing

    Billing conventions differ across vendors: some price input and output separately, some apply a separate basis to thinking tokens, and some use tiered pricing for long context. Before comparing, convert different units (such as per-thousand-token versus per-million-token notation) to the same basis, then plug in the real input-to-output ratio of your task. Otherwise the comparison is meaningless.

    3. A Vendor-Neutral Trial Order

    Without brand bias, you can build a cost baseline by capability tier:

    1. High-frequency image-text and structured tasks: Start with a lightweight-tier model to establish a unit cost baseline and get the minimal loop of “image input → structured output” working;
    2. Budget-sensitive work that needs a larger generation budget: Introduce a tier with a more generous output budget and verify whether long outputs get truncated;
    3. Direct video input involved: Prioritize tiers that natively support the video modality;
    4. Complex agents: Connect all the above candidates to the same task set and let data decide the final selection.

    4. Business Retesting: Let the Same Task Set Do the Talking

    Specs are only for initial screening; the final decision must rely on retesting. Build a set of 30–100 real tasks covering both high-frequency and long-tail cases, and consistently record the following metrics:

    • First-pass rate (the proportion accepted without manual modification);
    • Average interaction rounds and end-to-end latency;
    • Total cost per task (including all rounds);
    • Truncation rate (whether output was cut off due to insufficient budget);
    • Tool-call accuracy (whether parameters are valid and the right tool was chosen).

    An illustrative evaluation record structure:

    1. {
    2. "task_id": "case_001",
    3. "input_modal": "image+text",
    4. "pass_first_try": true,
    5. "rounds": 2,
    6. "truncated": false,
    7. "tool_call_valid": true,
    8. "cost_total": 0.0031
    9. }

    5. Common Pitfalls Checklist

    • Treating context length as a capability ranking;
    • Treating the output limit as the final answer length;
    • Ignoring how the thinking process squeezes the budget;
    • Comparing prices without unifying the billing basis;
    • Using public leaderboards instead of retesting on your own business tasks.

    6. Conclusion

    Selection is not about choosing the “strongest model,” but the model with the lowest total cost and the most stable acceptance on your own task distribution. Screen by modality and budget first, then retest with a unified task set, and make the thinking switch and budget configurable. Only then can you control both cost and rework. If you need capabilities such as hosted inference, log retention, and monitoring alerts, you can build an observable and reproducible evaluation and deployment pipeline using the general cloud product categories offered by Baidu AI Cloud, such as container platforms, object storage, log services, and monitoring and alerting.