LLM Selection Guide: From Task Bottlenecks to Verifiable Decisions
A practical guide to choosing a large language model by first identifying where your task gets stuck. It covers three capability profiles, how to verify public benchmark scores, how to calculate monthly costs with a worked example, a selection checklist, a decision matrix, deployment risks, and hybrid routing.
Identify the Task Bottleneck
The first step in model selection is finding where your task gets stuck. There are three common bottlenecks: the model must see an interface and correct itself; the model must run many steps in sequence while keeping its logic consistent; or the call volume is high, so the cost per call multiplies. Each bottleneck calls for very different model capabilities, so comparing models across all three at once makes the results hard to interpret.
Start by describing your task in one sentence, and record four pieces of information: the input, the output, the cost of a failure, and the number of calls per day. These four factors determine the weight of every later step.
Capability Profiles of Three Model Types
The following profiles group models by capability, not by specific model name. Model names change quickly, while capability profiles are relatively stable. In a real selection, map the profile to the specific models listed in the vendor’s public documentation or model cards.
Type 1: Visual Feedback Loop
These models accept image input. After generating code or performing an action, they read the rendered result and judge whether the layout is misaligned or the styles conflict. Typical uses include front-end page debugging, game interface inspection, and web automation testing.
When evaluating these models, focus on three things: accuracy in understanding screenshots, the number of input tokens a screenshot consumes, and how image input affects response latency. Larger screenshots mean higher token overhead, a cost that is often overlooked.
Type 2: Long-Chain Agent and Code Engineering
These models handle multi-step tasks, such as installing dependencies in a terminal, running tests, and returning to modify code based on error messages. Their value lies in staying on target during continuous execution.
When evaluating these models, measure the completion rate on your own task set, not the accuracy of single-turn code completion. Whether tool-call formats remain stable and whether the model can recover after a failure determine if it can run unattended. If you need private deployment or deep customization, also confirm that the license permits commercial use and derivative works.
Type 3: High-Throughput, Low-Cost
These models use a smaller active scale to achieve a lower unit cost. They suit text classification, information extraction, standardized reporting, and high-concurrency message processing.
When evaluating these models, focus on the cost per task, throughput, and cache hit rate. When the system prompt and fixed prefix are long and stay stable, the cache hit rate can noticeably affect total cost.
How to Verify Public Benchmarks
Leaderboard scores are useful references, but comparing them directly often leads to errors. When you verify a score, record at least these five items:
- The benchmark name and version. Terminal operation and software engineering repair benchmarks usually have several versions.
- The tool set, prompts, and agent framework used during testing. The same model can score very differently across frameworks.
- The test date. Models and evaluation environments both get updated, so older scores may be outdated.
- The source of the results. Prioritize the official paper, the official model card, or a reproducible evaluation repository.
- Whether the test task distribution resembles your own business.
If you cannot obtain this information, do not use the score as a basis for selection. A more reliable approach is to draw 50 to 200 samples from your own tasks and run a small-scale evaluation. Record the success rate, average latency, and cost per call.
How to Calculate Monthly Cost
The basic formula for monthly cost is:
Monthly cost = Monthly calls × [ Average input tokens × (1 − Cache hit rate) × Standard input price + Average input tokens × Cache hit rate × Cached input price + Average output tokens × Output price ] ÷ Price unit
The price unit is usually one million tokens. If retries or human review occur, calculate the monthly call count based on actual executions, and add the review cost separately.
Here is an example. Assume 10,000 calls per day, and a 30-day month, for 300,000 calls. Average input is 2,000 tokens, average output is 500 tokens, and the cache hit rate is 60%. The prices below are for demonstration only and do not reflect any vendor’s actual pricing: standard input at 2 CNY per million tokens, cached input at 0.2 CNY per million tokens, and output at 8 CNY per million tokens.
- Uncached input: 300,000 × 2,000 × 0.4 = 240 million tokens, costing 480 CNY.
- Cached input: 300,000 × 2,000 × 0.6 = 360 million tokens, costing 72 CNY.
- Output: 300,000 × 500 = 150 million tokens, costing 1,200 CNY.
The total is about 1,752 CNY per month. This result shows that the output price is often the largest cost item. Shortening output or switching to structured output usually saves more than simply lowering input costs.
Selection Checklist
- The task bottleneck is written in one sentence and labeled as visual, long-chain, or high-throughput
- The cost of failure is estimated, such as whether faulty code would go directly into production
- A small-scale evaluation has been run on your own samples, with success rate and latency recorded
- Benchmark scores are recorded with their version, framework, date, and source
- The monthly cost formula has been used to calculate the cost of at least two candidate options
- The extra cost from retries and human review has been calculated
- The license, data storage location, and terms on whether data is used for training have been confirmed
- The commitments on rate limits, latency, and service availability have been confirmed
- A fallback plan has been designed so you can switch when the primary model is unavailable
Decision Matrix
| Decision Dimension | Typical Scenario | Preferred Type | Key Metrics |
|---|---|---|---|
| Task bottleneck | Front-end or UI debugging that requires viewing rendered results and self-correction | Type 1: Visual feedback loop | Image understanding accuracy, token overhead of screenshots |
| Task bottleneck | Multi-step terminal operations, dependency troubleshooting, cross-file repair | Type 2: Long-chain agent | Completion rate on your own task set, tool-call stability |
| Task bottleneck | Batch classification, information extraction, standardized reporting | Type 3: High-throughput, low-cost | Cost per task, throughput, cache hit rate |
| Cost constraint | Ample budget, quality is the priority | Type 2: Long-chain agent | Ratio of single-task success rate to unit price |
| Cost constraint | High call volume, tight budget | Type 3: High-throughput, low-cost | Monthly cost formula result, P95 latency |
| Deployment model | Private deployment or deep customization required | Depends on license and weight access conditions | License terms, support for fine-tuning and deployment |
| Deployment model | Fast integration with a public cloud API | Choose by scenario, compare service commitments | Response latency, rate-limit rules, data location |
Deployment and Risks
- Licensing: An open-source license does not mean unrestricted commercial use. Read the terms clause by clause.
- Version changes: Cloud models may be replaced or retired. Pin the version number and keep a change log.
- Cache dependency: Cache hit rates depend on a stable prefix. Frequent changes to the system prompt will lower the hit rate.
- Data compliance: If inputs contain personal information or internal code, confirm the provider’s data handling terms first.
- Evaluation bias: The task distribution of a leaderboard may differ from your real workload, so validate with your own samples before launch.
Hybrid Routing
A single model rarely covers every scenario. A common approach is routing by task type: code analysis goes to a long-chain model, front-end preview goes to a visual feedback model, and daily batch summaries go to a high-throughput model.
The routing layer can live in your own service, or you can use model routing features offered by cloud vendors or open-source gateways. Either way, confirm the billing terms, service level commitments, and data storage location first. This approach requires maintaining multiple sets of prompts and evaluation sets, so it is worth the effort only when your task volume is large enough.
Conclusion
Model selection comes down to clarifying the task bottleneck, the cost of failure, and the cost structure, then validating the choice with your own samples.
