How to Choose a Multimodal LLM and Evaluate Agent Costs
A practical guide to selecting multimodal large models for document parsing, code generation, and tool use. It explains how input formats narrow the candidate pool, how to write executable acceptance criteria, how to read context window and output budget specs correctly, how to build a total cost model beyond per-token pricing, and how to run a repeatable benchmark to measure Agent success rates before routing traffic in production.
1. Why the Cost of Reading Files, Writing Code, and Calling Tools Can Differ by Two Orders of Magnitude
In real engineering work, the same three tasks — parsing an attachment, generating code, and calling a tool — can cost anywhere from a few cents to several dollars per run, depending on the model. Many teams instinctively pick the cheapest option, but the real bill usually comes from rework: one failed generation triggers retries, a second round of validation, manual fallback, and context re-uploads. These hidden costs often exceed the price difference between models.
So the core selection question is not “which one is cheaper,” but two more engineering-oriented questions:
- Can the cheaper tier pass on the first attempt against your business acceptance criteria?
- Can the more expensive tier bring total cost back down through less rework and shorter human intervention time?
This article does not focus on any specific vendor product. Instead, it abstracts four common model capability profiles found in recent public documentation into general technical questions: multimodal input support, million-token context, per-call output budget, thinking (reasoning) mechanisms, and tool-calling and Agent success rates — and then gives an evaluation process you can actually run.
2. Define Inputs and Acceptance First, Then Talk Price
2.1 Input Format Determines the Candidate Pool
Multimodal capability usually falls into three tiers: text plus images; text plus images plus video; and structured documents as the primary input with images as a supplement. The first step is to list your business inputs clearly:
- High-frequency image-text and structured extraction (invoices, reports, screenshots, forms): the largest candidate pool and the highest cost sensitivity.
- Direct video understanding (surveillance clips, screen recordings, instructional videos): the candidate pool narrows noticeably, and you must verify native video input support first, rather than a “pseudo-video” approach that extracts frames and converts them to images.
- Long documents and repository-level context: focus on the context window and its effective utilization, not the advertised maximum.
A common mistake is reading “supports images” as “supports video.” If the business genuinely needs direct video understanding, filter out image-text-only profiles at the candidate stage, so you avoid the extra engineering complexity and accuracy loss that frame extraction introduces later.
2.2 Write Acceptance Criteria as Executable Assertions
Do not use “the answer looks good” as acceptance. Write acceptance as assertions that can be judged automatically, for example:
acceptance:- id: invoice_extractinput: imageassert: json_schema_valid && field_accuracy >= 0.98- id: repo_patchinput: text+filesassert: unit_tests_pass && diff_lines <= 200- id: tool_flowinput: textassert: tool_call_count <= 3 && final_state == expected
Only when acceptance is executable do “first-pass rate” and “rework rate” become quantifiable metrics.
3. Read the Specs Correctly: Context, Output Budget, and Thinking Mechanisms
3.1 A Million-Token Context Does Not Mean a Million Usable Input Tokens
All four model profiles claim million-token context, but engineering requires distinguishing three concepts:
- Advertised window: the upper limit stated in the documentation.
- Maximum input: what remains available after reserving room for the current generation.
- Effective utilization: how much retrieval and reasoning performance degrades under long context.
An identical advertised window does not mean identical long-document performance. Test effective utilization separately with three task types: needle-in-a-haystack retrieval, multi-hop reasoning, and global summarization.
3.2 Output Budget Is Not the Final Answer Length
This is the detail most often written down wrong. Once the thinking mechanism is enabled, the chain of thought and the final answer usually share the same generation budget; in other words, part of the output limit is consumed by reasoning. If the business needs long structured output (complete code files, long reports), you must budget for “reasoning usage + body usage.”
Illustrative pseudocode:
# Budget planning illustration: not a real APIbudget = max_output_tokensreserve_for_reasoning = 0.6 * budget if thinking else 0.0available_for_answer = budget - reserve_for_reasoningif estimated_answer_tokens > available_for_answer:plan = "chunked generation + section stitching"
3.3 When Input and Generation Share the Total Window
In some profiles, input and the current generation share the total window. This means you cannot assume you can “fill a million input tokens first, then output another million.” Do a capacity check as follows:
input_tokens + expected_output_tokens <= effective_window
If this does not hold, introduce chunking, summary compression, or retrieval-based context injection.
4. Cost Model: Unit Price Is Only the First Term
Use a structured cost model for comparison instead of looking only at price per million tokens:
total cost = input cost + output cost + retry cost + context re-upload cost + human fallback cost
Where:
- Input cost: long documents and multi-turn tool result backfills inflate the input side significantly.
- Output cost: the thinking mechanism inflates consumption on the output side.
- Retry cost: with a low first-pass rate, cost scales roughly linearly with the number of retries.
- Context re-upload: in multi-turn Agent calls, history and tool results are uploaded repeatedly.
- Human fallback: the labor cost of manual review for low-confidence samples.
A practical conclusion: for high-frequency structured tasks, establish a cost baseline with a low-cost profile first; in budget-sensitive scenarios that also need a large generation budget, add a large-output-budget profile for comparison; for direct video input scenarios, keep only profiles with native video support for retesting.
5. Agent Scenarios: Success Rate Is Not in the Name
All four profiles support tool calling, but suffixes like “Max,” “Flash,” and “Pro,” or the context length, do not directly prove Agent success rates. Agent success rate depends on:
- Clarity of tool descriptions and parameter schemas.
- Error recovery ability (whether it retries or switches paths after a tool error).
- Stability of multi-step planning and the ability to terminate loops.
- Context management strategy (history trimming, result summarization).
Run an A/B retest with the same task set. Metrics include task completion rate, average tool calls, average turns, timeout rate, and total cost.
{"agent_metrics": {"task_success_rate": 0.0,"avg_tool_calls": 0,"avg_turns": 0,"timeout_rate": 0.0,"cost_per_task": 0.0}}
6. A Re-test Process You Can Run Directly
- Build the candidate pool: filter by input format; for video scenarios, keep only native supporters.
- Build a baseline: run high-frequency image-text and structured tasks on a low-cost profile.
- Add a comparison: when the budget is tight but a large generation budget is needed, add a large-output profile.
- Unify the task set: fix the prompts, fix the acceptance assertions, fix the temperature and random seed strategy.
- Stress-test long context: measure effective utilization separately for retrieval, multi-hop, and summarization tasks.
- Account for total cost: include retries and human fallback, not just unit price.
- Roll out gradually: route by business tier — low complexity to the low-cost profile, high complexity to the strong-reasoning profile.
7. Common Pitfalls Checklist
- Treating the advertised context as usable input.
- Treating the output limit as body length and ignoring thinking usage.
- Treating “supports images” as “supports video.”
- Treating model suffixes as a capability ranking.
- Comparing only unit price, not first-pass rate and rework cost.
- Directly comparing values under different unit conventions (K vs. M) as exact equalities.
8. Conclusion
Selecting a multimodal large model is essentially about chaining “input format — acceptance criteria — output budget — thinking mechanism — Agent success rate — total cost” into a verifiable engineering pipeline. Define inputs and acceptance first, then calculate the total bill, and finally retest with the same task set. That is how you avoid being misled by spec sheets and price tables. If your organization has already prepared data and toolchains on platforms such as Baidu AI Cloud, you can embed this framework directly into model routing and gradual rollout strategies, and make the final decision with data rather than a parameter table.
