Selecting Multimodal LLMs: Cost, Capabilities, and Agent Evaluation
Choosing the right multimodal large language model requires looking beyond unit prices to consider task success rates and rework costs. This article breaks down the selection process into six actionable steps: defining input formats and acceptance criteria, understanding context windows versus usable inputs, managing output budgets and thinking tokens, calculating the true cost per call, evaluating agent task success rates, and building a robust business test set. By following this framework, developers can make data-driven decisions when integrating multimodal models into their applications.
Why Unit Price Isn’t Everything
Performing tasks like reading files, generating code, or calling external tools can cost a few cents with one model but several dollars with another. While price differences are important, unit price only answers “how much does it cost?” The more critical question is: can a cheaper model complete the task in one go, and can an expensive model reduce rework? A reliable selection process requires combining unit price, success rate, and rework frequency into a single metric.
This article does not provide a ranking or assume that any single model is universally optimal. Instead, it breaks down model selection into verifiable steps: confirming input formats, understanding context and output budgets, calculating the true cost per call, and finally, retesting with actual business tasks.
Step 1: Confirm Input Formats and Acceptance Criteria
The types of inputs a model supports serve as the first filter. Common inputs include plain text, images, video, and audio. Some models can ingest video files directly, while others only accept sequences of extracted frames, and some require audio to be transcribed into text first. These different approaches yield significant variations in performance, cost, and latency.
Directly inputting video preserves complete temporal information, making it ideal for tasks like action recognition or meeting playback analysis that rely on sequence. However, video consumes significantly more tokens than an equivalent duration of extracted frames, driving up both cost and latency. If the task only requires detecting whether a specific object appears in a frame, extracting key frames is usually more cost-effective.
Before comparing models, clearly define your acceptance criteria. For example: field extraction accuracy must reach a predefined threshold, output must pass structural validation, and the average processing time per task must not exceed a specific limit. Without acceptance criteria, test results are merely subjective impressions.
Step 2: Distinguish Context Window from Usable Input
The context window is often advertised as a massive number, but it does not represent the total content you can actually input. The usable input length is typically lower than the window maximum because the window must also accommodate system prompts, tool definitions, conversation history, and the content generated in the current turn.
Different services enforce limits differently. Some set independent caps on single inputs; even if the total window is large, the input cannot exceed this limit. Other services share a single total window between input and generation, meaning the closer the input is to the limit, the shorter the generated output can be. Therefore, do not assume that if the input is maxed out, the model can still generate a full-length response.
The engineering best practice is to estimate the input token count before making a request, reserving a fixed proportion for generation and tool return results. If limits are exceeded, prioritize segmenting, summarizing, or retrieving information rather than direct truncation, which can silently lose critical information.
Step 3: Understand Output Budgets and Thinking Tokens
The output budget is the maximum generation length allowed by the service. It represents an upper limit and does not mean the model will always generate text up to that length.
In models that support reasoning processes, the model generates “thinking” content before providing an answer, and this also consumes generation tokens. Some services place the chain-of-thought and the final answer within the same budget: the longer the thinking, the less space remains for the answer. If the budget is exhausted by thinking, the answer will be truncated. It may look like the model cannot answer, but it is actually a budget allocation issue.
Troubleshooting this is straightforward: log the input tokens, output tokens, and thinking tokens for each response, and track the truncation rate. If truncations are concentrated on complex tasks, you can increase the budget, reduce the thinking intensity, or break the task down into smaller pieces.
Step 4: Break Down the True Cost of a Single Call
Billing usually consists of several components: input token price, output token price, cache hit price (if supported), tiered pricing rules, and potential per-call surcharges. Whether thinking tokens are billed at the output rate depends on the provider’s official documentation; do not make assumptions based on past experience.
When calculating costs, use the actual token distribution from your real tasks rather than just looking at the pricing table. The following example uses fictional prices and usage amounts purely to demonstrate the calculation method.
def estimate_cost(input_tokens, output_tokens, thinking_tokens,in_price_per_m, out_price_per_m):"""Estimate cost for a single call, price unit is per million tokens.Assume thinking tokens are billed at the output rate; actual rules subject to official docs."""billable_output = output_tokens + thinking_tokenscost = (input_tokens * in_price_per_m+ billable_output * out_price_per_m) / 1_000_000return cost# Example numbers are fictional and for demonstration onlyper_call = estimate_cost(input_tokens=20_000,output_tokens=2_000,thinking_tokens=6_000,in_price_per_m=2.0,out_price_per_m=8.0,)print(f"Single call cost: {per_call:.4f}")
This example shows that thinking tokens can exceed the length of the final answer. If you estimate costs based solely on the answer length, the results will be significantly underestimated.
Step 5: In Agent Scenarios, Focus on Task Success Rate, Not API Claims
Almost all mainstream models support tool calling, but this only means the API can accept tool definitions. Whether an agent can actually complete a task depends on finer capabilities:
- Whether the generated parameters match the tool’s parameter structure;
- Whether results from previous steps are correctly referenced in multi-step calls;
- Whether the model can identify the cause of tool errors and retry or switch paths;
- Whether key constraints are maintained as historical information grows during long tasks.
Therefore, the evaluation metric should be the “cost to complete a task,” not the “cost of a single call.” Suppose a model is half the price per call but only has a 60% task success rate compared to another model. Its average cost per successfully completed task will actually be higher, not to mention the time cost of rework.
Calculation: Cost per successful task = Total cost ÷ Number of successful tasks.
Step 6: Build a Business Test Set
A test set is the most critical asset for model selection. It is recommended to build it as follows:
- Sample from real business logs, covering high-frequency tasks, long-tail tasks, and edge cases.
- Prepare standard answers or scoring rules for each task type. Prioritize automated validation where possible, such as structure, field completeness, and code executability.
- Use blind reviews for tasks that cannot be automatically evaluated, where reviewers do not know which model produced the result.
- Run the same task multiple times to observe result variance. Conclusions drawn from a single run are likely just coincidental.
Below is a simplified evaluation framework. The calling function should be replaced with the actual client of the service you are using.
import
