LLM Selection in Practice: Balancing Cost, Speed, and Capability

    As large language models rapidly expand their context windows and push prices downward, selecting the right model has become increasingly complex. This article analyzes the "impossible triangle" of LLM selection—intelligence, speed, and cost—and provides a practical evaluation framework covering five dimensions: cost estimation, throughput, code capability benchmarks, multimodal support, and the real value of long context windows. It concludes with actionable strategies including a dual-model routing architecture, evaluation baselines, and cost monitoring to help teams find their optimal balance.

    Why LLM Selection Has Become More Difficult

    Over the past year, the LLM market has experienced intense competition. Context windows have expanded from tens of thousands to over a million tokens, while prices have dropped from dozens of yuan per million output tokens to single-digit yuan levels. This should be good news for developers, but it has actually made selection more challenging—because no single model can simultaneously deliver low cost, high speed, and strong intelligence.

    To illustrate the current pricing landscape, here is a representative view of flagship models in the market:

    Model Tier Input Price (per million tokens, approx.) Output Price (approx.) Context Length
    International Flagship ¥30+ ¥200+ 1M
    Domestic Flagship A ¥2–3 ¥4–6 1M
    Domestic Flagship B ¥3 ¥6 1M
    Domestic Flagship C ¥6+ ¥20+ 200K–256K
    Ultra-Low-Cost Tier <¥1 ¥1–1.5 1M

    A clear observation emerges: price and capability are not strictly correlated, but the combination of price, context length, and intelligence is difficult to optimize simultaneously. This leads to the core proposition of this article: the LLM impossible triangle.

    The Impossible Triangle: Intelligence, Speed, and Price

    A well-established empirical rule in the industry is: high intelligence, fast response, and low cost cannot all be achieved at the same time.

    Why the Triangle Exists

    From an engineering perspective, this triangle has a solid underlying foundation:

    1. Intelligence ≈ parameter scale + inference compute. Stronger models typically require larger activated parameters or longer chain-of-thought reasoning, making per-request computational costs inherently higher.
    2. Speed ≈ per-request resource usage + scheduling efficiency. MoE architectures can reduce activation costs, but maintaining speed with ultra-long contexts puts significant pressure on KV cache memory and bandwidth.
    3. Price ≈ cost + market strategy. When leading vendors aggressively price to capture market share, price signals become distorted—comparing prices in isolation is meaningless.

    How the Triangle Manifests in Practice

    • Models that occupy the “fast + cheap” corner often show clear weaknesses in complex reasoning and long-text comprehension.
    • Models that prioritize high intelligence tend to be either expensive or slow to respond.
    • Models with ultra-long context windows (e.g., 1M tokens) often charge multiples of the base rate once requests exceed thresholds like 512K, causing long-context costs to spike.

    Therefore, the right approach is not to chase the “strongest model” but to clarify which two vertices of the triangle matter most for your business scenario.

    A General Evaluation Framework

    Based on community experience and real-world testing, we recommend building your evaluation system around five dimensions.

    Cost Estimation: Don’t Only Look at Unit Price

    Beyond the advertised price-per-token, three hidden variables must be considered:

    • Tiered pricing: Many providers charge significantly higher rates for requests exceeding a certain length (e.g., 512K tokens). If your workload involves long-document analysis, calculate costs based on your actual average input length, not the lowest advertised tier.
    • Input/output ratio: In code generation and RAG scenarios, input tokens far exceed output, making input prices the dominant factor. In content creation scenarios, the opposite is true.
    • Subscription plans and rate limits: Newly launched subscription packages often appear aggressive on price but conservative on quotas, and providers frequently adjust terms within one or two weeks of launch. Observe for a while before committing to volume purchases.

    Here is a simple cost estimation snippet:

    1. def estimate_cost(input_tokens, output_tokens,
    2. in_price, out_price, tier_threshold=None, tier_multiple=2):
    3. input_cost = input_tokens * in_price / 1_000_000
    4. output_cost = output_tokens * out_price / 1_000_000
    5. if tier_threshold and input_tokens > tier_threshold:
    6. input_cost *= tier_multiple
    7. return input_cost + output_cost
    8. # Example: RAG scenario, average 40K input / 2K output, unit prices ¥2.1 / ¥8.4
    9. print(estimate_cost(40_000, 2_000, 2.1, 8.4)) # ≈ ¥0.101 per request

    At roughly ¥0.1 per request, 100,000 daily requests translate to a monthly cost in the tens of thousands of yuan. This makes it clear why cost estimation must come first.

    Speed and Throughput

    Average task completion time is a more practical metric than single-token latency, because it accounts for the model’s “thinking” time. Common observations from real-world testing: budget-friendly lightweight models are dramatically faster; flagship models at the same tier have similar speeds but can differ in cost by more than 2x. For interactive products (e.g., customer support, coding assistants), use P95 latency rather than average latency as the acceptance criterion.

    Intelligence: Code Capability Is a Reliable Metric

    Among all capability dimensions, performance in code generation and AI-assisted programming tools is the most valuable reference because it is verifiable and regression-testable. We recommend building a small internal evaluation set:

    1. Test Case 1: Locate and fix a bug in a provided Python function
    2. Test Case 2: Generate a CRUD API + unit tests from a natural language description
    3. Test Case 3: Cross-file refactoring (assesses long-context and codebase understanding)
    4. Test Case 4: SQL generation + execution plan analysis

    Hooking these tests into an actual AI coding assistant gives more realistic results than chasing public benchmark leaderboards. Community feedback indicates that newer models show perceptible improvements in code ability—faster responses, longer context handling, and more stable performance in long-session coding tasks.

    Multimodal and Visualization Capabilities

    Multimodal capabilities (chart understanding, image analysis) and data visualization styles are easily overlooked differentiators. Given the same requirement—say, a “monthly revenue line chart”—different models produce noticeably different color palettes, layouts, and information density. If your business involves report generation or data interpretation, run a dedicated subjective evaluation with blind scoring by team members.

    The Real Value of Long Context

    A 1M-token context window sounds appealing, but you need to answer three questions:

    1. Does your business actually have single-request scenarios exceeding 100K tokens? (Whole-repo code analysis, ultra-long contract review, etc.)
    2. Is the “needle in a haystack” recall rate acceptable at long context lengths? Many models advertise 1M but show significantly degraded information utilization in the middle and later portions.
    3. Is there additional tiered pricing for ultra-long inputs?

    Recommendations and Implementation Path

    Based on the framework above, here is a practical path forward:

    1. Define your scenario profile. Interactive dialogue prioritizes speed; batch processing prioritizes price; complex agents prioritize intelligence.
    2. Establish an evaluation baseline. Use the code evaluation set above plus real business samples to evaluate 3–5 candidate models.
    3. Adopt a dual-model architecture. Use a flagship model for quality-critical tasks and a low-cost model for fallback or lightweight tasks, routed by task complexity.
    4. Monitor pricing volatility. New models often generate the most controversy in their first week (pricing, quotas), and official adjustments typically follow. Waiting one or two weeks before committing reduces risk.
    5. Set up cost alerts. Add gateway-level tracking of token consumption by day and by project to avoid billing surprises from tiered long-context pricing.

    Conclusion

    The LLM market continues to evolve rapidly—price disruptors keep pushing lower bounds while flagship models raise upper limits. But the fundamentals remain unchanged: there is no perfect model, only a model that fits your scenario. Start with the “intelligence, speed, cost” impossible triangle as your analytical anchor, replace leaderboard reputation with real business data for decision-making, and pair it with a dual-model routing architecture and cost monitoring system. That is how you will find the optimal balance between performance and cost for your specific use case. For the vast majority of teams, first-tier domestic models are already fully adequate in long-context handling, multimodal support, and code capability—the remaining work is to build a solid engineering infrastructure for evaluation, routing, and cost governance.