LLM Selection in Practice: A Cost, Capability, and Agent Evaluation Framework

    As multimodal and agent capabilities become widespread, teams often face a set of models with nearly identical spec sheets but very different real-world costs. This article presents a vendor-neutral selection method: screen candidates by input type and acceptance criteria, model actual costs with attention to input/output pricing, reasoning-token consumption, and shared context windows, then run a unified agent task suite to compare success rate, retries, and token usage. The goal is to choose by effective cost per successful task rather than by spec-sheet rankings.

    As multimodal and agent capabilities become widespread, an application team can often find a group of closely matched candidates in multiple cloud providers’ model catalogs. They all claim million-token context, image-text understanding, and tool calling, and their names carry similar positioning suffixes such as “Max,” “Pro,” and “Flash.” The spec sheets look almost the same, but one call may cost a few cents while another may cost several dollars. This article does not evaluate any specific product. Instead, it offers a general selection method: first examine inputs and acceptance criteria, then calculate costs, and finally re-test with a unified task set.

    Why Spec Sheets Cannot Be Treated as Selection Conclusions

    Many teams first pull parameter tables from vendor documentation and sort by “longest context, largest output, lowest price.” This approach has two systematic biases.

    First, parameter definitions are inconsistent. Vendors define “context length” differently: some mean the total window, while others separately state maximum input; output budgets may be based on “maximum output” or on a budget shared by chain-of-thought and the final answer; when K and M units are mixed, 1M is not necessarily equal to 1,048,576 tokens, and because tokenizers differ, the same text can have different token counts. Putting numbers with different definitions into one table and ranking them is like measuring different cloth with different rulers.

    Second, specs do not equal results. “1M context” only indicates how many tokens the window can hold. It does not indicate retrieval accuracy in the middle of long documents, stability in multi-hop reasoning, or performance on your business data distribution. Similarly, “Flash” usually implies a lightweight, high-speed model, while “Max/Pro” implies flagship capability, but these positioning terms do not promise agent task success rates. Agent success depends on adherence to tool-call formats, stability of multi-turn planning, error recovery, and other factors that can only be measured.

    A pragmatic view is this: the correct selection order is to screen out structurally unsuitable candidates first, then let business tasks decide among the remaining ones.

    Step 1: Structural Screening by Input Type and Acceptance Criteria

    The purpose of screening is to quickly exclude clearly unsuitable candidates and avoid wasting testing effort. Focus on two questions.

    1. What form does your input take? If the business is mainly text and structured data—document parsing, ticket handling, code generation, report writing—then models that support text plus images can generally enter the candidate pool. If tasks involve understanding images such as receipts, screenshots, and charts, confirm the specific scope of multimodal input support and image preprocessing rules. If you need to understand video directly—segment summarization, content moderation, temporal event detection—the candidate range narrows significantly. Not all multimodal models accept native video input; some require frame extraction into images first, and the engineering cost of that pipeline should be included in selection.

    2. What are your output acceptance criteria? “Can the cheap model pass on the first try, and can the expensive model reduce rework?” This question matters more than unit price. Structured output tasks such as JSON extraction and form filling are sensitive to format adherence; long-form generation tasks are sensitive to output budget; agent tasks are sensitive to the stability of the tool-call chain. Acceptance criteria determine which metrics to track in later re-testing.

    Based on this, a general trial order is:

    • High-frequency image-text and structured tasks: start with a lightweight-positioned model to establish a cost baseline.
    • Budget-sensitive scenarios that require a larger generation budget: add candidates with a higher output budget cap to the comparison.
    • Direct video input: prioritize candidates that support native video.

    Step 2: Calculate Costs, Focusing on Three Easy-to-Miss Billing Details

    Price comparison can easily become a superficial comparison of “price per million tokens.” Actual cost should be checked against at least three billing details.

    The price gap between input and output. For most models, input price is lower than output price, and the output price gap can be several times. For long-input, short-output extraction tasks and short-input, long-output generation tasks, the optimal candidate may be completely different.

    Token consumption from reasoning mechanisms. When thinking/reasoning mode is enabled, the chain-of-thought itself consumes generation tokens, and in some models it shares the same output budget with the final answer. This means that for the same question, actual output consumption in thinking mode may be several times that of non-thinking mode; if the chain-of-thought exhausts the budget, the answer may also be truncated. Cost estimates must distinguish between modes and measure them separately.

    Hidden constraints of a shared window. Some models share the total context window between input and the current generation. This should not be understood as “fill a million-token input and then still output a million tokens.” When designing long-context pipelines, plan “maximum input + chain-of-thought + final answer” as one overall budget rather than adding the maximum values separately.

    The following vendor-neutral example code shows a cost estimation framework that parameterizes the billing details above:

    1. def estimate_cost(model_profile, task_profile, n_calls):
    2. # model_profile: {"input_price": x, "output_price": y,
    3. # "think_ratio": 2.5, "shared_window": True}
    4. # task_profile: {"avg_input": 80000, "avg_output": 4000,
    5. # "mode": "think"}
    6. out = task_profile["avg_output"]
    7. if task_profile["mode"] == "think":
    8. out *= model_profile["think_ratio"] # extra consumption from chain-of-thought
    9. if model_profile["shared_window"]:
    10. # output is constrained by the remaining window; check for truncation
    11. budget = model_profile["context"] - task_profile["avg_input"]
    12. out = min(out, budget)
    13. cost = (task_profile["avg_input"] * model_profile["input_price"]
    14. + out * model_profile["output_price"])
    15. return cost * n_calls

    Fill task_profile with the average input and output lengths from real business traffic. What you get is a comparable monthly cost, not a documentation unit-price table.

    Step 3: Unified Task Re-testing for Agent Scenarios

    Context length and naming suffixes cannot directly prove agent success rates. Final selection must be measured with the same task set. It is advisable to build an evaluation set that includes the following categories:

    1. Single tool call: verify one-shot accuracy of function names, parameter types, and required fields.
    2. Multi-tool orchestration: tasks that require calling multiple tools in dependency order and aggregating results.
    3. Error recovery: deliberately inject tool errors or abnormal return structures, and observe retry and fallback behavior.
    4. Instruction retention in long context: place key instructions in the middle or later part of a long document and check whether they are “forgotten.”
    5. Format adherence: force JSON Schema output and count parsing failures.

    During evaluation, fix sampling parameters such as temperature, and fix the system prompt and tool definition format. Run the same batch for each candidate, and track end-to-end success rate, average number of calls or turns, average token consumption, and failure case distribution. The effective cost per task, calculated as “success rate × cost per call,” is the final basis for selection—a candidate with a 40% lower unit price but 1.6 times as many retry turns is actually more expensive.

    Conclusion

    There is no universal answer to model selection, but there is a reliable process: first perform structural screening by input type (text/image/video) and acceptance criteria; then check billing details, especially the squeeze that thinking mode places on output budget and the hidden truncation caused by shared windows; finally, run end-to-end re-testing with a unified task set and decide based on “success rate × cost per call.” Spec sheets are admission tickets, not report cards—let business data vote.