LLM Selection Methodology: Comparing Pricing, Capabilities, and Agent Scenarios

    Choosing a large language model by specs alone often fails. This guide presents a four-dimension evaluation framework covering input modalities, context and output budgets, thinking modes, and billing units, along with validation paths for three common scenarios: high-frequency image-text extraction, long-form generation and coding, and multimodal agents. It also includes a reusable evaluation script skeleton to help teams compare pass rates, token usage, and latency on a unified task set.

    1. Why Choosing Models by Parameters Often Fails

    In composite tasks such as reading files, writing code, and calling tools, developers often notice a stark contrast: for the same round of calls, one model may cost only a few cents while another costs several dollars. Price differences do matter, but two questions are more critical: can a low-cost model pass acceptance on the first attempt, and can a high-cost model reduce the number of rework rounds?

    Treating a spec sheet as a performance ranking is the most common mistake in model selection. Context length, suffixes such as “Max” and “Flash” in model names, and support for a thinking mode only indicate capability boundaries; they do not prove the success rate on a specific business workload. The reliable approach is to use specs as filtering criteria and business retesting as the basis for decisions.

    2. A Four-Dimension Evaluation Framework

    1. Input Modality: First Confirm What It Can Read

    Multimodal capabilities are usually divided into three tiers: text, images, and video. If your workload only handles text and screenshots, the candidate pool expands significantly; if you need to understand video streams directly, the options narrow quickly. List the real data distribution first, then eliminate candidates that do not support the required input types. This avoids costly preprocessing and transcoding later.

    2. Context and Output Budget: Two Different Concepts

    Million-token context has become a common way to describe mainstream configurations, but you must distinguish between the “total window,” “maximum input,” and “per-call generation budget.” The relationship can be illustrated as follows:

    1. Total window ≈ input tokens this round + generated tokens this round (including thinking)
    2. Per-call output budget ≠ final answer length

    In thinking mode, the chain of thought and the final answer share the generation budget; in some implementations, the input and the current generation also share the total window. Therefore, expecting to “fill a million tokens of input and then generate a million tokens of output” is a mistaken assumption. For engineering capacity planning, use “input length + reserved generation space” and keep headroom for retries.

    3. Thinking Mechanism: A Switch for Latency and Cost

    Thinking mode can improve performance on complex reasoning, but it consumes additional generated tokens and lengthens response time. A sensible strategy is tiered routing: send simple classification, extraction, and formatting tasks to non-thinking mode; send multi-step planning and code refactoring to thinking mode, with a cap on the thinking budget and timeout circuit breakers.

    4. Billing Units: Normalize Before Comparing

    Platforms differ in how they count tokens, in the price ratio between input and output, and in cache-hit policies. When comparing costs, first convert each platform’s units to the same basis, then estimate monthly cost as “average tokens per task × call volume” rather than comparing list prices directly.

    3. Validation Paths for Three Scenario Types

    Recommended trial order: for high-frequency image-text and structured tasks, start with a low-cost model to establish a cost baseline; when the budget is tight but a larger generation budget is needed, bring in long-output candidates; for direct video input, prioritize candidates that support the video modality. For a complex agent, the final choice must be decided by running the same task set.

    Scenario 1: High-Frequency Image-Text and Structured Extraction

    Focus on field accuracy, format compliance rate, and cost per page. The validation set should cover blurry screenshots, multi-column layouts, and nested tables.

    Scenario 2: Long-Form Generation and Coding Tasks

    Focus on long-range consistency, generation truncation rate, and number of rework rounds. Pay particular attention to behavior when approaching the output budget limit.

    Scenario 3: Multimodal Agent

    Focus on tool-call success rate, multi-step task completion rate, and end-to-end latency. Use a fixed tool set and a fixed acceptance script to avoid bias from manual scoring.

    4. A Reusable Acceptance Script Skeleton

    1. def evaluate(candidates, dataset, tools, budget):
    2. report = {}
    3. for name, model in candidates.items():
    4. passed, tokens, latency = 0, 0, 0
    5. for case in dataset:
    6. r = model.run(case, tools=tools, budget=budget)
    7. tokens += r.usage.total
    8. latency += r.latency_ms
    9. if r.format_ok and r.answer == case.expected:
    10. passed += 1
    11. report[name] = {
    12. "pass_rate": passed / len(dataset),
    13. "avg_tokens": tokens / len(dataset),
    14. "avg_latency": latency / len(dataset),
    15. }
    16. return report

    5. Conclusion

    Selection is not a one-time action but a loop of “filter — retest — canary — review.” First apply hard filters based on modality and budget, then compare pass rates and rework costs on a unified task set, and finally roll out in tiers by traffic. If your organization has already integrated model services on platforms such as Baidu AI Cloud, you can use unified logging, monitoring and alerting, and container platforms to turn token consumption, latency, and pass rate into a selection baseline that supports continuous optimization, so that cost optimization rests on real business data.