How to Choose a Multimodal LLM: Cost, Capability, and Agent Evaluation Methods
Unit price alone is a misleading way to choose a large language model. This guide explains how to evaluate multimodal LLMs by combining per-call cost with first-pass success rate, why usable context differs from advertised context windows, how output budgets and reasoning modes affect long tasks, and how to build a business-specific evaluation set—including specialized metrics for agentic workflows. Includes runnable Python examples for effective cost calculation, a minimal test harness, and a guarded agent loop with step and token limits.
Why Unit Price Alone Is Misleading
For the same task—reading a file, generating code, calling a tool—some models cost a few cents per call while others cost several dollars. Price gaps matter, but price is only part of the total cost. A cheap call that frequently produces wrong results means the cost of manual review, re-prompting, and fixing code can quickly exceed the savings.
Model selection therefore has to answer two questions at once: can a cheap model get it right on the first try, and can an expensive model reduce rework? Only by combining per-call cost with first-pass success rate does comparison become meaningful.
Break Down the Task Before Choosing a Model
The first step in model selection is decomposing the business task and clarifying three things:
- Input type: Is the task pure text, mixed text and images, or direct video input? Video input usually requires checking limits on duration, frame rate, and file size—refer to each vendor’s official documentation.
- Output length: Does the task need a short summary, or a complete code file or long report? The longer the output, the more the output budget matters.
- Acceptance criteria: What rules determine whether a result is correct? Examples: whether extracted fields are complete, whether JSON is valid, whether code passes tests.
Define acceptance criteria before choosing a model. If you pick the model first and set the criteria afterward, you’ll inevitably rationalize the choice you already made.
Context Length Is Not Usable Context
Many documents advertise a very large context window—millions of tokens, for instance. The actually usable portion is smaller after subtracting:
- Tokens consumed by system instructions and tool definitions.
- Conversation history and tool return values.
- Space reserved for the output.
Some models calculate input limits, output limits, and total context separately. For example, input may go up to one value, but single-turn output is capped at another. When designing long-document tasks, verify that “input limit plus output limit does not exceed the total window,” rather than trusting the headline window size.
Output Budgets Determine Whether Long Tasks Finish
When the single-turn output budget is too small, the model truncates mid-response. It looks like the model is “being lazy,” but it’s really a budget problem. Common workarounds:
- Split long tasks into multiple steps, generating one file or one section per step.
- Have the model output an outline first, then expand section by section.
- Specify the output structure and maximum length explicitly in the prompt to reduce wasted text.
When choosing a model, compare the output budget against the task’s actual output length to confirm the budget is sufficient.
The Trade-offs of Reasoning Modes
Some models offer a reasoning or thinking mode that performs more intermediate reasoning before producing the final answer. This typically changes three things:
- Accuracy may improve, especially for multi-step logic, math, and complex code changes.
- Output tokens increase, raising per-call cost.
- Response latency grows.
More reasoning is not always better. For structured extraction and classification tasks, disabling reasoning mode is usually more cost-effective. For multi-step planning and difficult bug fixes, enabling it may lower total cost by reducing rework. Let retest data decide, not intuition.
Measuring Models by Effective Cost
Per-call cost can be estimated as:
Per-call cost = input tokens × input price + output tokens × output price + additional fees (e.g., tool calls)
Per-call cost alone isn’t enough—you also need the first-pass success rate. If every failure requires a retry or manual fix, the expected cost per successful task is:
Effective cost = per-call cost ÷ first-pass rate + manual review cost
The following code demonstrates this calculation. The numbers are hypothetical and exist only to illustrate the method—not any model’s actual pricing.
def effective_cost(unit_cost: float, pass_rate: float, review_cost: float = 0.0) -> float:"""Compute the expected cost per successful task, adjusted by first-pass rate."""if not 0 < pass_rate <= 1:raise ValueError("pass_rate must be in the (0, 1] range")return unit_cost / pass_rate + review_cost# Hypothetical values, for demonstration onlycheap = effective_cost(unit_cost=0.02, pass_rate=0.60, review_cost=0.01)stronger = effective_cost(unit_cost=0.10, pass_rate=0.95, review_cost=0.00)print(f"Expected cost per successful task (low-price option): {cheap:.3f}")print(f"Expected cost per successful task (high-price option): {stronger:.3f}")
With these hypothetical values, the low-price option turns out to be more expensive in effective terms, because its lower pass rate requires more manual review. In real business, the numbers must come from your own retests.
Build a Business-Specific Test Set
Official specs and public leaderboards only describe a model’s theoretical limits—they don’t reflect performance on your business. Your test set should come from real business data and meet these requirements:
- Cover the main scenarios: common inputs, edge cases, and failure cases.
- Sufficient sample size: at least dozens of cases per task type, with hard cases retained.
- Clear ground truth or checking rules: automate checks wherever possible; for cases that can’t be automated, define a consistent manual scoring rubric.
The following code shows a minimal test harness. Each case runs multiple times, recording pass/fail and latency.
import timefrom dataclasses import dataclassfrom typing import Callable@dataclassclass Case:case_id: strprompt: strchecker: Callable[[str], bool] # Takes model output, returns whether it passeddef run_suite(call_model: Callable[[str, str], str],model_name: str,cases: list[Case],repeat: int = 3) -> list[dict]:"""Run each case repeatedly, recording pass status and latency."""results = []for case in cases:for run_index in range(repeat):start = time.perf_counter()output = call_model(model_name, case.prompt)latency = time.perf_counter() - startresults.append({"model": model_name,"case": case.case_id,"run": run_index,"passed": case.checker(output),"latency_s": round(latency, 2),})return results
Keep the following in mind when retesting:
- Fix sampling parameters: Keep temperature, random seeds, and similar settings consistent so parameter differences don’t skew comparisons.
- Record version and date: Models get updated, so log the call date and model version with each result.
- Use the same prompts: Give different models identical prompts and inputs, and note separately whether prompts needed model-specific tuning.
- Run multiple times: Run the same case several times to observe stability, rather than relying on a single result.
Evaluating Agents Specifically
Agents complete multi-step tasks through tool calls, so evaluation must look at the process, not just the final answer. Track these metrics:
- Parameter validity rate: Do tool call arguments conform to the interface definitions?
- Step correctness: Are the call order and tool choices reasonable?
- Error recovery: When a tool returns an error, can the model adjust parameters and retry, or report the failure correctly?
- Termination behavior: Does the agent stop promptly when the task is done, or does it loop pointlessly?
- Cost ceiling: Are total token consumption and call counts per task under control?
Set a maximum step count and cost ceiling for agents, and force termination when either is exceeded. That way, even if the model behaves unpredictably, the loss is bounded.
MAX_STEPS = 10MAX_TOTAL_TOKENS = 200_000def guarded_agent_loop(agent_step, task: str) -> dict:"""Run the agent loop, force-stopping when step or token budgets are exceeded."""used_tokens = 0for step in range(MAX_STEPS):result = agent_step(task) # Assume it returns {"done": bool, "tokens": int, ...}used_tokens += result["tokens"]if result["done"]:return {"status": "done", "steps": step + 1, "tokens": used_tokens}if used_tokens > MAX_TOTAL_TOKENS:return {"status": "budget_exceeded", "steps": step + 1, "tokens": used_tokens}return {"status": "max_steps_reached", "steps": MAX_STEPS, "tokens": used_tokens}
A Tiered Strategy for Trying Models
You don’t need to compare every model on every scenario from the start. Tier tasks by their nature:
- High-frequency, structured tasks: Establish a cost baseline first. These tasks have high call volumes, so unit price and first-pass rate dominate total cost. Pick a low-priced, stable model as the baseline and compare every alternative against it.
- Budget-sensitive tasks with long outputs: On top of the baseline, trial models with larger output budgets and check whether they reduce truncation and task splitting.
- Tasks requiring direct video input: First confirm whether video must be input directly. If frame extraction plus image input meets the need, cost and complexity are usually lower. Only if direct video is truly necessary should you run dedicated tests on models that support it.
- Complex agent tasks: Compare candidates on the same task set using the metrics from the agent evaluation section, then decide.
Pre-Launch Checklist
Before going live, verify each item:
- Input type, output length, and acceptance criteria are documented for the task.
- The test set covers main scenarios and failure cases, with fixed scoring rules.
- Per-call cost, first-pass rate, and latency are recorded for every candidate model.
- Agents have step and cost limits and handle tool errors correctly.
- Model versions and call dates are logged for later review and comparison.
Following this process means your selection will rest on real data from your own business—not numbers from a spec sheet.
