LLM Selection Guide: Pricing, Capabilities, and Agent Scenarios

    Choosing a large language model is not about finding the lowest price per million tokens. This guide presents a vendor-neutral framework for model selection based on the real objective: total cost, total latency, and failure rate of completing a business workflow. It covers how to narrow the candidate pool by input modality, how to define acceptance criteria before testing, how to read context window and output budget specifications correctly, how to break capabilities into measurable tests, and why multi-step agent tasks are the true dividing line. It also introduces a cost model priced by "passing acceptance on the first attempt" and a practical evaluation and rollout sequence. The goal is a reproducible selection process rather than reliance on spec sheets or public leaderboards.

    1. The Problem: Why “a Few Cents per Turn” and “a Few Dollars per Turn” Coexist

    When building an intelligent coding assistant, a document understanding pipeline, or a multi-step task agent, teams often run into the same phenomenon: for the same instruction to read a file, write code, and call a tool, the per-turn cost of different models can differ by two orders of magnitude. Selection discussions then drift to two extremes: looking only at unit price, or looking only at leaderboards.

    A more rigorous way to ask the question is to ask two things:

    • Can the cheaper model pass acceptance on the first attempt and reduce retry rounds?
    • Can the more expensive model lower total cost through less rework and shorter human intervention time?

    In other words, the real objective function of model selection is not “the lowest price per million tokens,” but the optimal solution under the joint constraints of total cost, total latency, and failure rate for completing a business loop. This article builds a vendor-neutral decision framework around that objective function.

    2. Define Inputs and Acceptance First, Then Talk About Cost

    2.1 Input Modality Determines the Candidate Pool

    Multimodal capability generally falls into three tiers: text only, text plus images, and text plus images plus video. The first step of selection is to classify business inputs into these three tiers:

    • Text-only tasks such as text cleaning, structured extraction, and code completion: the candidate pool is largest, so you can prioritize comparing price and throughput;
    • Tasks that require reading screenshots, scanned documents, or UI images: the candidate pool narrows to models that support joint text-and-image understanding;
    • Tasks that require directly understanding video streams (such as screen recordings of operations or surveillance clips): the candidate pool narrows further, and you must additionally verify temporal understanding, keyframe localization, and long-video truncation strategies.

    A common mistake is treating “supports images” as “supports video,” or treating “has a long context” as “can fully watch a long video.” Neither inference holds, and both must be verified with real material.

    2.2 Write Acceptance Criteria Down Before Running Models

    Before running any model, write the acceptance conditions as executable assertions, for example:

    1. Acceptance test set v1 (example structure)
    2. - Input: one 80-page PDF + 3 UI screenshots + one 90-second screen recording
    3. - Expected output: JSON with fixed fields; missing fields filled with null
    4. - Pass condition: field-level accuracy >= threshold; JSON parse success rate = 100%
    5. - Cost basis: count total tokens consumed to "pass acceptance once," not tokens of a single call

    Writing “first-attempt pass rate” into acceptance criteria is key to cost control, because retries are often not a linear addition but repeatedly amplify failed samples.

    3. How to Read Specifications: Context, Output Budget, and Unit Conventions

    3.1 A Million-Level Context Does Not Mean “You Can Stuff in Anything”

    Mainstream flagship and lightweight models in the industry now commonly offer context windows of a million tokens, but three details must be distinguished:

    1. Whether the context is a total window shared by input and output, or refers only to the input limit;
    2. Whether the maximum input is smaller than the nominal context (for example, nominal 1M but maximum input slightly below 1M);
    3. Whether the output budget is a fixed cap or dynamically constrained by the remaining context.

    If you ignore the third point, you end up with a design error where you fill the input and still expect a very long output, which in practice shows up as truncated output.

    3.2 Output Budget Is Not the Final Answer Length

    This is the easiest place to get wrong. Once thinking (chain-of-thought) mode is enabled, intermediate reasoning also consumes generated tokens, and in many implementations the chain of thought and the final answer share the same generation budget. Therefore:

    • A nominal “maximum output 384K” does not mean the final answer can reach 384K;
    • A nominal “non-thinking 131K / thinking 262K” means the two modes have different budgets, and thinking mode does not make the final answer longer;
    • Default output and maximum output may differ, and you need to pass parameters explicitly to get a larger budget.

    The engineering recommendation is to treat the output budget as an “allocatable resource,” impose a hard constraint on the final answer length in the prompt, and keep truncation detection and continuation strategies.

    3.3 Do Not Force Unit Conversions

    In different documents, the notation of K and M may correspond to different conversion bases. Forcing 1M and 1,048,576 to be treated as exactly equal introduces errors in capacity planning. The correct approach is to preserve the original convention and re-verify with the real tokenizer during load testing.

    3.4 Separate Model Identifiers from Display Names

    Product display names, community shorthand, and API call identifiers are often inconsistent; capitalization, separators, and version suffixes may all differ. The engineering standard is: the configuration center stores only API identifiers, and the presentation layer maintains readable names separately, avoiding hardcoding display names into code.

    4. Capability Dimensions: Break “Can It Do It” into Measurable Items

    Do not trust that suffixes like Max, Flash, or Pro in a name represent agent success rate. It is recommended to break capability into six independent tests:

    Capability Test Method Metrics
    Instruction following Multi-constraint prompts (format + length + forbidden words) Constraint satisfaction rate
    Structured output Fixed JSON Schema Parse success rate, field accuracy
    Tool calling Multiple tools, including parameter validation and exception branches Parameter selection accuracy, invalid call rate
    Long context Key information buried at the beginning, end, and middle Recall position curve
    Multimodal Mixed text and images, video keyframes Cross-modal reference accuracy
    Stability Repeated calls with the same input Output variance, timeout rate

    Among these, “invalid call rate” and “output variance” are the most easily overlooked, yet they directly determine whether an agent needs extra retries and human fallback.

    5. Agent Scenarios: Multi-Step Tasks Are the Real Dividing Line

    Single-turn question answering shows no difference; agent scenarios amplify it. A typical multi-step task is “read the requirements document -> search the codebase -> modify code -> run tests -> fix errors -> summarize.” When evaluating, focus on four points:

    1. Planning quality: whether it breaks a large task into verifiable small steps;
    2. Tool orchestration: whether parameters are valid, and whether it switches strategy after failure instead of looping forever;
    3. Context management: whether early constraints are lost under long history;
    4. Cost curve: as steps increase, whether token consumption grows linearly or explodes.

    An illustrative evaluation loop:

    1. # Pseudocode: same task set, same tool set, same acceptance script
    2. for model in candidates:
    3. stats = run_benchmark(tasks, tools, model, max_steps=12)
    4. report(model, pass@1=stats.pass_once,
    5. avg_tokens=stats.tokens / len(tasks),
    6. avg_steps=stats.steps / len(tasks),
    7. invalid_tool_rate=stats.invalid_calls / stats.calls)

    Only when first-attempt pass rate, average tokens, average steps, and invalid call rate are all comparable does the selection conclusion hold.

    6. Cost Model: Price by “Passing Acceptance Once”

    It is recommended to write the cost as follows:

    1. Total cost per task ≈ cost per call × average number of attempts + human fallback cost
    2. Cost per call ≈ input tokens × input price + output tokens × output price

    Note three points: the input usually contains repeated history and retrieved snippets, so in long-context scenarios the input share may be far higher than the output; thinking mode raises output tokens; and failed retries multiply the cost by the number of attempts. Therefore, “low unit price but passes only on the second attempt” may be more expensive than “high unit price but passes on the first.”

    Without binding to a specific vendor, you can arrange the validation order by capability tier:

    1. High-frequency text-and-image and structured tasks: first use a lightweight-tier model to establish a cost baseline;
    2. Budget-sensitive scenarios that need a larger generation budget: bring in a long-output-tier model for comparison;
    3. Scenarios involving direct video input: keep only candidates that support video understanding;
    4. Complex agents: use the same task set for the final decision.

    The recommended rollout process has five steps: define acceptance assertions -> sample real business data -> run two-tier models in parallel with small traffic -> measure first-attempt pass rate and total cost -> solidify the routing strategy (simple requests go to the lightweight tier, complex requests go to the flagship tier). If the enterprise already has a unified model access gateway, logging service, and monitoring and alerting system, token consumption, timeout rate, and failure reasons across the call chain can be brought into the same dashboard, forming a selection basis that can be continuously recalculated.

    8. Common Pitfalls Checklist

    • Treating context length as an effectiveness ranking;
    • Treating maximum output as the final answer length;
    • Ignoring that chain of thought consumes the generation budget;
    • Using a display name as an API identifier;
    • Comparing only unit price and not first-attempt pass rate;
    • Replacing business re-testing with public leaderboards.

    9. Conclusion

    The right approach to model selection is: first narrow the candidate pool by input modality, then read the output budget and billing conventions clearly, and finally compare first-attempt pass rate and total cost in agent scenarios using a unified task set. Specifications are only constraints, not effectiveness conclusions; a reproducible evaluation process is the long-term controllable technical asset.