LLM Selection Guide: Pricing, Capabilities, and Agent Testing
Selecting a large language model is not about comparing per-token prices. This guide explains why the real metric is the cost per successful task, how input modalities and quantifiable acceptance criteria narrow down the candidate pool, and why context window and output budgets are the two most misread numbers. It also breaks a real bill into four parts and outlines a reusable re-testing plan for evaluating tool-calling reliability in agent scenarios.
1. The Problem: Why the Same Task Can Cost 100x More
For typical workloads such as reading files, writing code, and calling tools, the per-turn cost of different LLMs can range from a few cents to several yuan. On the surface this looks like a difference in unit price. In practice, it is the combination of three factors: input length, output budget, and the number of retries after a failure.
A common mistake is treating “cheap” as the same thing as “cost-effective.” If a low-priced model passes on the first attempt only half the time, the total spend after two rounds of retries can actually be higher. Conversely, a higher-priced model that significantly reduces rework may have a lower cost per unit of effective output. So the first principle of selection is not to compare unit prices, but to compare the cost per successful task.
2. Define the Input and Acceptance Criteria First, Then Talk About Price
2.1 Input Modality Determines the Candidate Pool
Enterprise documents, screenshots, and scanned files are image-and-text inputs; surveillance footage and screen recordings of operations are video inputs. Whether a model supports direct video understanding can cut the candidate pool in half. If a model accepts only text and images, video must first go through frame extraction or transcription. This introduces extra pipeline stages, extra latency, and extra cost, and the frame extraction strategy itself affects the final result.
2.2 Acceptance Criteria Must Be Quantifiable
“Was the answer good enough?” cannot drive model selection. It is better to break acceptance into items that can be judged: whether structured fields are complete, whether code passes unit tests, whether tool call parameters can be parsed and executed, and whether citations in long-document question answering can be traced back to their source. Only when acceptance is judgeable does the subsequent cost comparison become meaningful.
3. Context and Output Budgets: The Two Most Misread Numbers
3.1 A Million-Level Context Is Not a Million-Level Usable Input
Several vendors claim million-level context windows, but the definitions are not consistent. Some count tokens precisely, while others use rough K or M notation. Some specify that the maximum input is slightly smaller than the total window, while others let the input and the current turn’s generation share the same window. Subtracting numbers with different definitions directly is the most common calculation error at the selection stage.
3.2 The Output Budget Includes the Thinking Process
In models that support a thinking mode, the chain of thought and the final answer share the same generation budget. This means that for a model labeled “maximum output 260K,” the space left for the final answer may be far smaller than expected. If the business requires long-form generation, you must focus on the generation budget limit rather than the context limit.
An illustrative budget estimation logic:
def estimate_cost(input_tokens, expected_answer_tokens,thinking_ratio=0.0, unit_price=1.0):total_output = expected_answer_tokens * (1 + thinking_ratio)return (input_tokens + total_output) * unit_price
The thinking_ratio must be calibrated through actual testing and cannot be chosen by intuition.
4. Pricing: Break the Bill into Four Parts
A real bill usually consists of four parts: input cost, output cost, repeated input caused by retries, and the hidden overhead of the preprocessing pipeline (such as video frame extraction and document chunking). Comparing only the “price per thousand tokens” misses the last two parts. It is recommended to convert everything into the “cost per thousand successful tasks,” and list factors such as cache hits and batch discounts separately to avoid mixing definitions.
5. Agent Scenarios: Neither Suffixes Nor Names Are Evidence
“Max,” “Flash,” and “Pro” are just names and have no causal relationship with tool-calling success rates. To judge agent capability, look at three things: whether tool calls reliably produce parseable structured parameters, whether the model can self-correct after multiple failures, and whether it still remembers the original constraints under long context. All three can only be verified through task testing.
6. A Reusable Re-Testing Plan
- Build an evaluation set with 30–50 real business samples, covering four categories: short input, long documents, mixed image and text, and video.
- Fix parameters such as temperature, run each model three times, and record the first-attempt pass rate and average number of turns.
- Measure token consumption and total cost, then convert to the cost per successful task.
- Classify failed samples by cause: comprehension errors, format errors, tool parameter errors, and truncation.
- Based on the attribution results, decide whether to switch models, revise the prompt, or adjust the preprocessing pipeline.
7. Conclusion
Selection is not a one-time decision, but a loop of “baseline — re-test — iterate.” First establish a cost baseline with high-frequency image-and-text tasks, then add candidates for budget-sensitive and long-generation needs. When video input is involved, prioritize models that support that modality. Finally, use the same set of tasks and the same acceptance criteria to decide where a complex agent belongs. Treating specifications as clues and testing as conclusions is the controllable engineering path.
