LLM Selection Guide: Pricing, Capabilities, and Agent Testing

    Choosing the right large language model is rarely about picking the most powerful option. This guide explains why identical workflows can differ in cost by two orders of magnitude, breaks down the three layers behind that gap, and offers a neutral framework for comparing models across input modalities, usable context length, output budgets, thinking modes, and billing models. It also outlines a recommended trial sequence and a reproducible evaluation plan with fixed variables and key metrics, so teams can find the best trade-off between first-pass success rate and cost for each task type.

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

    When building an intelligent coding assistant, a document review pipeline, or a multi-step task agent, teams often run into the same pattern: a workflow that reads attachments, interprets charts, generates code, and calls external APIs can jump from fractions of a cent to several yuan per turn simply by swapping in a different model. The first instinct is usually “the unit price is higher,” but the real cause is often more complex.

    Cost differences typically stack up across three layers:

    1. Input-side cost: Long documents, images, and video frames are split into large numbers of tokens, and input billing can account for far more than output.
    2. Output-side cost: Thinking-oriented models generate long stretches of reasoning content first, which is also billed and may count against the output budget.
    3. Rework cost: A cheaper model that fails on the first attempt requires retries and manual fixes, and this hidden cost is severely underestimated.

    The first principle of model selection, therefore, is not the sticker price but “first-pass success rate × cost per turn + number of reworks.” The four general capability tiers discussed in this article (corresponding to a high-capability flagship, a low-latency lightweight option, a large-output-budget option, and a long-context balanced option) all support text and image understanding, tool calling, and million-token context in their public specifications, but they differ markedly in output budget, thinking mechanisms, and billing rules. Specifications do not equal an effectiveness ranking; you must re-test with the same set of business tasks.

    2. Building a Neutral Capability Framework

    When brand endorsements cannot be relied on, it helps to build an evaluation matrix around four dimensions.

    2.1 Input Modalities and Task Fit

    • Image-and-text-only tasks (screenshot understanding, receipt recognition, chart Q&A): prioritize the lightweight tier and establish a cost baseline.
    • Tasks that require directly understanding video (instructional recordings, surveillance clips, operation demos): you must filter for tiers that support video input; otherwise you need frame extraction and transcription first, which lengthens the engineering pipeline.
    • Plain-text long documents: focus on maximum input length and long-document recall performance rather than naming suffixes.

    2.2 Context Length and “Usable Input”

    Million-token context is a common marketing claim, but the truly usable input is often smaller than the nominal value. Reasons include system prompt consumption, tool definition consumption, output reservation, and additional per-request input caps imposed by vendors. For engineering purposes, use “maximum input = nominal context − output reservation − system overhead” as the capacity planning formula.

    2.3 Output Budget and Thinking Mechanisms

    The output budget determines how much content can be generated in one pass, directly affecting the feasibility of long code generation, long report writing, and large structured JSON. It is also important to distinguish between:

    • Non-thinking mode: produces answers directly, with low latency and controllable cost, suitable for classification, extraction, and rewriting.
    • Thinking mode: reasons before answering, suitable for complex planning and multi-step agents, but you pay for reasoning tokens.

    2.4 Billing Rules

    Vendors price input, output, thinking content, and cache hits differently. During selection, normalize everything into “estimated cost per thousand business requests” rather than comparing per-million-token unit prices.

    1. Step 1: Establish a baseline with the lightweight tier. Run high-frequency image-text and structured extraction tasks through the pipeline, record cost per turn and first-pass success rate, and use them as anchors for later comparisons.
    2. Step 2: Bring in the large-output-budget tier. When tasks need to generate long code, long tables, or large blocks of JSON and the budget is sensitive, add it to the candidate pool and observe whether the output truncation rate drops.
    3. Step 3: Screen video-input scenarios separately. Keep only the tiers that natively support video understanding for comparison, so transcription errors are not blamed on the model.
    4. Step 4: Make the final call on complex agents with the same task set. The task set should cover multi-tool chaining, failure retries, long-context retrieval, and structured output validation.

    4. A Reproducible Evaluation Plan

    Keep the following variables fixed and switch only the model:

    1. Task set size: no fewer than 50 real business samples
    2. Fixed items: system prompt, tool schema, temperature parameter, maximum output setting
    3. Metrics to record:
    4. - First-pass success rate (no manual modification needed)
    5. - Average number of turns and average token consumption
    6. - Number of output truncations
    7. - Tool call parameter validity rate
    8. - End-to-end latency P50 / P95

    Illustrative evaluation pseudocode:

    1. def evaluate(model_client, tasks, tools):
    2. stats = {"pass": 0, "tokens": 0, "retry": 0, "trunc": 0}
    3. for t in tasks:
    4. r = model_client.run(t, tools=tools)
    5. stats["tokens"] += r.total_tokens
    6. stats["trunc"] += int(r.truncated)
    7. if r.valid and r.passed:
    8. stats["pass"] += 1
    9. else:
    10. stats["retry"] += 1
    11. return stats

    This table answers the key questions raised earlier: whether the cheap option can pass on the first try, and whether the expensive one can reduce rework.

    5. Common Pitfalls and Engineering Advice

    • Pitfall 1: Longer context is always better. Extra-long context brings attention dilution and higher cost; retrieval augmentation is often more economical.
    • Pitfall 2: Suffixes indicate capability. Capitalization, Pro, Flash, and similar naming do not prove effectiveness.
    • Pitfall 3: Output budget equals answer length. Thinking content consumes the budget, and the final answer may be compressed.
    • Advice: Build a model abstraction layer that decouples prompts, tool definitions, and billing statistics to enable canary switching; at the same time, use logging services and monitoring alerts to continuously track pass rates and cost drift.

    6. Conclusion

    Selection is not about finding the “strongest model” but about finding the “optimal intersection of pass rate and cost” for each task type. Start with the lightweight tier to压 the cost baseline, fill gaps according to output budget and video capability, and finally use a unified task set to decide on complex agents. If an organization wants to deploy on Baidu AI Cloud, it can combine general container platforms, object storage, and log monitoring capabilities to build a reproducible evaluation pipeline, so that every model switch is backed by data.