LLM Selection Guide: Pricing, Capabilities, and Agent Scenarios
Choosing a general-purpose LLM for production is often reduced to comparing spec sheets, but real performance depends on how specs, billing models, and task shapes align. This guide breaks down four core dimensions—context window (nominal vs. usable vs. effective), input modalities, output budgets, and three-part pricing—and presents an evaluation framework for agent scenarios covering tool-calling stability, context reuse, failure recovery, and parseable output. It also outlines four cost-control tactics and common selection pitfalls to help teams make explainable, reproducible decisions across candidate models.
1. Introduction: Why Spec-Sheet Selection Often Goes Wrong
In enterprise applications and automated workflows, choosing a general-purpose large language model is often reduced to comparing a spec sheet: how long the context is, which input types are supported, and how many tokens can be returned in a single response. Yet real production behavior depends on how well three things match: the specifications, the billing model, and the shape of the task.
A common pattern in the source material is inconsistency across platforms. Context length is described in either K (thousands) or M (millions), single-response output limits are given as both a “default” and a “maximum,” and supported input modalities vary. Treating these numbers as directly comparable, precise values easily leads to systematic errors in capacity planning and cost budgeting. This article strips away product-specific attributes and abstracts a reusable evaluation method.
2. The Technical Meaning of Four Core Dimensions
2.1 Context Window: Nominal, Usable, and Effective
The context window is usually treated as a single upper-bound number, but engineering practice requires distinguishing at least three layers:
- Nominal window: the theoretical limit stated in the documentation;
- Usable input: the actual input length after subtracting the output reservation, system prompt, and tool definitions;
- Effective window: the span over which the model still recalls and reasons over mid-context information reliably under long-context conditions.
In practice, differences in notation such as 1M versus 1,048,576 are usually just unit conversion and phrasing conventions, not differences in capability tier. What really needs stress-testing is the effective window: place key evidence at different positions in a long document and observe whether answer consistency degrades.
2.2 Input Modalities: The Engineering Cost of Text, Images, and Video
Supporting text, image, and video inputs versus only text and image is not just a capability difference but a pipeline-complexity difference. Video and image inputs typically bring higher preprocessing overhead, longer queue times, and more noticeable unit-cost fluctuations. If the business only needs “screenshot Q&A,” choosing a spec that supports video input means paying for unused capability.
2.3 Output Budget: Default vs. Maximum
Descriptions such as “131,072 in non-thinking mode, 262,144 in thinking mode,” “default 131,072, constrained by remaining context,” “max 64K,” and “max 384K” actually point to two different constraints:
- Hard limit: the maximum number of tokens allowed per request;
- Dynamic constraint: output length is squeezed by the remaining context budget—the longer the input, the less can be output.
The latter is the most easily overlooked pitfall in long-document summarization and batch structured extraction: once the input fills the window, the output is compressed to less than what is needed to complete a single valid JSON generation.
2.4 Billing Model: The Three-Part Structure of Input, Output, and Cache
General billing typically consists of three parts: input tokens, output tokens, and cache hits, with output priced higher than input. Therefore, “cheap long context” does not equal “low total cost.” You need to model it as: input volume × input price + output volume × output price − cache savings.
3. An Evaluation Framework for Agent Scenarios
Agents differ from traditional Q&A in being multi-turn, multi-tool, and rollback-capable. Evaluation should focus on four metrics:
- Tool-calling stability: whether items are missed or misselected given a long tool list;
- Context reuse: whether prefix caching is supported to reduce repeated billing;
- Failure recovery: whether the agent can continue from history after a single-step failure;
- Output parseability: the syntactic completeness of structured output under long context.
Illustrative pseudocode for A/B stress-testing across candidate specs:
def bench(candidate, cases):stats = {"tool_acc": [], "parse_ok": [], "cost": []}for c in cases:r = candidate.run(messages=c.messages, tools=c.tools,max_output=c.max_output)stats["tool_acc"].append(grade_tool(r, c.gold_tool))stats["parse_ok"].append(is_valid_json(r.text))stats["cost"].append(r.input_tokens * p_in+ r.output_tokens * p_out)return {k: sum(v) / len(v) for k, v in stats.items()}
4. Four Cost-Control Tactics
- Tiered routing: send short requests to smaller specs and long documents or complex reasoning to larger specs;
- Prefix caching: keep the system prompt, tool definitions, and knowledge snippets fixed at the front to improve hit rates;
- Output trimming: use structured templates to constrain redundant phrasing and directly reduce consumption of the higher-priced output;
- Batching and asynchrony: put non-real-time tasks in a queue, trading throughput for cost.
If your organization already uses general-purpose LLM services on Baidu AI Cloud, you can combine object storage to archive long documents, a message queue to smooth task spikes, and logging plus monitoring/alerting for call-chain observability to form a closed loop.
5. Common Pitfalls
- Treating the K vs. M notation difference as a capability-generation gap;
- Looking only at input price while ignoring the hidden costs of output and retries;
- Using the nominal context for capacity planning without reserving space for output and tool definitions;
- Paying for unused multimodal capabilities;
- Lacking a rollback design, causing a full re-run after a long agent chain fails.
6. Conclusion
Selection is not about picking the “strongest” or the “cheapest” model, but about aligning specs with task shape: plan capacity using the effective window rather than the nominal one, budget with the three-part billing model, and validate against the four agent metrics. With this framework, teams can make explainable, reproducible, and continuously optimizable decisions across multiple candidate specs.
