How to Choose Chinese Open-Source LLMs: Unified API Access and a Reproducible Head-to-Head Evaluation

    Chinese open-source flagship models are now shipping at a remarkable pace, but "free to call" does not mean "safe to put in production." This article argues that building one unified access layer and one reproducible evaluation pipeline matters more than picking a single "best" model. It surveys representative open-weight flagships from DeepSeek, Qwen, MiniMax and Zhipu, explains why sparse MoE designs and KV-cache optimizations have become mainstream, and then walks through a reusable five-step integration flow: account registration and verification, API key generation and safe handling, model client setup, connection parameter configuration, and a connectivity test using cURL and Python. It also covers how to build your own evaluation set, control variables, run anonymous blind reviews, and measure engineering metrics such as time-to-first-token, throughput, cost and stability, before closing with tiered routing, caching, batch processing and failover for production.

    1. Background: dense model releases turned selection and integration into a new problem

    Over the past period, Chinese large models entered a phase of rapid iteration. Several domestic teams released open-weight flagship models whose capabilities are positioned against international mainstream models, covering general chat, code generation, long-context understanding, and reasoning-enhanced workflows. These models rank well on several public benchmarks — especially the front-end development benchmarks oriented toward web page generation — which collectively puts Chinese open models in the first tier. For developers, the range of options suddenly widened, but a new question came with it: which one should you actually pick?

    The distribution channel has shifted too. Chinese open models were historically released as weights through open-source communities and code hosting platforms, leaving users to stand up their own inference services. Today, some overseas inference platforms also host Chinese teams’ open weights and expose online endpoints. Platforms often update their model catalogs ahead of the official announcement, meaning the API is already callable while the documentation is incomplete. As a batch of Chinese open flagships lands on these platforms, the barrier to trying them has dropped further.

    But “free to call” is not the same as “safe to rely on.” In practice there are at least four traps:

    • Fragmented access: every platform needs its own registration and API key, and comparing multiple models means repeatedly switching configurations.
    • Inconsistent contracts: request parameters, response structures, and error codes differ across providers, so switching models often means changing code.
    • No reference point for evaluation: public leaderboard ranks do not answer “which one is better in my workload.”
    • Weak cost awareness: token usage, time-to-first-token, rate limits, and output stability are usually ignored and only surface once you scale.

    So the question here is not “how strong is model X.” It is two more fundamental ones: how do you integrate multiple open models at low cost through a single interface? And how do you evaluate them on the same ruler with a reproducible method?

    1.1 Three categories of Chinese open models worth watching

    Before any evaluation, it helps to build a basic technical picture. Since 2025, several domestic teams have released trillion-class open-weight flagships with different technical emphases:

    Model Released by Public parameter size Core characteristics
    DeepSeek-V3 DeepSeek 671B total, 37B activated per token Sparse MoE architecture; Multi-head Latent Attention (MLA) compresses the KV cache; combines auxiliary-loss-free load balancing with multi-token prediction training; MIT license
    Qwen3-235B-A22B Alibaba’s Qwen team 235B total, 22B activated MoE architecture; a single model switches between “thinking” and “non-thinking” modes; supports 100+ languages
    MiniMax-M2 MiniMax 230B total, 10B activated Sparse MoE; small by activated-parameter count; targets agent and code scenarios, emphasizing coding and tool-calling ability; modified MIT license
    GLM-4.5 / GLM-4.6 Zhipu 355B total / 32B activated MoE architecture with the same total parameter count as GLM-4.5; dynamic sparsity allocates inference compute per task; balances reasoning, code, and agent capabilities

    (Parameter sizes and licenses follow the public materials noted above and may change with each release.)

    A few observations:

    1. Sparsity has become mainstream. All three flagships use a mixture-of-experts (MoE) design. The “very large total, very small activation” combination gives a model both the capacity of a large model and the inference cost of a small one.
    2. Attention and cache optimization moved to the center. DeepSeek-V3’s MLA is a good example: low-rank compression of the key-value cache substantially reduces memory footprint and memory bandwidth pressure, which matters most for long contexts and high concurrency.
    3. Inference cost is falling fast. For models of comparable scale, online calls have generally dropped to single-digit RMB per million tokens or lower, and some platforms offer temporary free quotas.
    4. Capability emphases have diverged. Dual thinking/non-thinking modes, dynamic sparsity, and agent and tool-calling optimization all coexist, and no single model leads on every task. That divergence is precisely what makes selection meaningful — if all models were equivalent, choosing between them would be pointless.

    1.2 The key judgment: these models are production-viable

    Deployment and calling are only the first step; the real question is whether they can be used in production. Two public facts point to an answer:

    • Flagship-scale open weights are available. Releasing hundreds of billions of parameters as open weights indicates that domestic teams now have mature capabilities in large-scale pretraining, sparse architectures, and distributed training engineering.
    • The toolchain followed immediately. Mainstream inference and agent frameworks adapted to these models right away. vLLM, for instance, includes dedicated optimization for MLA and MoE, with officially reported throughput in the range of thousands of tokens per second per node (per the officially published numbers).

    The reasonable inference is that with sound selection and solid engineering practices, these open flagships can already carry a substantial share of enterprise production workloads. They are especially suited to three situations:

    • Teams with hard requirements that data must not leave their jurisdiction but still want results close to the top international models;
    • Teams that need private deployment or deep customization and do not want to be locked into a single vendor;
    • Teams that want on-demand calling and elastic scaling in order to control inference cost.

    What remains are the two questions of how to connect and how to choose.

    2. Integration prep: registration, API keys, and client configuration

    Using “free trial of two Chinese open models on a cloud vendor’s inference platform” as the example, here is a general flow you can reuse directly. It has five steps: account registration and verification → generate an API key → prepare a client → configure connection parameters → run a connectivity test.

    2.1 Create the account and complete verification

    Registration flows are broadly similar across platforms and usually include:

    1. Open the platform’s model experience page and click sign-in in the top-right corner.
    2. Enter an email address, set a password, and submit.
    3. Check your inbox for the verification code (typically 6 digits) and complete email verification.
    4. Set an account name.
    5. Complete any additional identity verification. Some platforms require phone-number verification before API access is enabled.

    Pitfall notes:

    • Use an email address you check regularly and expect to keep long term, so quota notices and security alerts actually reach you.
    • Prefer a dedicated password and enable multi-factor authentication (MFA) to reduce the risk of key leakage if the account is compromised.
    • If the page shows a “pending verification” status, finish verification before generating a key. Otherwise later calls may fail with authentication or permission errors that are hard to trace back to the real cause.

    2.2 Generate an API key

    1. After signing in, click your avatar in the top-right corner to open the API Keys page.
    2. Click Generate API Key and give the key a recognizable name, for example eval-glm-kimi-2026Q1.
    3. Setting the validity period to Never (roughly 100 years) is the safer choice; an expiring key can abruptly break production calls.
    4. After clicking Generate Key, you receive a string prefixed by the platform.
    5. Copy and store it immediately. This kind of key is usually shown in full only once.

    A key is effectively a pass to every model the platform has opened to you, including the free ones, so the security bar does not drop:

    • Inject it via environment variables or a secrets management service; do not hardcode it.
    • Do not commit it to a repository, and do not expose it in screenshots, logs, or front-end code.
    • Apply least privilege and rotate regularly, and revoke immediately if a leak is suspected.
    • If the key must travel outside the server (for example into a browser or an offline script), prefer a server-side approach that supports temporary credentials or token exchange rather than shipping a long-lived key.

    2.3 Prepare a model client

    To experience several models side by side, use a client that supports multi-model chat — a desktop chat client, a coding assistant, or a small self-built web app. Four capabilities are worth checking:

    • Custom API base URL and key support;
    • Side-by-side comparison of multiple models in one interface;
    • Streaming output support;
    • Parameter adjustment (temperature, maximum output length, and so on).

    Comparison tip: many clients let you select several models in the input area and switch the response layout to side-by-side columns. The same question, answered by several models in parallel, makes the differences obvious at a glance. This “same question, multiple answers” approach builds intuition quickly, but serious conclusions need the systematic evaluation described below.

    2.4 Configure connection parameters

    Taking a client that supports custom model services as an example, add a new provider under “Model Services” and fill in three fields:

    • API key: paste the key generated above.
    • API base URL: the platform’s unified endpoint. Check whether a version path such as /v1 is required, per the platform documentation.
    • Model ID: the model identifier used by the platform.

    For the two models this article focuses on, model IDs generally take the form organization/model-name, for example:

    • z-ai/glm-5
    • moonshotai/kimi-k2.5

    Two caveats:

    • Platforms may keep the original team’s naming or rename models, so always go by the platform’s model list.
    • If a platform has not listed the newest release yet, pick the next-newest version in the same family. MiniMax’s latest open release is already M2.5, for instance, while the platform may temporarily offer only M2.1. In that case, complete your integration validation and initial evaluation with M2.1, then swap the model ID and retest once the newer version appears.

    From an engineering standpoint, keep the model ID in configuration rather than hardcoding it in business logic, so upgrades and switches stay cheap:

    1. # Inject via environment variables; use different models per environment
    2. import os
    3. MODEL_CONFIG = {
    4. "base_url": os.environ.get("LLM_BASE_URL", "<inference platform endpoint>"),
    5. "api_key": os.environ["LLM_API_KEY"],
    6. "models": {
    7. "glm": "z-ai/glm-5",
    8. "kimi": "moonshotai/kimi-k2.5",
    9. "minimax": "minimaxai/minimax-m2.1", # replace with m2.5 once the platform updates
    10. },
    11. }

    2.5 Connectivity test

    Once configuration is done, validate the path with a minimal request. With cURL:

    1. # <...> are placeholders; replace with the platform's actual endpoint, key, and model ID
    2. curl "<inference platform endpoint>/chat/completions" \
    3. -H "Content-Type: application/json" \
    4. -H "Authorization: Bearer <API_KEY>" \
    5. -d '{
    6. "model": "<organization>/<model-name>",
    7. "messages": [{"role": "user", "content": "Describe yourself in one sentence"}]
    8. }'

    If a JSON response appears in your terminal, the key, endpoint, and model ID are all correct. To verify every model at once, use a short script — which you can later reuse as the base of your evaluation tooling:

    1. import os
    2. import requests
    3. BASE_URL = os.environ["LLM_BASE_URL"].rstrip("/")
    4. HEADERS = {
    5. "Authorization": f"Bearer {os.environ['LLM_API_KEY']}",
    6. "Content-Type": "application/json",
    7. }
    8. def call_model(model_id: str, prompt: str, timeout: int = 60) -> str:
    9. resp = requests.post(
    10. f"{BASE_URL}/chat/completions",
    11. headers=HEADERS,
    12. json={
    13. "model": model_id,
    14. "messages": [{"role": "user", "content": prompt}],
    15. "max_tokens": 1024,
    16. },
    17. timeout=timeout,
    18. )
    19. resp.raise_for_status()
    20. data = resp.json()
    21. usage = data.get("usage", {})
    22. print(f"[{model_id}] tokens in={usage.get('prompt_tokens')} "
    23. f"out={usage.get('completion_tokens')}")
    24. return data["choices"][0]["message"]["content"]
    25. if __name__ == "__main__":
    26. print(call_model("z-ai/glm-5", "Describe yourself in one sentence"))
    27. print(call_model("moonshotai/kimi-k2.5", "Describe yourself in one sentence"))

    Common issues and where to look:

    • 401 / 403: wrong key, an unverified account, or a key without access to the target model.
    • 404: a mistyped model ID, or the platform has not listed that model.
    • 400 bad parameter: models differ in the accepted ranges for parameters such as temperature and max_tokens. Setting max_tokens explicitly avoids responses being truncated by a default.
    • Timeout or slow response: free tiers often involve queueing and load fluctuation. Increase the timeout and implement retries.
    • High inference latency: some models use a “reason first, answer second” mechanism that streams the reasoning before the conclusion. For interactive products, enable streaming so users see text immediately instead of waiting for the final answer.

    3. Head-to-head evaluation: answering “which one” with a reproducible method

    Integration is only the means; selection is the goal. Leaderboard statements like “model X beats model Y by 0.5 points” may not hold for your workload. The more reliable approach is a reproducible, blind, quantifiable evaluation process.

    3.1 Understand the limits of public leaderboards

    Leaderboards reflect average capability, but they carry several inherent biases:

    1. Data contamination: public test items may appear in training corpora, inflating scores.
    2. Task skew: leaderboards test general ability; your business may be highly vertical.
    3. Prompt sensitivity: models react very differently to system prompts and output-format instructions.
    4. Single dimension: leaderboards usually report a score only, not latency, cost, or stability.

    Leaderboards are good for initial screening; a self-built evaluation set is what supports decisions.

    3.2 Build your own evaluation set

    1. Collect real cases: extract 30–100 representative inputs from historical tickets, user questions, and code review notes. Cover high-frequency, long-tail, and boundary cases.
    2. Annotate reference answers: for each case, write the expected output or scoring criteria. If capacity allows, have a strong model draft reference answers and then have a human review and revise them.
    3. Define scoring dimensions: pick dimensions based on your business, for example factual correctness, format compliance, whether code runs, and naturalness of Chinese phrasing. Use a 0–2 scale per dimension to keep scoring disciplined.
    4. Version control it: put the evaluation set under version control and rerun it as a regression suite after model upgrades, so you catch cases where improving A degrades B.

    3.3 Control variables and run blind reviews

    • Identical inputs: give every model the exact same system prompt and user input.
    • Identical parameters: keep sampling settings consistent (e.g. temperature=0.2, max_tokens=1024) so results are stable and comparable.
    • Identical timing: run all tests within the same window to avoid interference from fluctuating free quotas.
    • Multiple samples: run each case at least 3 times and observe output variance. High-variance models carry more production risk.
    • Randomized, anonymized blind review: replace model names with “Answer A/B/C,” shuffle the order, and then review. It helps to tell reviewers beforehand that the answers come from Chinese open models, so preconceptions do not bias the scoring.

    3.4 Quantify engineering metrics

    Beyond quality, record engineering metrics:

    • Time to first token (TTFT): determines whether an interaction feels fast or slow.
    • Total latency and output speed (tokens/s): affects throughput on batch jobs.
    • Usage and cost: log prompt_tokens and completion_tokens per turn and convert them into actual cost.
    • Stability: track timeout rate, rate-limit hit rate, and empty-response rate.
    • Retry behavior: set sensible retry counts and backoff (for example exponential backoff) and record the final success rate.

    3.5 Form the selection conclusion

    Aggregate every dimension into something like the table below (figures are illustrative; use your own measurements):

    Model Average score TTFT Average cost per call Stability Fit
    Model A 4.2 / 6 Low Medium High Front-end code generation, general chat
    Model B 4.0 / 6 Medium Medium Medium Long-document analysis, document summarization
    Model C 3.8 / 6 Low Low High Batch data processing, simple classification

    The conclusion is usually not “pick one” but “pick per scenario”:

    • Chat experience first → low TTFT and natural phrasing;
    • Code generation → unit test pass rate and first-run success rate first;
    • Long-document analysis → long-context retention and reasoning depth first;
    • Agent tasks → tool-call accuracy first.

    More importantly, do not bind your business to a single model. Keep a unified calling layer in your code (see Section 2) and configure primary and fallback models, with automatic failover when the primary is rate-limited or times out. That is the real answer to “which one should I choose”: not one best model, but a model layer that can be swapped at any time and routed per scenario.

    4. Scaling: from free trial to production

    Free quotas suit validation and demos; production requires deliberate planning for cost, rate limits, and SLAs. Many teams have a smooth demo experience and then hit rate limits, timeouts, and unexpectedly large bills on launch. Plan these four areas in advance:

    1. Understand the quota rules: free tiers usually have time or volume limits and stricter throttling. Confirm quotas, rate limits, and billing before launch, and leave headroom for peak traffic.
    2. Tiered routing: send simple tasks (classification, rewriting, extraction) to smaller models or a rules engine, and complex reasoning to flagship models. Hybrid routing is usually cheaper than “always use the most expensive option.”
    3. Caching and batching: cache results for high-frequency, repetitive requests, and combine offline jobs into batch requests to improve throughput utilization.
    4. Observability and failover: add logging, metrics, and alerting across the call path (token usage, latency, error rate), and configure primary/fallback switching across providers.

    For data-sensitive or heavily regulated scenarios, a “in-region compliance plus hybrid deployment” strategy is advisable:

    • Keep sensitive data within the required jurisdiction and call model services operated by in-region cloud vendors (Baidu AI Cloud’s model services are one example), choosing between public API, dedicated capacity, or private deployment as needs dictate.
    • Self-host open-model inference for batch offline work and route always-on chat traffic to a managed API, balancing cost against experience.
    • Whichever form you choose, apply content moderation, log redaction, and access control to inputs and outputs to meet data security and generated-content labeling requirements.

    5. Troubleshooting quick reference

    Symptom Likely cause What to do
    401 / 403 Wrong key, unverified account, no model permission Regenerate the key, complete verification, confirm the model is enabled
    404 model not found Mistyped model ID or not listed Check the platform’s model list for naming and version
    400 bad parameter Parameter outside the model’s supported range Adjust per the model documentation
    Slow or timed-out response Free-tier queueing, load fluctuation Increase the timeout, enable streaming, add retries and fallback
    Truncated response Output hit the max_tokens limit Raise max_tokens or split the output into stages
    Unstable answer quality Sampling parameters, prompt differences Standardize parameters, sample multiple times, refine the system prompt

    6. Summary: how you integrate, evaluate, and operate matters more than which model you pick

    This article lays out a complete path for selecting Chinese open-source large models:

    1. Integrate: register and verify → generate and safeguard a key → configure a unified API client → run a connectivity test. The key is to keep model IDs and the base endpoint in configuration so switching models is a one-line change.
    2. Evaluate: screen with public leaderboards, decide with your own evaluation set, control variables, run anonymous blind reviews, quantify engineering metrics, and conclude with per-scenario model choices.
    3. Scale: understand quota and rate-limit rules, then apply tiered routing, caching, batching, and primary/fallback failover; for compliance-sensitive work, use in-region services or hybrid deployment.

    Chinese open models have narrowed the gap with the international top tier on several dimensions, and they are still iterating quickly. Today’s best choice may be superseded by a new release next month. So the investment that actually pays off is not agonizing over “which model today” but building an application architecture that is fast to switch, quantitatively evaluated, and elastically scalable — so that whatever Chinese models release next, you can adopt the newest capability at the lowest possible cost.