Choosing a Multimodal LLM: Evaluating Cost, Capability, and Agent Performance
A practical framework for selecting a multimodal large language model: how to define the right evaluation task, test real context limits, account for tiered token pricing and hidden tool-call costs, and benchmark agent reliability before committing to production.
Choosing a Multimodal LLM: Evaluating Cost, Capability, and Agent Performance
1. Start with the Task: What Are You Actually Selecting a Model For?
“Read files, write code, call tools” sounds like a single requirement, but it breaks down into very different workloads:
- Batch image-and-text structuring: invoice recognition, table extraction, product data cleanup. High volume, low value per task — extremely price-sensitive.
- Long documents / long conversations: contract review, multi-turn support call summarization. These test context retention.
- Code and tool orchestration: agent workflows that test planning, argument filling, and failure recovery.
- Video understanding: meeting summaries, video content moderation. Only some models accept video input directly.
The first question in model selection is not “which model is strongest,” but “what is the true cost of completing this task.” A cheap model that frequently fails amplifies cost through retries, manual verification, and rework; an expensive model that succeeds on the first pass can actually be cheaper. A good core metric is:
Cost per completed task = API cost × (1 + retry rate) + manual correction cost + opportunity cost of latency
Labels like “flagship” or “turbo” in a model’s name prove nothing about capability — treat them as hints at most, and always validate with the same benchmark task set.
2. Input Capability and Context: Filter Out Hard-Fail Candidates First
1. Input modality is a hard gate
Text and image input are now standard for multimodal LLMs, but video input is not. If your workload requires uploading video directly (rather than extracting frames into images first), eliminate non-supporting candidates immediately — otherwise any downstream evaluation is pointless.
2. Context length has three commonly confused figures
- Nominal context window: the vendor-advertised maximum, e.g., a million tokens.
- Maximum per-request input: some models have a large total window, but a lower cap on single-request input, with the remainder reserved for output.
- Effective context: long-context models commonly exhibit a “lost in the middle” effect, where recall of information in the middle of very long inputs degrades.
Also, output budget is often overlooked: some models set different output caps for thinking (reasoning-token) mode versus non-thinking mode, and some dynamically constrain output length by remaining context — the fuller the input, the less room for output. This can truncate generated reports or long code.
3. Run a context stress test
Don’t rely on spec sheets. Take real long documents from your workload (say, 300K–500K tokens), plant verifiable questions at different positions in the document, have the model answer, and measure recall. This reveals the true boundary of effective context — far more reliable than any marketing number.
3. Pricing Models: Why the “Same Work” Can Cost Several Times More
1. Tiered pricing is the norm
Most LLMs bill input tokens, output tokens, and thinking tokens separately, and output tokens typically cost several times more than input tokens. For reasoning models, a long chain of thought can make thinking tokens the dominant share of the bill. Also note:
- Images are converted to tokens based on resolution/area;
- Video is converted based on frame count or duration;
- In tool calling, when a tool’s returned observation is fed back into the model, it’s billed as another round of input — multi-step agent costs scale linearly with step count.
2. A practical cost estimation method
Here’s how to estimate cost for a batch task:
def estimate_task_cost(input_tokens: int,output_tokens: int,thinking_tokens: int,tool_steps: int,price: dict, # {"input": x, "output": y, "thinking": z} per 1K tokensretry_rate: float, # e.g., 0.15 means 15% of tasks need one rerunmanual_cost: float, # manual correction cost per task) -> float:per_call = (input_tokens * price["input"]+ output_tokens * price["output"]+ thinking_tokens * price["thinking"]) / 1000# Approximate tool observation feedback as additional input each stepper_call += tool_steps * input_tokens * 0.2 * price["input"] / 1000return per_call * (1 + retry_rate) + manual_cost
Apply this formula to each candidate model’s pricing structure, combined with average token consumption measured on a small sample, and you get a far more reliable comparison than simply looking at unit prices.
3. Don’t forget caching and batch discounts
Many platforms offer cache-hit pricing for repeated prefixes (such as system prompts and fixed tool definitions), and discounted endpoints for large offline batch jobs. If your prompt template is fixed and your volume is high, these differences can change the rankings.
4. Tool Calling and Agent Success Rate: Benchmark It, Don’t Trust Specs
All four capability tiers support tool calling, but support ≠ reliability. Agent failures are rarely “can’t call a tool at all.” They typically look like:
- Malformed arguments (wrong types, invalid enum values, missing required fields);
- Fabricating an answer instead of calling a tool when needed, or calling tools unnecessarily;
- Drifting off course mid-task, repeated calls, or getting stuck in loops;
- Failing to interpret tool errors correctly and recover.
1. Build a business-specific evaluation set
Construct 20–50 cases from real business tasks, covering: the happy path, edge values, tool errors, multi-step chains, and cases where the model should refuse to call a tool. Fix the tool definitions (keep JSON Schema clear, with well-named fields) and the prompts, then run each candidate model N times (e.g., 5 runs per case) and measure:
- Tool selection accuracy
- Fully-correct argument rate
- End-to-end task completion rate (strict assertions on the final result, not “looks about right”)
- Failure recovery rate
- Average / P95 latency and token consumption
- Result variance (high variance means unpredictable behavior — a production risk)
2. Evaluation script skeleton
for model in candidates:for case in eval_set:for run in range(RUNS):trace = run_agent(model, case.tools, case.prompt)results[model][case.id].append(score(trace, case.expected))report = aggregate(results) # Output completion rate, average cost, P95 latency
The key is comparing across models on the same task, same tools, same prompts — otherwise results aren’t comparable.
5. A Reusable Selection Workflow
- List hard constraints: modality (video or not), context length, output budget, compliance and data residency requirements. Eliminate non-compliant candidates first.
- Establish a cost baseline: run a small sample (100–500 items) through the cheapest model that meets the hard constraints, and record accuracy and cost.
- Evaluate by scenario:
- High-frequency image-text / structuring tasks: verify accuracy of low-price candidates first, and decide whether rework cost is acceptable;
- Tasks requiring long output: focus on maximum output, thinking-mode overhead, and truncation behavior;
- Video tasks: compare only among candidates that support video input;
- Complex agents: use a unified evaluation set to compare completion rate, step count, and total cost.
- Composite scoring:
score = completion rate - cost penalty - latency penalty - variance penalty, with weights set by your business. - Ongoing validation in production: keep a blind test set and run periodic regressions; log token breakdowns, tool traces, and failure reasons per call to catch quality drift after model version updates.
6. Engineering Recommendations
- Tiered routing: use lightweight models for simple subtasks and escalate to stronger models only for complex planning — don’t use the most expensive model for every step;
- Failure fallback: on failure, switch to a different, stronger call and log the reason, instead of blindly retrying the same model;
- Control output: use structured output constraints and max-length settings to limit output tokens; generate long reports in segments;
- Observability: log the tool name, arguments, return summary, and token breakdown by category for each step, so cost anomalies can be traced to a specific stage quickly;
- Avoid evaluation overfitting: don’t expose the full evaluation set to your optimization process — reserve a portion as blind samples for final acceptance testing.
7. Summary
Model names with “flagship” or “turbo” labels, context window sizes, and supported modalities are admission thresholds only. The real decision basis is the measured completion rate, rework rate, and total cost on the same business task. Clarify input modality and output budget first, then account for tiered pricing and the hidden cost of tool-observation feedback, and finally benchmark agent tasks on a unified evaluation set. This workflow lets you make a reproducible, defensible choice between price and capability — instead of being led around by marketing claims.
