LLM Selection in Practice: Specs, Costs, and Real-World Agent Task Testing
Selecting the right large language model requires more than comparing per-token prices. This article explains where cost differences actually come from, why acceptance criteria must be defined before cost evaluation, how to correctly read three commonly misunderstood numbers in model spec sheets, how to manage model identifiers and versions in production, and why benchmark names cannot replace hands-on testing in agent scenarios. A key metric introduced is cost per successful task, which measures the total expense of completing a task rather than the listed price per million tokens.
1. Where Do Cost Differences Come From?
For the same operations—reading files, generating code, calling tools—the per-request cost can differ by several times across models. Total cost is the sum of several components: the number of input tokens, the number of output tokens, tokens consumed by the reasoning process, and the unit price of each. Comparing unit prices alone easily leads to wrong conclusions. A model with a lower unit price may produce longer outputs, reason more, or require retries because the results fail to meet requirements—ending up more expensive overall.
Therefore, cost evaluation should focus on the total cost of completing one task, not the listed price per million tokens. This article refers to this metric as the cost per successful task, with the calculation method described in later sections.
2. Define Acceptance Criteria Before Calculating Costs
The first step in model selection is to clarify the task’s input format and acceptance criteria.
Input format determines the candidate pool. Common inputs include plain text, images, and video. Some models accept video directly; others only accept text and images. For the latter, you must first extract frames from the video and transcribe the audio, then feed the results to the model. The two approaches differ in engineering complexity and information loss: direct video input preserves temporal information but depends on model support; frame extraction is simpler to implement but may miss critical actions.
Acceptance criteria define what “correct” means. Structured extraction tasks can be measured by field-level accuracy, code generation tasks by unit test pass rates, and tool-calling tasks by parameter accuracy and task completion rate. Without clear criteria, comparison degenerates into subjective impressions.
3. Three Commonly Misread Numbers in Spec Sheets
Spec sheets are the starting point for model selection, but the following three numbers are the most easily misinterpreted.
(1) Context window ≠ usable input length. The window is the total amount a model can process at once, typically including input, the reasoning process, and output. When the input approaches the window limit, the space left for output shrinks accordingly. Calculation rules also vary across platforms: some set a separate cap for output, while others require the input and the current generation to share the remaining window. Confirm the rules before use—do not assume you can fill the input and still receive output of the same length.
(2) Output budget ≠ final answer length. The output budget is the upper limit for the generation phase. Some platforms set separate limits for non-reasoning and reasoning modes. In reasoning mode, the chain of thought and the final answer usually share the same budget—the longer the reasoning, the more likely the final answer gets truncated. During testing, record whether each output ended because it hit the limit; this information is typically available in the finish-reason field of the API response.
(3) Inconsistent unit conventions. Documentation commonly uses notations like K, M, thousand, and million, with some converting by 1000 and others by 1024. When comparing across platforms, first normalize all numbers to the same convention and note the conversion method in your table. Two numbers described as “the same order of magnitude” in documentation are not necessarily exactly equal.
4. Model Identifiers and Version Management
The model identifier in the API determines the version actually invoked. The same model family may simultaneously offer a stable release, a preview version, and dated snapshot versions. In production, pin your configuration to an explicit version and record the invocation time. If you only specify the family name, output style, cost, and rate limits may all change after a version upgrade—invalidating any previous test results.
A recommended practice is to keep the model identifier, documentation version, verification date, and documentation link together in your configuration. Update them in sync whenever you run cost or performance comparisons, so results can be reviewed later.
5. Agent Scenarios: Names Cannot Replace Testing
Tool calling is now a baseline capability of most mainstream models, but it only shows that a model can produce well-formatted call requests. Whether an agent can actually complete a task depends on several factors:
- Whether tool descriptions are clear and parameter constraints are explicit;
- Whether the model can adjust its plan when a tool returns an error, rather than repeating the same call;
- Whether the model maintains the task goal across multi-turn conversations without forgetting earlier constraints;
- Whether the model stops at the right moment—neither giving up too early nor falling into infinite loops;
- Whether key information is still correctly referenced as the context keeps growing.
Scale suffixes or version numbers in a model’s name only reflect product naming—they say nothing about how the model will perform in your specific agent workflow. The only reliable way to evaluate that is to run your own tasks with your own tools and acceptance criteria.
