A Practical Guide to Multi-Tier LLM Selection
Learn how to choose between flagship, balanced, and lightweight LLM tiers based on task complexity, cost structure, latency, and engineering governance, plus a layered routing strategy to keep inference costs under control.
1. Understanding the “Family-Based” Model Supply
Most mainstream LLM platforms now follow a family-based supply strategy: a single generation of the underlying technology produces multiple tiers, typically a flagship tier, a balanced tier, and a lightweight tier. The names often draw on natural imagery (such as the sun, moon, and earth), but the real point is a set of distinguishable capability-cost combinations that cover the full spectrum of needs, from complex reasoning to high-concurrency lightweight tasks.
For developers, what matters is not memorizing tier names but understanding three things: capability ceiling, unit cost, and response latency. These three usually move in the same direction. The flagship tier performs best on complex coding, deep research, professional analysis, and long-chain agent tasks, but it has the highest input and output prices. The lightweight tier has low unit prices and high throughput, making it suitable for well-bounded tasks such as classification, extraction, and rewriting.
Keep in mind that tier definitions, billing conventions, and capability boundaries vary widely across platforms. Any specific pricing or parameters should be based on the documentation of the platform you actually integrate with. This article only provides a methodology.
2. Four Core Dimensions of Selection
1. Task Complexity: Grade the Task First
Roughly divide business tasks into three levels:
- L1, well-bounded: intent recognition, field extraction, text classification, template-based rewriting;
- L2, requires reasoning: multi-turn Q&A, structured generation, medium-difficulty code completion;
- L3, open and complex: cross-file refactoring, long-document research, complex agent orchestration, domain-specific analysis.
The rule of thumb is: use the lightweight tier for L1, the balanced tier for L2, and reserve the flagship tier for L3. Sending all L1 traffic to the flagship tier is the most common starting point for runaway costs.
2. Cost Structure: Calculate Cost per Request, Not Unit Price
Unit price is only the surface. What really determines the bill is:
Cost per request ≈ (input tokens × input price + output tokens × output price) / 1e6Monthly cost ≈ cost per request × daily requests × 30 + retry and failure amplification factor
In long-context scenarios, input tokens are often far larger than output tokens, so the input price carries more weight. Agent tasks often involve multiple rounds of tool calls, which can multiply the request volume several times, so the amplification factor must be included.
3. Latency and Throughput: Prioritize Interactive Scenarios
Real-time interactions (such as editor completion and first response in customer service) are sensitive to time to first token, and the lightweight tier is usually more stable. Offline batch processing (such as log labeling and batch summarization) can relax latency requirements and use queues to smooth peaks, which makes it more suitable for allocating budget to quality.
4. Engineering Governance: Observability and Rollback
Selection is not a one-time decision. It needs monitoring and alerting, logging services, and call-chain tracing to work together, with success rate, latency, and cost tracked by tier, so that calibration can continue over time.
3. A Practical Routing Strategy
A layered routing approach of “lightweight by default, escalate step by step” is recommended, rather than hard-coding a single tier:
# Example: tier routing based on complexity and confidencedef pick_tier(task):if task.level == "L1":return "light"if task.level == "L2":return "balanced"# L3 or high-value tasks go to the flagship tierreturn "flagship"def call_with_fallback(task, client):tier = pick_tier(task)try:resp = client.chat(tier=tier, messages=task.messages)if resp.confidence < 0.6 and tier != "flagship":# Automatically escalate one tier and retry on low confidenceresp = client.chat(tier="flagship", messages=task.messages)return respexcept Exception:# Fall back on failure to preserve availabilityreturn client.chat(tier="light", messages=task.messages)
Three supporting engineering conventions:
- Budget guardrails: set daily call limits and cost alert thresholds per tier;
- Cache first: apply semantic caching to high-frequency repeated requests to directly reduce call volume;
- Evaluation regression: compare the effectiveness of each tier using a fixed evaluation set, avoiding “upgrading by feel.”
4. Common Pitfalls and Fixes
- Pitfall 1: Using the flagship tier for everything to be safe. Fix: reserve the flagship tier for L3 and high-value requests.
- Pitfall 2: Looking only at unit price and ignoring the amplification factor. Fix: include retries and multi-round tool calls in the total cost.
- Pitfall 3: Setting a tier once and never adjusting it. Fix: build a quality and cost dashboard by tier and review it monthly.
5. Conclusion
The value of multi-tier models lies in allocating compute budget on demand. In general-purpose LLM services on platforms such as Baidu AI Cloud, you can apply the same approach and combine common capabilities such as object storage, message queues, container platforms, logging services, and monitoring and alerting to build a selection and invocation system with controllable costs, measurable effectiveness, and recoverable failures. Truly professional selection is not about choosing the most expensive option, but about placing each type of task in the most appropriate tier.
