Multimodal LLM Selection: Cost, Capabilities, and Agent Scenarios
This article provides a practical framework for selecting multimodal LLMs by clarifying task inputs, acceptance criteria, and call volume, separating context-window, output-token, and reasoning-budget limits, modeling multi-step and agent costs, and running repeatable evaluations. It also covers agent-specific metrics, common pitfalls, and a phased rollout plan.
1. Clarify Three Questions Before Selection
Model selection for multimodal systems should not start with a price table. Teams should first clarify at least three things: what the task input is, what the acceptance criteria are, and how large the daily or monthly call volume will be.
Input type determines the candidate range. When a task only processes static images and text, more models are available. If the task requires direct understanding of video frames and temporal information, the range narrows because not every model supports direct video input. Tool calling is another dividing line. Batch structured extraction usually requires only a single request and a structured output. Multi-step agents, by contrast, must maintain state across turns, choose the correct tools, and parse the results returned by those tools.
Acceptance criteria determine how models should be compared. If the task only requires accurate classification labels, accuracy and recall can be used. If the task requires generating executable code or calling external systems, evaluate end-to-end completion rate, the number of manual rework cycles, and whether the system can recover automatically after a failure.
2. Three Budget Concepts That Are Easy to Confuse
Many teams treat context window, maximum output tokens, and reasoning budget as the same concept, which leads to inaccurate estimates. The three mean different things.
The context window is the total number of tokens a single request can hold. It usually includes input content, conversation history, tool definitions, and the content generated in the current turn. A large window does not mean that data can be inserted without limit, because generation space and input share the same window.
Maximum output tokens is the maximum number of tokens the model can generate in one response. It is not the same as the length of the final answer. The model may answer with only a few hundred words, while the limit still reserves a larger space for complex tasks.
Reasoning budget refers to the tokens the model uses for internal reasoning before producing an answer when reasoning mode is enabled. This portion is usually billed and also consumes the output budget. In some implementations, the reasoning process and the final answer share the same limit. If the chain of thought is too long, the final answer may be truncated. Therefore, setting the output limit to its maximum does not guarantee a complete result, and application code should actively check for truncation markers.
In practice, record the finish reason of every call. If a result ends early because of a length limit, the system should trigger a retry or increase the budget, and track these samples separately.
3. How to Calculate the Cost Model
Most services price input tokens and output tokens separately. Some services also distinguish cache hits and the metering methods for images or video. The rules for converting images and video into tokens vary by platform, so they cannot be estimated simply by file size or text length. Billing records and official metering documentation should be the source of truth.
The total cost of a multi-step task can be expressed as follows:
Total cost = Σ_i ( input_tokens_i × input_price + output_tokens_i × output_price )
Here, i represents each model round trip. Every time an agent calls a tool, it generates a new request, and the historical context is counted again as input. Therefore, the cost of a multi-step task usually accumulates approximately with the number of steps, and the longer the context, the faster it grows.
The following code lists the billing items for each turn explicitly, making it easier to reconcile with the bill:
from dataclasses import dataclass@dataclassclass Turn:input_tokens: intoutput_tokens: intreasoning_tokens: int = 0 # Reasoning tokens; whether billed at output price depends on billing.def task_cost(turns, price_in, price_out):"""price_in and price_out are prices per million tokens; units must match billing."""total = 0.0for t in turns:total += t.input_tokens / 1e6 * price_intotal += (t.output_tokens + t.reasoning_tokens) / 1e6 * price_outreturn total
When comparing candidate solutions, use cost per qualified result rather than cost per call:
Unit cost = total spend / number of tasks that pass acceptance
A solution with a low unit price but a high rework rate may have a higher unit cost than a solution with a higher unit price but a high first-pass rate. This is one of the most commonly overlooked points in model selection.
4. Evaluation Dimensions for Agent Scenarios
Agent tasks should be evaluated not only by whether an answer is ultimately produced, but also by the execution process. The following dimensions are recommended:
- Task completion rate: Whether the acceptance criteria are met within a limited number of steps.
- Tool parameter accuracy: Whether parameter names, types, and values conform to the interface definition when tools are called.
- Step count and loop count: How many turns are used to complete the same task, and whether repeated calls or circular behavior occur.
- Exception recovery capability: Whether the model can continue in a different way when a tool reports an error or returns an empty result.
- Side-effect control: For write operations such as deletion, sending, or modification, whether the model requests confirmation before execution or follows predefined permission boundaries.
These metrics need to be extracted from execution traces, so evaluations should save complete tool-call records rather than only the final text.
5. Build a Repeatable Test Process for the Same Task Set
Specification sheets and unit prices can only narrow the candidate range. The real basis for a decision comes from measured results on the same batch of tasks. The following steps are recommended for organizing repeat tests:
- Build an evaluation set. Sample about 200 cases from real business scenarios, covering common cases and edge cases. Each case needs a clear standard answer or an automatically verifiable acceptance rule.
- Fix prompts and tool definitions. Put prompts and tool descriptions under version control, and use the same version for all candidate models.
- Use consistent call parameters. Record configurations such as temperature, maximum output length, and whether reasoning mode is enabled to ensure a fair comparison.
- Record complete metrics. Include latency, input and output tokens, finish reason, tool-call traces, and cost.
- Conduct manual sample review. In addition to automated checks, blind-review a subset of results to check whether automated rules missed issues.
- Summarize by scenario. Report pass rate, unit cost, and average latency separately, then make a conclusion based on business priorities.
Below is a simplified evaluation framework outline:
import timedef run_eval(cases, candidates, call_model, check):"""call_model and check are implemented by the business; this only defines the flow."""records = []for model in candidates:for case in cases:start = time.time()resp = call_model(model, case["prompt"], case.get("attachments", []))records.append({"model": model,"case_id": case["id"],"passed": check(case, resp["text"]),"input_tokens": resp["usage"]["input"],"output_tokens": resp["usage"]["output"],"finish_reason": resp.get("finish_reason"),"latency_s": round(time.time() - start, 2),})return recordsdef summarize(records):"""Summarize pass rate and average latency by model; cost must be calculated separately with unit prices."""stats = {}for r in records:s = stats.setdefault(r["model"], {"total": 0, "passed": 0, "latency": 0.0})s["total"] += 1s["passed"] += int(r["passed"])s["latency"] += r["latency_s"]return {m: {"pass_rate": s["passed"] / s["total"],"avg_latency_s": round(s["latency"] / s["total"], 2),}for m, s in stats.items()}
The evaluation set should be updated regularly. After the business data distribution changes, previous conclusions may no longer hold.
6. Common Pitfalls
- Larger parameters mean better results. Context window and output limits measure capacity, not task success rate.
- A lower unit price means lower total cost. Rework, retries, and manual review overhead must be included in the total.
- Judging with a few samples. When the sample is too small, accidental results are easily mistaken for stable capability.
- Ignoring how images and video are metered. The token count for multimedia input may be much higher than intuition suggests and needs to be measured.
- Treating a specification sheet as a ranking. Specifications describe the available range; actual performance must be determined by business data.
7. Phased Rollout Recommendations
In the first phase, establish a cost baseline using high-frequency, highly structured tasks. These tasks are easy to validate and can quickly produce unit-cost data.
In the second phase, introduce alternative solutions for comparison in scenarios that are budget-sensitive or require more generation space. Focus on truncation rate and rework rate, not just unit price.
In the third phase, conduct dedicated validation for video understanding and multi-step agent tasks. These two task types have more complex failure modes and require separately designed evaluation sets and manual review processes.
After launch, continuously monitor pass rate, unit cost, and the distribution of finish reasons. If you deploy on Baidu AI Cloud, you can connect the same evaluation scripts to its model service interface and calibrate the cost model against actual billing.
