A Practical Guide to Selecting Chinese LLMs and Optimizing Costs
This article explains how to select Chinese large language models based on engineering constraints rather than model reputation. It covers a quantifiable evaluation framework built on latency, throughput, and billing weight; how to run controlled tests with fixed prompts; how weighted credit pricing works; scenario-based routing strategies; and engineering techniques such as context caching, output length limits, batch processing, observability, and model abstraction to keep token consumption under control.
1. The Real Selection Problem: From Model Worship to Engineering Constraints
In vibe coding and content generation scenarios, developers often start by asking which model is “strongest.” But daily experience is actually determined by three engineering metrics: time to first token, generation throughput, and cost per token. In the original discussion, developers who bought a coding plan saw their quota drain quickly. The root cause was not insufficient model capability, but a lack of quantitative understanding of the consumption structure.
So the first step in selection is to frame the problem as constrained optimization: maximize task success rate under a given budget and latency ceiling.
2. A Quantifiable Evaluation Framework
2.1 Three Core Metrics
- Latency (ms): end-to-end time for a single request, which determines how responsive interactions feel;
- Throughput (token/s): output tokens divided by generation time, which determines long-form output efficiency;
- Billing weight: different models apply different multipliers to input, output, and cache read/write, and the output multiplier is usually the cost amplifier.
2.2 Controlled Comparison with a Fixed Prompt
Horizontal comparison requires the same prompt and the same input size. For example, given a task to write the opening of a roughly 200-character flash fiction piece:
Assume humans can instantly teleport objects but cannot travel through space,write the opening of a flash fiction story set in a modern city (about 200 characters).
Once the prompt is fixed, record elapsed time, input/output tokens, total consumption, and credits to obtain comparable data. In practice, a clear tiering appears: lightweight models take roughly a dozen seconds with throughput of tens of tokens per second, while very large models take over a hundred seconds with throughput dropping to single digits, at multiples of the cost.
2.3 Capture Conclusions in a Table
Teams should maintain a “scenario-model-metrics” comparison table with fields for elapsed time, input tokens, output tokens, total tokens, credits consumed, credits per token ratio, and token/s. This table is more persuasive than any subjective assessment.
3. Billing Models: Read the Multipliers to Save Money
Most platforms use a weighted credit system, generally in the form:
credits = input tokens × input multiplier+ cache creation tokens × cache creation multiplier+ cache hit tokens × cache read multiplier+ output tokens × output multiplier
Three key conclusions follow:
- The output multiplier is usually several times the input multiplier, so long-form generation costs are dominated by output;
- The cache read multiplier is far lower than the input multiplier, so stable system prompts and long-context reuse can significantly reduce cost;
- Rate limits (such as 50 RPM) determine the concurrency ceiling, which is enough for individual daily use, while batch jobs need queuing or sharding.
4. Scenario-Based Selection Strategy
- Coding and completion: prefer lightweight models with low latency and high throughput, combined with cached project context;
- Long-form writing: higher latency is acceptable, but the credit amplification from the output multiplier must be evaluated;
- Batch offline processing: prioritize throughput and cost, sacrificing real-time behavior;
- Hard reasoning: call large models only when necessary, and cap their share of calls.
A practical routing approach is to split traffic by task difficulty:
def route(task):if task.difficulty == "hard":return "large_model"if task.type == "completion":return "fast_small_model"return "mid_model"
5. Engineering Techniques for Cost Optimization
- Cache prompts and context: place invariant system instructions first to raise the cache hit rate;
- Constrain output length: set explicit word limits to avoid unbounded generation;
- Batch processing and async queues: move non-real-time tasks into a message queue to smooth peaks;
- Build observability: use logging services and monitoring alerts to track token consumption, latency distribution, and failure rates;
- Keep models pluggable: abstract model interfaces behind a unified gateway to make switching and canary rollouts easy.
6. Common Pitfalls
- Focusing only on the “strongest model” while ignoring the credit black hole created by the output multiplier;
- Skipping fixed-prompt comparisons, which makes conclusions irreproducible;
- Ignoring cache benefits, which inflates costs in long-context scenarios;
- Lacking monitoring, which makes it impossible to locate the source of consumption after the quota is exhausted.
7. Conclusion
Selecting Chinese LLMs is not a one-time branding decision but a continuous process of measurement and tuning. Establish a baseline with a fixed prompt, calculate cost with the multiplier model, and control consumption with caching, rate limits, and routing. Only then can you strike a stable balance between vibe coding and content generation. General-purpose infrastructure options such as the container platforms, logging services, and monitoring alerts offered by cloud vendors like Baidu AI Cloud can support the engineering practices described above.
