LLM Selection for Agents: Pricing, Capability, and Real Task Cost

    Once enterprises wire large language models into workflows that read files, write code, and call tools, the bills diverge wildly: for the same class of task, one round can cost a fraction of a cent while another costs several yuan. Price matters, but two questions come first — can the cheap model pass acceptance on the first attempt, and does the expensive model reduce rework? Rework means repeated input, repeated reasoning, and repeated tool calls, so the real cost often exceeds the difference in list price.

    Define Inputs and Acceptance Criteria Before Comparing Tiers

    Reverse the usual order: write down the input shapes and acceptance criteria first, then shortlist candidates, and only compare unit prices at the end.

    On the input side, distinguish at least four categories: plain text, text plus images, native video, and “files parsed into text before being sent.” Many teams say they “support video” when the actual pipeline extracts frames, transcribes, summarizes, and then calls a text model. These two paths differ completely in latency, cost, and failure modes, and should not share one comparison table.

    On the acceptance side, write criteria that can be judged automatically rather than “answers well.” For example: whether required fields are present, whether citations fall inside the provided material, whether tool arguments are executable, whether code passes the defined tests, and whether key constraints in the latter half of very long material get dropped. Without acceptance criteria, price comparison is meaningless.

    A practical trial order:

    • High-volume text/image tasks, form extraction, classification and tagging: start with a lower-cost tier with stable latency to establish a cost baseline.
    • Budget-sensitive work where a single run must produce a long plan or a large amount of code: add tiers with a larger maximum generation length to the same batch of tasks.
    • Cases that must take video as native input rather than a transcript: test only on tiers that explicitly support that input type, instead of forcing a text model to cope.
    • Multi-step tool calls and state-changing agents: do not decide based on “flagship” or “lite” in the model name; run the same task set and then choose.

    What Spec Sheets Do and Do Not Tell You

    Public documentation usually lists input types, context length, maximum output per call, and tool-calling support. These are entry conditions, not a ranking of quality.

    A “million-token” context only describes window capacity. It does not guarantee the model uses the full text evenly, nor that instructions at the end will not be drowned out. During evaluation, deliberately place a key constraint once near the beginning, once in the middle, and once at the end of the material, and measure the miss rate rather than reading the nominal length.

    The output budget is not the same as the final answer length. If thinking or intermediate reasoning is enabled, that reasoning consumes generation quota too; some implementations put reasoning and the answer under the same limit. Other implementations share one total window between “this round’s input + this round’s generation,” so when the material already approaches the window limit, the remaining generation length shrinks sharply. Do not read this as “fill the input with very long content and still get an equally long answer.”

    Tool-calling capability works the same way. An API returning a function name and arguments only proves the protocol works. Agent success depends on whether arguments are valid, whether the model follows “read before write,” whether it retries chaotically after failures, and whether it revises its plan after observing results. None of that appears next to the context number.

    When reading specs, keep each vendor’s own units and do not treat different counting conventions as exactly equal. How tokens are split, how images and video are converted, and whether cache hits are billed separately all change the bill.

    Break Cost Into Addable Components

    The cost of one round is rarely just “input unit price × word count.” During a pilot, track these items:

    1. Input tokens: system prompt, history, retrieved snippets, image or video conversion.
    2. Output tokens: the visible answer, plus thinking tokens if billed separately.
    3. Tool round trips: every observation becomes input again; more loops mean more repeated input cost.
    4. Caching: a stable prefix that hits the cache lowers marginal cost; prompts rewritten daily yield almost no cache benefit.
    5. Failed retries: timeouts, format errors, and unauthorized tool calls that void the whole round.

    When comparing two tiers, use the “expected cost of completing the same acceptance criteria,” not the “list price of one successful call.” With a first-pass rate of p and a full cost of c per call, the expected cost is roughly c / p (ignoring the increasing cost of repeated failures). If p drops from 0.9 to 0.5, expected cost roughly doubles — enough to erase a unit-price advantage.

    A sample record structure can be simple and need not be tied to any vendor console:

    1. task_id, model_tier, input_tokens, output_tokens,
    2. tool_rounds, cache_hit, passed, latency_ms, cost

    Repeat each task several times, separate cold starts from cache hits, and avoid drawing conclusions from one lucky success.

    Where Agent Workloads Actually Diverge

    “Read files, write code, call tools” looks the same across models, but failures concentrate in state and budget.

    Long chains fill the context. If early tool results are appended verbatim, later steps become both expensive and prone to forgetting constraints. In practice, have tools return short observations: keep only the fragments relevant to the current subgoal, and maintain task state on the system side (completed, pending confirmation, prohibited actions) rather than expecting the model to remember the entire history.

    Allocate the generation budget per step. Planning can be short; the step that writes a patch or a long report is the one that needs a high output limit. If thinking and the answer share a quota, long reasoning crowds out the deliverable, showing up as “thought a lot but the delivery was truncated.” Limit reasoning depth in that case, or split the task into two calls — plan first, then execute — instead of blindly enlarging the window.

    Do not route video and complex layouts to the most expensive tier by default. Extracting key frames, converting to structured text, and then validating is often more stable and easier to regression-test. Only when the timeline, shot changes, or layout geometry are themselves the acceptance target should native multimodal input be mandatory.

    For permissions, tool allowlists, argument validation, and human confirmation belong outside the model. A model that “can call tools” is not a security boundary. Write operations, payments, and deletions should not execute automatically by default.

    A Reusable Retest Method

    Fix a small golden task set that covers your business rather than public chit-chat:

    • Short text/image extraction: field accuracy, and whether refusals are correct.
    • Long-material Q&A: whether the answer cites the specified passage, and whether tail constraints take effect.
    • Code modification: whether only the target file changed, whether tests pass, and whether the diff is reviewable.
    • Multi-step tools: feed in a tool result that will fail, and see whether the model over-retries or fabricates results.
    • If the business needs video: run the same footage through both the “native input” and “parse then text” paths, and compare acceptance pass rate and total cost.

    For each task, record pass or fail, cost, latency, and tool rounds. Write the pass thresholds in advance — for example, zero tolerance on key fields, one revision allowed on secondary fields. Use this table to pick the default tier: a baseline tier handles most traffic, while high-budget or multimodal tiers are reserved for subsets with clearly defined triggers. After launch, review rework rate and per-task cost weekly, and when spec pages change, rerun only the affected golden tasks rather than treating new marketing language as a reason to upgrade.

    Conclusion

    Four capabilities — text/image, long generation, native video, and tool calling — can coexist across different tiers, but neither naming nor window length replaces retesting. Measure a baseline with a low-cost tier, compare “first-pass success” and “less rework” under the same acceptance criteria, and then confine video, very long output, and complex agents to the paths that genuinely need them. Record cost split by input, output, tool rounds, and caching instead of substituting a single-call list price for task cost. Done this way, the selection decision updates with your business data rather than with model nicknames.