LLM Selection Guide: Pricing, Capabilities, and Agent Practices
Choosing a large language model by comparing spec sheets often fails because specs describe capability ceilings, not pass rates or total cost under your own input distribution. This guide presents a four-dimension framework covering input modality and acceptance criteria, the gap between context window and usable input, output budgets and reasoning overhead, and unified billing units. It also outlines a practical evaluation order, a vendor-neutral pseudocode harness, common pitfalls, and engineering recommendations for running evaluations and production rollouts.
1. Why Spec-Sheet Selection Often Fails
When building an AI coding assistant, a document-understanding pipeline, or a multi-step task agent, teams usually start with a spec sheet: context window size, image support, tokens generated per call, and whether a reasoning mode exists. The decision then gets made on “largest window” or “strongest suffix.” The problem is that specs describe a capability ceiling, while the business cares about pass rate and total cost under a fixed input distribution and acceptance criteria.
A typical pattern: for the same “read files, write code, call tools” workload, one model has a very low per-call cost but needs multiple retries, while another is expensive per call but passes on the first attempt. Looking at unit price alone leads to the opposite conclusion. A better question is whether the cheap option passes in one shot, and whether the expensive option reduces rework.
2. A Four-Dimension Selection Framework
2.1 Input and Acceptance Criteria First
Define the input modality (plain text, text plus images, direct video input) and the acceptance method (exact match, unit tests, human spot checks) up front. For batch image-text and structured extraction tasks, validate the pipeline with a cost-baseline model first. When direct video understanding is involved, prioritize models that natively support video input rather than routing around it by extracting frames into images, since frame extraction adds preprocessing cost and information loss.
2.2 Context Is Not the Same as Usable Input
Million-token windows are a common configuration, but two differences matter. First, the maximum input may be smaller than the advertised window. Second, the input and the current generation may share the same total budget. Fill the window completely and the room left for generation shrinks, which shows up as truncated output.
2.3 Output Budget and Reasoning Overhead
Per-call output limits range from tens of thousands to hundreds of thousands of tokens, but the output budget is not the final answer length. With reasoning mode enabled, the chain of thought and the final answer usually share the generation budget, and long reasoning chains significantly raise token consumption and latency. Treat the “thinking budget” as an independent variable in cost accounting.
2.4 Unify Billing Units
Platforms differ in how they express measurement units (the K/M conversion convention), cache-hit policies, and the ratio of input to output unit prices. Before any side-by-side comparison, convert every spec to the same convention, otherwise a difference in notation gets misread as a difference in capability.
3. A Practical Trial Order
- Establish a cost baseline: run high-frequency image-text and structured tasks through the pipeline, recording per-call tokens and pass rate.
- Add large-output-budget candidates: for tasks that need long code or long document output, add candidates with a more generous output limit as a control.
- Video input track: keep only candidates with native video input support and evaluate them separately.
- Final agent selection: decide the winner using the same multi-step task set and the same acceptance script.
A sketch of the evaluation harness (pseudocode, not bound to any vendor API):
def evaluate(candidates, tasks, budget):report = {}for name, client in candidates.items():passed, tokens, retries = 0, 0, 0for t in tasks:for attempt in range(budget.max_retries):out = client.run(t.input, max_output=budget.per_call)tokens += out.usage.totalif t.verify(out):passed += 1breakretries += 1report[name] = {"pass_rate": passed / len(tasks),"tokens": tokens,"cost": tokens * client.price_per_token,"retries": retries,}return report
4. Common Pitfalls
- Inferring agent success rate from suffixes (Max/Flash/Pro): naming reflects positioning, not task performance.
- Treating context length as a quality ranking: the window is capacity, not quality.
- Ignoring shared budgets: input and generation, chain of thought and answer, may draw on the same allowance.
- Mixing measurement conventions: subtracting across different unit notations produces wrong conclusions.
- Skipping re-tests: specs come from documentation, results come from your own data distribution.
5. Engineering Recommendations
Abstract model calls behind a unified adapter layer, with unit price, output limit, and video support as configuration items. Use a logging service plus monitoring and alerting to collect per-call tokens, latency, and pass rate. Set automatic fallback and a retry ceiling for high-value tasks to keep long reasoning chains from running out of control. For batch data processing, combine object storage with a message queue for peak shaving and resumable runs. General-purpose capabilities on cloud platforms such as Baidu AI Cloud (container platform, logging service, monitoring and alerting) can serve as the base for evaluations and production canary releases, but the actual selection should still rest on re-tests against your own tasks.
6. Conclusion
Selection is not a one-time parameter comparison; it is building a closed loop of “input, budget, billing, acceptance”: start with low-cost candidates to set a baseline, fill in candidates by output budget and modality, then settle total cost using one task set and one measurement convention. Treat specs as reference and re-tests as evidence, and you can make explainable decisions between cost and stability.
