How to Choose an LLM by Price, Capability, and Agent Use Case

    This guide explains how to choose a large language model based on real business requirements instead of spec sheets. It covers three common selection mistakes, a three-step process (filter by input type, build a cost baseline, and validate with a unified task set), and how to test tool calling reliability for Agent workflows.

    1. Common Selection Mistakes: Why Spec Sheets Are Not Enough

    When teams choose models for real projects, they often make three mistakes:

    1. Judging capability by model name. Suffixes such as “flagship,” “lightweight,” “Pro,” or “Flash” reflect how a vendor organizes its product lineup. They do not map directly to success rates for your business. A lightweight model can outperform a flagship model on structured extraction tasks.
    2. Judging cost by unit price. Take a workflow that reads files, writes code, and calls tools. With one model, a single round of calls may cost a few cents. With another, it may cost several yuan. The real cost is the effective output cost per unit of work. A cheap model that needs multiple rounds of rework and manual review can end up costing more overall. An expensive model that passes on the first attempt and needs fewer retries may be the better value.
    3. Judging capacity by context length. Many mainstream models now offer context windows at the million-token scale. However, a model that can fit an input into its context window does not necessarily use that context well. Retrieval accuracy and key-information recall over long contexts need dedicated testing.

    The recommended selection path is: filter by input type first, then build a cost baseline, and finally validate with a unified task set.

    2. Step 1: Filter Candidates by Input Type

    Before selecting a model, clarify the real input format of your business.

    • Text and image-text tasks (document parsing, form extraction, report generation, code assistance): Most multimodal models can handle these tasks, so the candidate pool is widest. Start with a lightweight, low-cost model to establish a baseline.
    • Direct video understanding (video content moderation, clip summarization, temporal event recognition): Not every model accepts video input. Confirm each model’s declared input types, remove candidates that do not support video, and then compare the remaining models on quality.
    • Long documents and very long contexts (full books, large codebase analysis): Beyond total context window size, check the maximum input limit and the output budget per response. Some models have large context windows but differ noticeably in how many tokens they can generate in one response. This is a hard constraint for tasks that require long outputs, such as rewriting a full document or generating large amounts of code.

    Use this checklist:

    1. □ Input types cover business needs (text / image / video)
    2. □ Maximum input tokens fit the size of a single request
    3. □ Output budget per response fits the size of a single response
    4. □ Thinking/reasoning mode available? Compare output budgets in each mode
    5. □ Billing: are input and output priced separately? Are thinking tokens billed?

    3. Step 2: Build a Cost Baseline

    Choose a lower-cost candidate as the baseline. Once it runs the core task successfully, swap in each other candidate and check whether the quality gain justifies the higher cost.

    Cost estimates should account for two different measures:

    • Unit price: The price per million input and output tokens. This determines the bill, but it does not determine cost-effectiveness.
    • Effective output cost: The average number of rounds per task, the retry rate, and the manual correction rate. You can approximate the cost with this formula:
    1. Cost per task = Σ(input tokens per round × input price + output tokens per round × output price) × average rounds
    2. + estimated cost of manual review and rework

    For high-frequency tasks with a fixed output format, such as batch image-text extraction, first measure the first-pass success rate on a lightweight model. If that rate already meets your threshold, there is no reason to pay a premium. For low-frequency but high-value tasks, such as complex decision support, put more weight on quality and stability.

    4. Step 3: Repeatable Validation for Agent Scenarios

    Mainstream models generally support function calling. However, support for function calling does not mean that tool calls are reliable. The key differences in Agent scenarios are:

    • Tool selection accuracy: Given several tool descriptions, does the model select the correct one?
    • Parameter quality: Are all required parameters present, are the types correct, and does the model invent parameters that do not exist?
    • Multi-step planning stability: Does the model break the task into sensible steps, and can it correct itself after a failure?
    • Output format consistency: Can the model reliably produce structured output that downstream programs can parse, such as strict JSON?

    Run the same task set against every candidate. Here is an example:

    1. # Unified evaluation framework sketch (pseudocode)
    2. TASKS = load_tasks("agent_eval_suite.json") # Fixed task set with reference answers
    3. for model in candidates:
    4. result = evaluate(
    5. model=model,
    6. tasks=TASKS,
    7. metrics=["tool_select_acc", "param_valid_rate",
    8. "task_complete_rate", "avg_cost_per_task"]
    9. )
    10. report(model, result)

    Keep three points in mind during evaluation. The task set should cover typical business paths and edge cases. Each task should have clear acceptance criteria, using executable assertions rather than subjective scoring. Finally, run each task several times and measure both the success rate and the cost variance. In Agent scenarios, variance often reflects launch risk better than the average does.

    5. Decision Framework Summary

    The recommended selection process has four steps:

    1. Filter: Remove candidates that fail hard requirements for input type (text, image, or video) and context constraints.
    2. Test: Measure the first-pass success rate, tool calling success rate, and output stability with a fixed task set.
    3. Calculate: Compare candidates by effective output cost rather than price per token, including rework and manual review costs.
    4. Verify: Before full rollout, run a small-traffic canary release. Monitor quality and spending with real requests, and keep multi-model routing with a fallback option.

    Specifications in official documentation are an entry requirement, not an effectiveness ranking. Differences in naming suffixes, context length, and thinking modes must be re-tested on your own tasks. A reusable, extensible evaluation framework has more long-term value than any single selection. When a new model is released, you can run a new comparison within a day instead of starting from scratch.