How to Choose a Multimodal LLM: Pricing, Capabilities, and Agent Use Cases Compared
A practical framework for selecting a multimodal large language model based on total cost and real task performance rather than headline specs or per-call price. It shows how to narrow candidates by input modality and acceptance criteria, how to read specs like context window and output budget without falling into common misreadings, how to model the true cost per successful task (especially for multi-round agents), which capabilities to validate for agent scenarios, and how to build a reproducible evaluation set and roll out with routing, caching, and observability.
1. Where the problem starts: the same task, but costs differ by dozens of times
In AI application development, “reading files, writing code, and calling tools” are the three most common task types. Reading files maps to document parsing, information extraction, and long-document Q&A; writing code maps to assisted programming, script generation, and bug fixing; calling tools maps to queries, computation, and business writes. The tasks sound similar, yet the cost of a single round can differ by dozens of times—some cost only a few cents, others several dollars.
Most of this gap comes from the structure of the task itself:
- Content length: a several-hundred-page report can consume tens of thousands to hundreds of thousands of tokens on input alone.
- Generation length: producing a full runnable code block, a complete JSON object, or a long analysis far exceeds a one-line answer in output volume.
- Number of rounds: an agent repeatedly runs the “observe, decide, call tool, observe again” loop, and each round carries the full history.
- Reasoning overhead: once deep reasoning is enabled, the reasoning process itself consumes output budget.
So the core question in model selection is not “which is cheaper,” but “can the cheap one get it right in one pass, and can the expensive one avoid rework?” The right approach has three steps: first define the input scope and acceptance criteria, then compute the total cost, and finally benchmark with the same task set.
This article does not render a verdict on specific models. Instead, it offers a reusable judgment framework: how to read specs, how to compute cost, and how to validate capabilities with your own business data. Billing rules differ across platforms, and all amounts here are illustrative—always defer to the rules published by your provider.
2. Step 1: Narrow the candidate pool with input and acceptance criteria
1. Input modality determines the candidate pool
Not every model supports every input type, so before selecting, take stock of what your real business data actually looks like.
- Plain text: tickets, logs, emails—almost any chat model covers these, so focus on long-text handling and output quality.
- Mixed image and text: invoices, scanned contracts, product photos, screenshots—confirm image input is supported, and check recognition stability when multiple images are passed at once.
- Video: surveillance clips, instructional videos, screen recordings—only models with native video understanding can process these directly.
- Audio: if the business involves call recordings or voice commands, you need a separate speech-recognition step and then hand the transcript to a text model.
- Other formats: code repositories and structured tables can be parsed into text or JSON first, then fed in as context.
Practical tip: If inputs are mostly image-and-text, validate on a cheaper model first and gradually add load. If you must understand video directly, the candidate pool narrows sharply—prioritize validating models that have the corresponding capability.
2. Acceptance criteria determine how you test
Before comparing models, define what “getting it right” means, and make the judgment as automated as possible:
- Information extraction: fields complete, format valid, values matching the labels;
- Code generation: whether it compiles and passes unit tests;
- Tool calling: parameters complete, values valid, the task actually completed;
- Text generation: factual accuracy, key-point coverage, format constraints met.
Without clear acceptance criteria, any comparison stays at the level of subjective impression.
3. Same input type, different task difficulty
Take the most common “read a document” case: different difficulty levels raise the bar on the model step by step.
| Difficulty | Typical task | Key model requirement | Suggested evaluation dimensions |
|---|---|---|---|
| L1 Extraction | Extract fields from a single-page form and output JSON | Format adherence, instruction following | Format validity rate, field accuracy, latency |
| L2 Cross-page synthesis | Summarize the terms and risks of a full contract | Long-context understanding, information organization | Key-point coverage, hallucination rate |
| L3 Document-driven agent | Compare multiple documents, then call tools to complete a workflow | Tool calling, multi-step planning, error recovery | Task completion rate, average rounds, total cost |
A common mistake is judging L1-only candidates against L3-level difficulty standards and concluding “the model isn’t good enough,” or choosing a high-cost tier when you only need L1. The right approach is to “select for the highest difficulty you will actually encounter, and size the mix to your real task distribution.”
3. Step 2: Read the specs, and watch for five common misreadings
Specs define the feasible boundary of a task, but spec numbers are easy to misread. Here are five high-frequency pitfalls and the correct way to understand them.
1. “Context length” is not “input quota”
Most model services cap the total window as “input tokens + tokens generated this round.” In long-input scenarios near the limit, the room left for output may shrink to just a few thousand tokens, and an unexpectedly long answer gets truncated outright.
Quantify it: run a “headroom check” before calling.
# budget_check.py: estimate the context headroom for a single call (illustrative, generic)# Platforms differ in how they count; the conversion factors here are only illustrative and must be calibrated with each platform's tokenizer before launchdef estimate_tokens(text):# Chinese is roughly 1 token per character; English is roughly 1 token per 4 charactersascii_count = sum(1 for ch in text if ord(ch) < 128)cjk_count = len(text) - ascii_countreturn cjk_count + ascii_count // 4 + 1def check_budget(messages, max_output, window_size):input_tokens = sum(estimate_tokens(m["content"]) for m in messages)remaining = window_size - input_tokens # total budget left for generationoutput_budget = min(max_output, remaining) # the smaller of "model-allowed" and "actually available"if remaining <= 0:raise ValueError("Input already exceeds the total window; compress history or retrieval results first")print(f"input {input_tokens} | remaining {remaining} | actual output {output_budget}")return output_budget# Example: with a 128K window and ~122K input, even if 32K output per round is allowed, only ~6K is actually usablecheck_budget([{"role": "user", "content": "x" * 488_000}], 32_768, 128 * 1024)
2. “Output budget per call” is not “the answer-length ceiling”
If the platform offers a reasoning mode, the maximum output budget is often shared between the reasoning process and the final answer, and deep reasoning alone can consume a sizeable chunk. Plan ahead:
- For tasks that need a long final artifact, estimate “reasoning usage + answer usage” first, then decide the output budget;
- Separate planning from execution: have the model produce a short plan in reasoning mode, then switch to non-reasoning mode to execute, so long reasoning does not crowd out generation space;
- Not every task needs deep reasoning. For extraction and classification with fixed formats, enabling reasoning usually just adds latency and cost.
3. Do not take units and billing conventions for granted
Platforms do not express token counting and context limits identically. 32K might be 32,768 or 32,000; for million-scale context, some count 1,000,000 and others 1024×1024. Near the boundary, this difference can directly cause a request to fail or a result to be truncated. Always defer to the validation at actual call time, and reserve 5%–10% headroom for critical endpoints.
4. Output type is not a proxy for capability level
Being able to output JSON only shows the model follows output formats well—it does not mean stronger reasoning, code generation, or tool-calling ability. Common testing mistakes include:
- Comparing models on simple tasks like multiple-choice or fill-in-the-blank, where differences are negligible and cannot justify a decision;
- Comparing only single-round results, when an agent’s success often hinges on error recovery across multiple rounds;
- Assuming a large context window means good long-text understanding—especially the “lost in the middle” problem, where many models still miss key details buried in the middle of a long context.
5. Model identifiers must be pinned and traceable
Models in the same family are often released as “series name + version tag + snapshot ID.” If you record only the series name, a platform update can silently change online behavior, and historical evaluation results lose comparability. Record the following:
- The full model identifier (with version or snapshot);
- Sampling parameters: temperature, max output, whether reasoning is enabled;
- Evaluation date;
- Input dataset version.
Run regression tests regularly after launch to catch behavior changes early.
4. Step 3: Compute the cost, and decide on “cost per successful task”
1. Unit price is just the starting point
A complete cost model needs at least these elements:
- Input and output unit prices: priced separately, with output usually higher;
- Caching: some platforms offer cache discounts for repeated context prefixes;
- Batching: asynchronous, non-real-time tasks usually get a discount;
- Billing granularity: per-token rounding, minimum billing unit, and whether failed requests are billed;
- Resource quotas: tokens-per-minute input/output quotas, requests per second, and so on.
Plug these into the two formulas below to get the cost per call and per task.
# cost_model.py: cost per call and per task (illustrative, generic; unit prices are examples only)# Unit: dollars / million tokens (example values, not the actual price of any platform)PRICE = {"model_a": {"in": 1.0, "out": 3.0}, # example: mid tier"model_b": {"in": 0.4, "out": 1.2}, # example: economy tier}def call_cost(model, in_tokens, out_tokens, reasoning_tokens=0):p = PRICE[model]billed_out = out_tokens + reasoning_tokens # reasoning usage counts as outputreturn (in_tokens * p["in"] + billed_out * p["out"]) / 1_000_000def task_cost(model, in_tokens, out_tokens, rounds, reasoning_ratio=0.0):# rounds = actual interaction rounds; reasoning_ratio = reasoning usage as a fraction of output usagereasoning = out_tokens * rounds * reasoning_ratioreturn call_cost(model, in_tokens, out_tokens * rounds, reasoning)# Scenario: 60K input, 1K output, 4 rounds, with 20% reasoning usage# Model A is about $0.062, Model B about $0.010—roughly a 6x differencefor m in PRICE:print(m, round(task_cost(m, 60_000, 1_000, 4, 0.2), 4))
2. Agent cost is cumulative
A normal Q&A needs a single call; an agent must call the model repeatedly in the “observe—decide—call tool—observe again” loop. Every round, the model re-receives the full history: the system prompt, the user instruction, the reasoning and replies from all prior rounds, and the tool-returned results.
With illustrative data:
- System prompt 2K, user instruction 1K—first-round input is about 3K;
- Each subsequent round adds a 1K tool result and a 500-token model output;
- If the task completes only at round 8, cumulative input is about 3K + 7K = 10K and cumulative output about 3.5K;
- Input is more than 3x the first round, while output is comparable to one complex Q&A.
This is the root cause of “a few-cents task becoming a few-dollars task”: cost grows roughly quadratically with rounds, and the number of rounds depends on the model’s decision quality. A model that takes two fewer detours and one fewer failure may actually be more economical in total cost.
3. Cost per unit task is the basis for decisions
The metric that truly matters in selection is:
cost per task = total cost of all calls ÷ number of successfully completed tasks
Total cost includes retries, failures, error correction, and the overhead of human review. Comparing only the per-call unit price easily leads to conclusions opposite to reality. In practice, you can pick a tier-based approach:
- Establish a baseline: use an economy tier for most standardized tasks—high-frequency image/text recognition, structured extraction, ticket classification—and establish a per-task cost baseline;
- Enhance on demand: for budget-sensitive tasks that need long generation, control output volume by disabling reasoning, segmenting generation, and outputting only the necessary fields;
- Validate the key cases: for tasks involving native video input, complex cross-document reasoning, or long agent workflows, measure against the task set among capability-matched candidates before locking in a tier.
5. Capability differences: four things to validate for agent scenarios
Context length and version tags cannot directly tell you an agent’s success rate. These four dimensions must be validated with real tasks.
1. Reliability of tool calling
Tool calling is the foundational capability of an agent. Watch closely for:
- Whether parameter generation is complete and valid, and accurately matches business semantics;
- Whether it can return multiple independent calls at once, reducing interaction rounds;
- Whether the model correctly selects information when the tool-returned structure is complex and content is long;
- Whether, after a tool call fails, it can adjust parameters and retry based on the error, instead of repeating the same mistake.
How well the tool descriptions are written will significantly amplify the differences between models. Use the same tool definitions during evaluation to avoid mistaking prompt differences for model capability differences.
2. Context-management strategy
As tasks get longer, three context strategies are commonly used:
- Full concatenation: simple and direct, but token-heavy and prone to hitting the context limit;
- Sliding window: keep only the most recent few rounds—easy to implement, but early constraints tend to be forgotten;
- Summary compression: compress earlier dialogue or tool results into a summary, balancing cost and continuity, though it may lose detail.
Below is a budgeted compression example. In practice, the summary itself should also be generated with a low-cost model.
# context_manager.py: budgeted context compression (real model calls omitted)class BudgetedContext:def __init__(self, window=120_000, reserve=8_000):self.window = window # total context windowself.reserve = reserve # budget reserved for the system prompt and the answerself.summary = "" # summary of compressed earlier dialogueself.recent = [] # full messages kept intactdef add(self, message):self.recent.append(message)def render(self, verbose=False):budget = self.window - self.reserveparts = ([self.summary] if self.summary else []) + self.recentif verbose:# verbose mode: keep all original text; suited to review tasks that need full evidencereturn partskept = []used = 0for msg in reversed(parts): # keep from the newest message backward until the budget runs outsize = estimate_tokens(msg["content"])if used + size > budget:breakkept.insert(0, msg)used += sizeif len(kept) < len(parts): # when messages are truncated, summarize the earlier portiondropped = parts[: len(parts) - len(kept)]self.summary = summarize(dropped) # low-cost model summarykept.insert(0, {"role": "system","content": f"[Summary of earlier dialogue] {self.summary}"})return kept
3. Reasoning mechanism vs. cost and latency
Deep reasoning improves performance on complex reasoning and code tasks but adds cost. The illustrative data below shows how to combine them:
- Profiling task: 60K input, 1K output, 1 round;
- Planning task: 60K input, 1.5K output (about 40% reasoning), 4 rounds.
| Combination | Model A | Model B |
|---|---|---|
| All profiling tasks on Model A | $0.063 | — |
| All planning tasks on Model B | — | $0.013 |
| Profiling on Model B, planning on Model A | — | $0.076 |
| Hybrid routing: profiling on B, planning on A (2 rounds) + B (2 rounds) | mixed | $0.045 |
The first three combinations either put a strong model on simple tasks or force a weak model onto complex ones; the last puts each task on the right tier. Because Model A is pricier per round, the fewer rounds it handles, the lower the total cost.
In practice: first measure each model’s one-pass success rate on both task types, then choose the combination with the lowest “cost per successful unit.”
4. Structure and stability
Finally, validate engineering reliability across several fronts:
- Structured output: whether it reliably produces JSON that conforms to the given schema;
- Repeatability: whether results are consistent across multiple requests for the same input—temperature 0 does not guarantee full determinism;
- Error feedback: whether it can correct in one pass after the business side supplies a validation-failure message.
Below is a generic call skeleton: validate business constraints on every call, and on failure feed the specific error back to the model with bounded retries. Set both a call timeout and an overall retry cap to prevent an anomalous task from looping indefinitely and inflating cost.
# resilient_agent.py: structured-output validation + failure feedback and retry (illustrative, generic)import jsondef call_with_retry(client, messages, tools, validate,max_attempts=3, verbose=False):history = list(messages)for attempt in range(1, max_attempts + 1):resp = client.chat(model="your_model_id", messages=history,tools=tools, verbose=verbose)content = resp.contenthistory.append({"role": "assistant", "content": content})try:result = json.loads(content)except json.JSONDecodeError as e:feedback = f"The returned content is not valid JSON: {e}"else:ok, reason = validate(result) # business-constraint validationif ok:return resultfeedback = f"Field validation failed: {reason}"history.append({"role": "user", "content": f"Please fix the previous answer. {feedback}"})raise RuntimeError("Still failing validation after multiple retries")
6. Run a reproducible comparison with a business task set
You can look up specs and unit prices in the docs, but capability can only be validated with your own data. Build an evaluation pipeline with these steps.
1. Build the evaluation set
- Take a stratified sample from real business data, covering high-frequency, long-tail, and edge cases;
- Put long documents, images, and videos in separate groups;
- Annotate each sample with a ground-truth answer or acceptance script—e.g., expected fields, a runnable test, or an expected tool-call sequence;
- Version the evaluation set alongside the code so every comparison uses the same data.
2. Standardize evaluation conditions
All candidate models use exactly the same prompts, tool definitions, sampling parameters, max output budget, and evaluation scripts. If different models need prompt adaptation, record it as a formal experimental variable rather than an ad-hoc edit.
3. Record multi-dimensional metrics
- Effect: one-pass success rate, final success rate (with retries), human-review rate;
- Cost: average input/output tokens, reasoning usage share, cost per task;
- Performance: time to first token, end-to-end latency, P95 latency;
- Stability: variance across repeated runs, error rate.
4. Decide with a matrix
| Scenario | One-pass success rate | Cost per task | Recommendation |
|---|---|---|---|
| Both high, economy model clearly cheaper | Similar and both high | Economy model clearly lower | Choose the economy model |
| Premium model clearly more accurate | Significant gap | Economy model lower | Use the economy model for high-frequency simple tasks, the premium model for complex tasks |
| Economy model needs many retries to succeed | Low one-pass rate | Similar or even higher | Choose the premium model to cut rounds |
| Difference within margin of error | No significant difference | — | Increase sample size and re-test; do not switch hastily |
Also, produce tables per task type. Overall averages easily mask “clearly lagging on key tasks.”
7. Engineering rollout: routing, caching, and observability
1. Tiered routing: assign models by task complexity
Routing rules key off signals that can be judged automatically—input length, task type, whether video is involved. For parts that cannot be judged automatically, let a small model do lightweight classification.
# router.py: cost-tiered routing based on task features (illustrative, generic)def choose_model(task):if task["has_video"]:# Video understanding: the candidate pool is limited, so prefer models with native video inputreturn "video_capable_model"if task["input_tokens"] > 80_000 or task["type"] in ("review", "plan"):# Very long context, review, and planning: hand to a stronger tier with reasoning enabledreturn "strong_model_with_thinking"if task["type"] in ("extract", "classify"):# Structured extraction and classification: short, fixed-pattern output—use the economy tierreturn "economy_model"return "standard_model"
2. Caching and batching: squeeze down repeated cost
- Fixed prefixes like the system prompt, tool definitions, and knowledge-base snippets can hit the cache reliably, but caches usually have a TTL, so watch the hit rate;
- For large-scale document processing and log analysis—non-real-time tasks—use asynchronous batch processing, which is usually cheaper than synchronous calls;
- In retrieval-augmented scenarios, recall only relevant snippets rather than stuffing a whole document into the context.
3. Observability: make cost and quality visible together
- Call trace: uniformly log the model identifier, input/output/reasoning token counts, rounds, latency, and validation results;
- Logs: tool-call parameters and returned results must be de-identified;
- Storage: put raw data—evaluation samples, call logs, model outputs—in object storage and archive it per a lifecycle policy for reproducibility;
- Async tasks: decouple non-real-time batch jobs through a message queue, with consumer concurrency control and failure retries;
- Deployment: deploy the routing layer, evaluation service, and canary environment on a container platform for versioned release and rollback;
- Alerts: configure threshold alerts in the logging and monitoring systems—e.g., abnormal per-task token growth, a drop in one-pass success rate, or a sudden P95 latency spike;
- Evaluation assets: bring the evaluation set, labeled data, and evaluation code into the repo and CI pipeline, and trigger regression automatically when a model or prompt changes.
4. Practical techniques to control context growth
- Keep only the fields a task needs from tool returns, and retrieve before quoting long text;
- Summarize multi-turn dialogue periodically, and pin key constraints (format, conventions, boundary conditions) in the system prompt;
- Split code tasks by file and by function to avoid concatenating a whole repository;
- Process large blocks with a map-reduce approach: process chunks to get local conclusions, then merge into a final answer, reducing single-call input length.
5. Canary and fallback
Roll out a model with the flow “offline evaluation → shadow traffic → small-percentage canary → full rollout.” Shadow traffic means running the new model in parallel on real requests without affecting online results, making comparison easy. Also keep a degradation path: switch to a backup model when the primary is unavailable, and clearly state the capability boundary after degradation—e.g., when video understanding is not supported, automatically fall back to image-and-text mode and notify the user.
8. Conclusion
Faced with the price and capability differences between same-generation LLMs, rather than arguing over “which is stronger,” return to the business itself and decide in three steps:
- Define the input: clarify modality and data scale to narrow the candidate pool;
- Compute the cost: factor in context headroom, output budget, and the reasoning mechanism, and compute cost per task rather than per-round unit price;
- Run the evaluation: with the same business task set, quantify one-pass success rate, rounds, and latency, then decide.
For most teams, the final answer is often not a single model but a “tiered combination”: the economy tier handles high-frequency, standardized image/text and structured tasks, a stronger tier handles complex planning, cross-document reasoning, and critical review, and special inputs like video are selected for separately when needed. Specs are the starting point, cost is the constraint, and the real task set is the judge.
