LLM Selection Guide: Pricing, Capabilities, and Agent Practices

    Choosing a general-purpose LLM for enterprise applications is often reduced to comparing vendor spec sheets, but this approach can easily lead to wrong conclusions. This article breaks down four core dimensions—context window, input modalities, output budget, and pricing—and explains how to distinguish nominal values from usable capacity. It also covers the specific engineering constraints of Agent scenarios, such as context growth, output stability, and cost control, and outlines a practical selection workflow along with common pitfalls. Readers will learn how to evaluate any spec sheet accurately and build a repeatable, testable selection process.

    1. Introduction: Why Spec-Sheet Comparisons Often Fail

    When integrating general-purpose LLMs into enterprise applications, technical teams most often pull spec sheets from several vendors and compare them side by side: context length, supported input types, maximum output per request, and price per million tokens. This looks objective, but it easily leads to wrong conclusions for three reasons.

    First, units on spec sheets are not consistent. Some vendors use K (thousand), some use M (million), and others write exact numbers. 1M and 1,048,576 are not mathematically equal: the former is a decimal approximation, the latter an exact binary value. Treating numbers with different conventions as precisely equal introduces subtle bias in long-context scenarios.

    Second, nominal context length does not equal usable input length. Most models reserve space for system prompts, tool definitions, conversation history, and output, so the actual business content that fits is often smaller than the nominal value. Some platforms clearly state both “max input” and “total context”; others give only a total, leaving developers to calculate the rest.

    Third, output budget differences matter greatly for Agent scenarios. The per-request output limit in non-thinking and thinking modes (whether the model emits its reasoning process) is often different. Thinking mode usually allows longer output but consumes more tokens and adds latency.

    Therefore, this article does not focus on any specific product. Instead, it abstracts a reusable selection methodology so readers can make correct judgments with any spec sheet.

    2. Breaking Down Four Core Dimensions

    2.1 Context Window: Nominal vs. Usable

    The context window determines how much information a model can “see” in one request. Engineering should track three numbers: total context, max input, and space reserved for output.

    • Total context: the maximum total tokens a model can process in a single request.
    • Max input: the actual usable input limit after subtracting the output reserve.
    • Output reserve: total context minus max input, typically occupied by system prompts and generated results.

    Practical advice: plan capacity based on “max input,” not “total context.” For example, if a model claims 1M total context and 960k max input, only about 40k remains for output and system overhead. If the business requires long-form generation, history must be compressed or processing must be split into segments.

    2.2 Input Modalities: Boundaries of Text, Image, and Video

    Multimodal support is not a binary yes/no question. It should be broken down into:

    • Text only: the most basic and lowest cost, suitable for structured extraction, classification, and code generation.
    • Text + image: suitable for receipt recognition, screenshot understanding, and chart question answering.
    • Text + image + video: suitable for long temporal content understanding, but video consumes many tokens and adds high latency, so evaluate carefully.

    During selection, check the real input distribution of the business. If 95% of requests are plain text, paying a premium for video capability is not worthwhile.

    2.3 Output Budget: Thinking vs. Non-Thinking Modes

    The output limit directly determines the maximum complexity of generation tasks. Common modes include:

    • Non-thinking mode: shorter output, low latency, suitable for summarization, rewriting, and extraction.
    • Thinking mode: allows emitting the reasoning process with a higher limit, suitable for math, planning, and complex Agent decisions.

    Note that some models default to output on the order of 131,072, but this is constrained by “remaining context”—output cannot exceed total context minus input already used. This means that with long inputs, the actually available output is dynamically compressed.

    2.4 Pricing Logic: A Three-Part Cost of Input, Output, and Cache

    Pricing for general-purpose LLMs is usually split into three parts: input tokens, output tokens, and optional cache-hit tokens. Output is generally priced higher than input, and thinking mode amplifies cost further because output is longer. Engineering should build an estimation model: cost per request = input volume × input price + output volume × output price, and calibrate it with load tests using real traffic.

    3. Special Considerations for Agent Scenarios

    The essential difference between an Agent and single-turn question answering is the multi-step loop: the model repeatedly calls tools, reads results, and decides again. This creates three engineering constraints.

    1. Context growth: each round of tool results accumulates into the context and quickly hits the ceiling. Introduce a sliding window, summary compression, or external memory (such as object storage + vector retrieval).
    2. Output stability: Agents need stable structured instructions (such as JSON). Prefer configurations with strong instruction following and sufficient output limits, and enforce format constraints in non-thinking mode.
    3. Cost controllability: multi-round loops multiply token consumption. Truncate tool returns, cache history in tiers, and set a per-task token budget cap.

    Illustrative pseudocode:

    1. def run_agent(task, model_cfg, max_budget):
    2. history = [system_prompt()]
    3. spent = 0
    4. while not done(task) and spent < max_budget:
    5. # Compress history to avoid context growth
    6. history = compress(history, keep=model_cfg.max_input - model_cfg.reserve_output)
    7. resp = call_model(history, tools=tool_defs, mode="non_thinking")
    8. spent += resp.input_tokens + resp.output_tokens
    9. if resp.tool_call:
    10. result = execute_tool(resp.tool_call)
    11. history.append(truncate(result, limit=4096))
    12. else:
    13. history.append(resp.text)
    14. return history

    4. A Practical Selection Workflow

    1. Clarify the input distribution: measure the share of text, images, and video in real traffic.
    2. Determine the output form: whether reasoning is needed and whether ultra-long generation is required.
    3. Plan capacity by “max input,” not nominal total context.
    4. Build a cost estimation sheet and calibrate it with real load-test data.
    5. Run a small-scale canary, compare task success rate and cost per task, then decide whether to scale up.

    5. Common Pitfalls

    • Pitfall 1: longer context is always better. Usable input is squeezed by the output reserve, and long context also raises per-request cost.
    • Pitfall 2: thinking mode is always better. Using thinking mode for simple tasks only adds latency and cost.
    • Pitfall 3: ignoring unit conventions. Mixing K and M, decimal and binary, causes capacity misjudgment.
    • Pitfall 4: treating nominal capability as a production SLA. Spec sheets are upper limits; production performance must be verified by load testing.

    6. Conclusion

    Selecting a general-purpose LLM is essentially constrained optimization among capability limits, context capacity, output budget, and pricing structure. Once specific brands are stripped away, the methodology is universal: take the real business distribution as input, use max input and output reserve as capacity boundaries, use three-part pricing as the cost model, and use the Agent multi-round loop as the stress-test scenario. If an enterprise already uses related general-purpose product categories from Baidu AI Cloud (such as object storage, message queues, container platforms, log services, and monitoring and alerting), it can apply this framework directly to real load testing and canary processes, forming a sustainable, iterative selection loop.