Choosing a multimodal LLM API: pricing, capabilities, and agent scenarios

    Choosing an LLM API on price alone misses the metric that drives real spend: first-pass success rate. This guide shows how to build a candidate pool by input modality (text, image, video), define acceptance criteria before testing, and compare four capability dimensions: input types, context length, output budget, and thinking mode. It then explains three common billing pitfalls, a single cost formula that factors in retries, and an agent evaluation workflow with a reusable task card and a failure taxonomy, so you can pick models from your own test data rather than model names. All prices and figures are illustrative.

    1. Beyond price: ask about pass rate

    Reading files, writing code, and calling tools can cost different amounts per turn on different model APIs, sometimes a few yuan apart. Price gaps are worth watching, but more important questions are:

    • Can the cheaper model get it right on the first try?
    • Can the pricier model reduce rework and manual review?

    A model with a low per-call price that needs repeated retries and human fixes can end up costing more overall. Conversely, a higher-priced model with a high first-pass rate can still be worthwhile on high-frequency core workflows.

    Since 2026, several vendors have released large model APIs that support text, image, and video understanding as well as tool calling. They commonly offer million-token context windows and names with suffixes such as Max, Pro, and Flash. Naming can create an immediate impression, but a suffix is no proof of actual success rates on agent tasks.

    Rather than asking which model is “best,” this article offers a neutral, reproducible process for shortlisting and retesting models. All prices here are hypothetical figures for illustration; refer to each vendor’s official documentation for current specs and pricing.

    Suggested evaluation order

    1. High-frequency text-and-image and structured tasks: start with a candidate that has relatively uniform parameters, stable performance, and controllable cost, and use it to establish a cost and quality baseline.
    2. Budget-sensitive tasks that need a large generation budget: add candidates with stronger long-output capability. They are better suited to producing long reports or longer code in a single pass.
    3. Tasks that require native video understanding: only evaluate candidates that explicitly support video input. Models without video support need not consume evaluation resources.
    4. Complex agent tasks: do not lock in a choice early based on names or a single metric. Run all candidates on the same task suite and retest before deciding.

    2. First filter: input modalities and acceptance criteria

    Before calculating cost, look at what you will feed the model and what counts as a pass. This step can quickly narrow the candidate pool and keep you from spending evaluation resources on models that are not a good fit.

    Build the candidate pool by input modality

    • Text only: reading contracts, writing reports, and generating code; any text-based candidate can join the comparison.
    • Text + images: parsing scans, reading invoices, and understanding UI screenshots; keep only models that explicitly support image input.
    • Text + video: reviewing surveillance clips, understanding lecture recordings, and analyzing operational procedures; keep only models with native video input.

    If you do not need video input, there is no reason to pay extra for video capability or take on the added complexity.

    Define acceptance criteria before testing

    “Does it work well?” must become a rule you can check automatically, for example:

    • Structured output: all required fields present, correct types, and key enum values within the allowed set;
    • Q&A tasks: answers are grounded in the source and correctly point to where the information appears in the input;
    • Code tasks: tests pass, or static checks and builds succeed;
    • Agent tasks: correct tool selection, valid arguments, and the task completed within the allowed number of turns.

    Clear acceptance criteria let you distinguish two fundamentally different problems: one where “the model is not good enough” and one where “the prompt or task design is flawed.”

    First-pass rate determines real cost

    The per-call price is only the starting point on paper. Real cost depends on how many turns the task needs to complete. Using illustrative figures: Model A costs 1 CNY per task with a 70% first-pass rate, while Model B costs 0.6 CNY with a 50% rate.

    • If a failed task is retried from scratch, Model A’s expected cost per completed task is roughly 1 ÷ 0.7 ≈ 1.43 CNY;
    • Model B’s is roughly 0.6 ÷ 0.5 = 1.2 CNY;
    • Model B is 40% cheaper on paper, but its real-world advantage is only about 16%.

    If failures also require human intervention, the gap may reverse.

    3. Capability dimensions: look past the name

    The four candidate models differ mainly across four dimensions, and these differences have no necessary link to their name suffixes:

    Capability dimension What to look at Impact on your business
    Input types Image and video support; whether understanding is native Defines the candidate pool; avoids simulating video understanding by polling sampled frames as images
    Context length How many tokens can actually be input, and how they are counted Whether long documents or codebase-scale analysis can be sent in full
    Output budget per call Maximum tokens generated in a single request Whether long reports or complete code modules can be generated in one pass
    Thinking mechanism Whether deep thinking is supported, and whether its budget is shared Trade-off between accuracy on complex reasoning and latency and cost

    Input types define task boundaries

    Models with native video understanding can bring both the visual content and its temporal order directly into the reasoning context. Extracting frames and stitching them into an image sequence can sometimes work as a workaround, but it loses temporal information and significantly increases input token count.

    Context length defines how much you can see at once

    A million-token context window can hold roughly thousands of pages of text or the code of a mid-sized project. Keep in mind, however:

    • The longer the context, the higher the input cost per request;
    • When key information is buried in the middle of a long context, some models miss or confuse it, a phenomenon often called “lost in the middle”;
    • Longer contexts tend to increase time to first token.

    So “it fits” does not mean “it works well.”

    Output budget defines how much you can write at once

    Tasks such as batch summarization and short Q&A can be satisfied with a few thousand output tokens. Other scenarios place higher demands on the per-call output budget:

    • Generating the code for a complete module in one pass;
    • Producing a long report with analysis and recommendations;
    • Tasks that need the full reasoning chain preserved.

    When the output budget is insufficient, the model is forced to truncate its response. The business side then has to stitch the output together through “continuations,” which adds turns and makes inconsistencies more likely.

    Thinking mechanism defines how it reasons

    Some models offer a deep thinking mode that spends more generation tokens to improve accuracy on complex problems. Its practical costs are:

    • Higher latency;
    • Higher output costs.

    For tasks such as intent recognition, simple classification, and format conversion, thinking mode often offers a poor return on investment. For multi-step reasoning, complex troubleshooting, and code refactoring, it may significantly reduce rework.

    4. Three pitfalls in pricing and accounting

    Output budget is not the length of the final answer

    The thinking process itself consumes generated tokens. In some models, the thinking mode cap is a single budget shared by the chain of thought and the answer. That means tokens spent thinking reduce the room left for the final answer. When setting output limits, explicitly separate the “visible answer budget” from the “thinking budget.”

    Input and output may share the same window

    In some models, the total context window is used by both the current turn’s input and its generation. You cannot assume you can fill the window with a million tokens of input and then generate another million tokens of output. A sensible approach is to reserve separate budgets for input and output when designing the task.

    Billing models and units need to be aligned

    • Same price for input and output?: for many models, output costs 3 to 8 times as much per token as input, so long-output tasks are driven mainly by output costs;
    • Pay-as-you-go, per-call, or subscription: agent tasks involve many turns, so with pay-as-you-go billing you need to watch cumulative usage;
    • Cache discounts: costs can drop noticeably when system prompts or repeated prefixes can be cached;
    • K vs. M conversion: some docs use 1K = 1024 tokens and 1M = 1,048,576 tokens, while others use 1K = 1000 tokens. When comparing, convert everything to a per-million-token basis.

    5. Cost estimation: one formula for real spend

    The most direct way to turn selection from a “gut feeling” into “numbers” is to write a cost formula for each task type. Using a task that “reads a file and produces structured results” as an example (illustrative prices in CNY):

    Model Input price (CNY / million tokens) Output price (CNY / million tokens) Input tokens Output tokens Cost per call
    A 2 8 20,000 1,000 0.048 CNY
    B 1 4 20,000 1,000 0.024 CNY

    If thinking mode is enabled for this task, it consumes an extra 3,000 tokens, billed at the output price:

    • Model A: 0.04 + (1000 + 3000) ÷ 1,000,000 × 8 ≈ 0.072 CNY;
    • Model B: 0.02 + (1000 + 3000) ÷ 1,000,000 × 4 ≈ 0.036 CNY.

    The ratio stays at 2x, but the absolute gap grows from 0.024 to 0.036 CNY per call. Neither figure is large on its own, but once the task enters a multi-turn agent loop, the gap widens quickly as turns accumulate.

    Next, adjust expected cost using the first-pass rate:

    1. # Illustration: adjust the expected cost per task using the first-pass rate
    2. # unit prices are in CNY per million tokens; parameters are illustrative
    3. def expected_cost(in_tokens, out_tokens, input_price, output_price, pass_rate):
    4. per_call = in_tokens / 1_000_000 * input_price \
    5. + out_tokens / 1_000_000 * output_price
    6. return per_call / pass_rate # assumes the whole task is retried on failure
    7. # Example: Model A costs 0.048 CNY per call with a 0.7 pass rate;
    8. # Model B costs 0.024 CNY per call with a 0.5 pass rate
    9. print(expected_cost(20000, 1000, 2, 8, 0.7)) # ~0.069
    10. print(expected_cost(20000, 1000, 1, 4, 0.5)) # ~0.048

    The takeaway is clear: the “real cost gap” between candidate models is often smaller than the unit price gap, and sometimes even smaller than that. When evaluating, record at least three numbers: cost per call, first-pass rate, and average number of retries.

    6. Agent scenarios: where the real gap shows up

    The four dimensions above determine whether a model “can be used”; agent scenarios determine whether it “can be trusted in production.” Agent tasks typically involve the model looping through “think, call tools, read results, decide again.” Key metrics include:

    1. Tool selection accuracy: does it pick the right tool among several candidates, with valid and complete arguments?
    2. Multi-turn stability: across 5, 10, or 20 turns, does it stay on goal and avoid repeating ineffective calls?
    3. Error recovery: when a tool returns a failure or an empty result, can it adjust its strategy instead of getting stuck in a loop?
    4. Long-context consistency: in codebase-scale tasks, can it accurately locate dependencies within a long context?
    5. Output controllability: can it reliably produce JSON or a fixed schema that downstream programs can parse?
    6. Observability: does every call have clear request and response logs, making it easy to tell whether a problem comes from the model or the orchestration?

    A reusable agent evaluation task card

    1. {
    2. "task_id": "agent-001",
    3. "goal": "Look up information in the given files and summarize it as structured results",
    4. "tools": ["search_doc", "get_table", "write_file"],
    5. "acceptance": {
    6. "tool_args_correct": true,
    7. "result_schema_valid": true,
    8. "max_rounds": 12
    9. },
    10. "pass_criteria": "Pass only if all criteria are met; otherwise, record the failure type"
    11. }

    Run the same task card N times on each candidate model (N ≥ 10 recommended). Then measure pass rate, average number of turns, average token usage, and average latency to build an agent capability profile you can compare across models.

    Failure types are more useful than an overall score

    Rather than recording only a pass rate, categorize failures:

    • Wrong tool selection: choosing a tool that does not exist, or missing arguments;
    • Argument hallucination: inventing fields or IDs that do not exist;
    • Idle looping: calling the same tool repeatedly without making progress;
    • Premature completion: declaring the task done before it is finished;
    • Format violations: output that downstream programs cannot parse.

    These categories point directly to what to improve: whether to switch models or to fix the prompt, improve tool descriptions, or add a validation layer.

    7. Business retesting: a five-step, reproducible evaluation loop

    Step 1: Define acceptance criteria and the cost of failure

    Translate “is the answer good?” into rules you can check automatically, and assign a cost weight to each type of failure. For example, a format error can simply be retried at low cost, while a wrong business conclusion needs manual review at high cost.

    Step 2: Build a task set that reflects real traffic

    • Sources: sample from historical tickets and real request logs rather than relying only on public leaderboard questions;
    • Mix: aim for 60% high-frequency simple tasks, 30% moderately complex tasks, and 10% complex agent tasks;
    • Size: at least 30 tasks per category, so pass rate estimates are statistically meaningful.

    Step 3: Use identical prompts and parameters, and evaluate in parallel

    Use exactly the same prompt, temperature, output limit, and tool definitions for every model on the same task, changing only the model. Any “special tuning” applied to one candidate invalidates the comparison.

    Step 4: Record full metrics, not just pass rate

    Record input tokens, output tokens (separated into thinking and visible output), number of turns, latency (time to first token and total time), first-pass rate, average number of retries, and failure types.

    Step 5: Validate with a canary release and monitor continuously

    • Canary validation: first run candidates in parallel on 5% to 10% of traffic and compare against real production metrics;
    • Swappable architecture: add an adapter layer between the business and the models to hide API differences, so you can switch models later without changing business code;
    • Continuous monitoring: after launch, track cost, latency, and failure rate, and set alert thresholds.

    8. Common mistakes and how to avoid them

    1. Looking only at the unit price table: ignoring the output share and thinking mode can lead to serious budget overruns.
    2. Treating leaderboard rankings as conclusions about capability: leaderboard tasks differ widely from your business traffic, so you must test yourself.
    3. Judging stability from a single example: agent tasks are sensitive to variance, and too small a sample can lead to the opposite conclusion.
    4. Ignoring latency and rate limits: agent loops are sensitive to latency, and rate limiting at peak times directly increases the failure rate.
    5. Equating “long context” with “good understanding”: long contexts bring cost as well as the risk of information being lost in the middle.
    6. Skipping a rollback plan: relying on a single model magnifies business risk when it fails.

    9. Decision checklist: closing out the selection in one table

    Evaluation item Basis for judgment Recommended action
    Input modalities Native support for the required modalities Exclude models that do not meet the requirement
    Acceptance criteria Can pass/fail be judged automatically? Define the rules before testing
    Cost per call Input and output priced separately, then added together Convert to a per-million-token basis
    First-pass rate Statistics from multiple runs on the same task set Use it to adjust expected cost
    Output budget Is it enough to finish, and is it shared with thinking? Explicitly separate visible output and thinking budgets
    Thinking mechanism Does the task need deep reasoning? Disable it for simple tasks; enable it for complex ones
    Agent performance Tool accuracy, multi-turn stability, error recovery Use task cards to measure pass rate and number of turns
    Observability Call logs, alerts, and canary release capability Integrate logging, monitoring and alerting, and canary releases

    10. Conclusion

    Model selection is not a one-off ranking exercise but an engineering problem of continuous calibration.

    • Check inputs and acceptance criteria before calculating cost: first determine what a model can do, then how much it will cost.
    • Break down output budget, thinking mechanism, and context accounting separately: together they determine whether a task can be completed in one pass.
    • Retest on the same task suite: which model an agent ultimately uses should be decided by business data, not by a suffix in its name.

    Whether the candidates are lightweight models focused on cost efficiency or flagship models focused on reasoning depth, follow the same process: define acceptance criteria, control variables, record costs, roll out gradually, and monitor continuously. If an organization wants to reduce the operational complexity of integrating multiple models, it can use general capabilities such as model integration, log retention, and monitoring and alerting on a platform such as Baidu AI Cloud to manage them centrally. An adapter layer can also keep business logic decoupled from any specific model, keeping the cost of switching models later under control.