LLM Selection Guide: Pricing, Capabilities, and Real-World Agent Testing
Choosing a large language model for agent workflows is not about finding the lowest price per turn. The same sequence of actions can cost two orders of magnitude more on one model than another, because cheap models often fail on the first attempt and require retries, while a more expensive model that passes once can lower the total bill. This guide abstracts million-token-context, multimodal, tool-calling models into four capability profiles and lays out a practical evaluation process: define input modalities and acceptance criteria first, read context and output specs correctly, normalize pricing to cost per completed task, and validate agent success rates on your own task set.
1. The Problem: Why “a Few Cents per Turn” and “a Few Dollars per Turn” Both Exist
In real agent engineering, the same action sequence—reading files, writing code, calling external tools—can cost two orders of magnitude more per turn on one model than on another. Many teams’ first instinct is to “pick the cheap one,” but real bills usually come from two things: a cheap model that fails on the first pass and needs multiple retries, or an expensive model that passes once with little rework and ends up cheaper overall.
So the first principle of selection is not comparing unit prices. It is defining the input format and the acceptance criteria first, then calculating cost from there. This article does not revolve around any specific vendor product. Instead, it abstracts this class of models—million-level context, multimodal input, tool-calling support—into four capability profiles and provides an evaluation process you can actually apply.
2. Define Input and Acceptance Before Talking Cost
2.1 Input Modality Determines the Candidate Pool
Multimodal input usually falls into three tiers: text plus images; text, images, and video; and structured input dominated by long documents. If your business only involves reading reports, screenshots, or scanned documents, models that support text and images are enough. Once you need something like “understand video directly,” the candidate pool narrows immediately, because only some models natively support video input.
Practical recommendations:
- High-frequency image-text and structured extraction: Establish a cost baseline with the cheapest candidates first.
- Budget-sensitive work that needs a larger generation budget: Add candidates that support very long single outputs for comparison.
- Direct video understanding: Filter for candidates with native video modality first, then discuss price.
2.2 Acceptance Criteria Must Be Written as Executable Assertions
“Can it pass in one shot” must be translated into decidable acceptance conditions, such as field completeness rate, unit test pass rate for generated code, and valid parameter rate for tool calls. Without acceptance assertions, any comparison degrades into subjective impressions.
3. How to Read Specs: Context, Output Budget, and Thinking Mechanisms
All four profiles claim million-level context on paper, but three details are the most easily misread.
First, context length is not the same as usable input. Some implementations set the maximum input slightly below the advertised window, leaving room for the system prompt and tool definitions.
Second, output budget is not the same as final answer length. With thinking mode enabled, the chain of thought and the final answer share the same generation budget; the longer the thinking, the less is left for the answer.
Third, input and generation may share the total window. Some implementations count the current turn’s input and generation together against the total window, so you cannot assume you can fill a million tokens of input and then output another million.
Illustrative pseudocode for budget estimation on the business side:
def estimate_cost(prompt_tokens, expected_answer_tokens, thinking_ratio=0.0):# thinking_ratio: share of the generation budget consumed by thinking; calibrate with real business measurementsgen_budget = expected_answer_tokens / max(1e-6, 1 - thinking_ratio)total_window = prompt_tokens + gen_budgetreturn {"gen_budget": gen_budget, "total_window": total_window}
The point of this code is a reminder: treat the thinking share as a variable to measure empirically, not a fixed number you fill in by guesswork.
4. Pricing: Look Beyond Unit Price to “Billing Boundaries”
The most common mistake in cross-model price comparison is inconsistent accounting: some charge separately for input and output, some price cache hits separately, and some apply different rules to thinking tokens versus visible tokens. The correct approach is to first convert every candidate to “total cost per completed qualified task,” using this formula:
Total cost per task = input cost + visible output cost + thinking output cost + retry rounds × cost per turn
Retry rounds are determined by the acceptance pass rate. A model with a low unit price but only a 60% pass rate can end up costing more than twice as much as a higher-priced model that passes on the first try.
5. Agent Scenarios: “Max” and “Flash” in a Name Do Not Indicate Success Rate
All four profiles support tool calling, and neither context length nor naming suffixes can directly prove agent success rates. What really determines success is three things: the clarity of tool descriptions, the ability to self-correct after failures, and information retention in long context.
Recommended re-testing method:
- Fix the same task set (several tasks each for reading files, writing code, and calling tools).
- Fix randomness parameters such as temperature, repeat three times, and take the average.
- Record three metrics: “first-pass rate,” “average rounds,” and “total cost per task.”
- Only differences on the same task set have decision value.
6. Deployment Checklist
- Does input modality cover scarce capabilities such as video?
- Is the maximum input smaller than the advertised window, with room reserved for tool definitions?
- Does thinking mode share the generation budget with the answer?
- Is the billing basis normalized to total cost per task?
- Was business re-testing done with the same task set?
The conclusion is simple: specs are only for filtering candidates; effectiveness must be judged by your own task set. Define input and acceptance first, then calculate the total bill—that is the core of this selection method.
