Domestic Large Language Model Selection Guide: Which Is the Most Cost-Effective for Coding/Agent Scenarios?

Author’s note: This piece splits benchmark scores, unit price, and integration into three separate ledgers, then breaks down domestic Large Language Model selection across two scenarios — multi-turn Agent and hard coding tasks — without crowning an overall champion.

Choosing a domestic Large Language Model is a step developers can’t avoid when they’re wiring a coding assistant or an Agent into a product. This article compares the trade-offs between several domestic models in the multi-turn Agent scenario and the hard coding task scenario, and lays out a way to judge them along four dimensions: unit price, caching, self-reported benchmark scores, and integration.

This is not a “who’s strongest across the board” leaderboard. Benchmark scores, unit price, and integration are three separate ledgers, and it’s genuinely hard to merge them into one “best value” champion. Xing4.1-Preview, open-sourced in late November, also shows up here — but only through the handful of coding- and Agent-related scores on its model card, used as a reference point against the models you can actually call today.

The core takeaway: by the end of this, you’ll have a scenario-based selection framework. When you’re running multi-turn Agents, look at input price and cached-read price first. When you’re tackling hard coding tasks, look at self-reported benchmark scores — and check both the source markers on those scores and whether the test harness is consistent.

domestic-llm-selection-coding-agent-cost-en-image-0

The Three Ledgers of Domestic Large Language Model Selection: Where the Core Differences Are

A lot of model-selection discussions boil “cost-effectiveness” down to a single number — say, “score divided by price.” The problem is that neither the numerator nor the denominator is clean. Scores may come from different organizations and different harnesses, and price has to be split into input, cache read, and output — with the token mix across those three categories varying wildly from one scenario to the next.

A more reliable approach is to break selection into three separate ledgers. Each ledger answers one question, and then you decide which ledger carries more weight for your scenario.

Ledger Question it answers What to look at Common pitfalls
Benchmark ledger Can the model finish hard tasks Scores from the same source under the same harness Blending self-tests, technical reports, and third-party leaderboards into a single ranking
Unit price ledger How much it costs to run ten thousand rounds Input price, cache-read price, output price, and the token share of each Staring only at the output price and ignoring tool definitions that get resent every round
Integration ledger Can I call it today, and how much change does it require Whether it’s already listed on the platform, whether it’s OpenAI-compatible Getting drawn in by scores from a model that isn’t listed yet, and having the project stall at integration

Why you can’t judge domestic Large Language Model selection by a single score

In coding and Agent scenarios, the same model can perform very differently under different evaluation frameworks. Agent-style evaluations especially depend on the harness — the outer shell that drives the model to call tools, execute commands, and read results. With a different shell, the model gets different tools and different retry opportunities, and the meaning of the score shifts accordingly.

Unit price is the same story — you can’t look at just one number. In a multi-turn Agent, every round re-sends the system prompt, tool definitions, and conversation history into the model, so input tokens often far outnumber output tokens. If much of that hits the cache, the cache-read price becomes what actually determines the bill — not the output price that leaderboards so often quote.

domestic-llm-selection-coding-agent-cost-en-image-1

Domestic Large Language Model Selection for Multi-Turn Agent Scenarios: Start With Input and Cache

If your Agent has to carry a long list of tool definitions every turn, plus dozens of rounds of conversation on top, then the input side is where most of the cost comes from. The table below lists the unit prices of several domestic text models from the APIYI model summary table dated 2026-12-02, in USD per million tokens.

Model ID Input Cache read Output Cache read / Input Available platform
qwen3.8-flash 0.114 0.01425 0.3876 about 12.5% APIYI
glm-5.3-flash 0.15 0.03 0.5 about 20% APIYI
deepseek-v4-flash 0.44 0.01408 1.32 about 3.2% APIYI
deepseek-v4.1-flash 0.3 0.006 1.2 about 2% APIYI
glm-5.3 1.4 0.259 4.396 about 18.5% APIYI
Xing4.1-Preview No complete public unit price — — — Not yet available

There are three takeaways from the table. qwen3.8-flash has the lowest input price in this group, so it’s a good starting point for running the numbers on multi-turn tool calling. deepseek-v4-flash doesn’t have a low input price, but its cache read price is discounted heavily relative to its input price—the higher the cache hit rate, the closer you get to the low-price tier. glm-5.3 has unit prices clearly higher than the flash tier. You shouldn’t default to it for an Agent that calls tools every turn just because it scores higher on some self-reported leaderboards.

Xing4.1-Preview isn’t available on APIYI yet, and we’ll make it available as soon as possible; model IDs and prices are subject to the platform’s model list. What you can call today are qwen3.8-flash, glm-5.3-flash, deepseek-v4-flash, deepseek-v4.1-flash, and glm-5.3 from the table above. The unified base URL is https://api.apiyi.com/v1; to switch models, you only need to change the model field. For the specific model IDs and prices after launch, please refer to the APIYI model list at apiyi.com.

Single-turn cost estimates for multi-turn agents on domestic Chinese LLMs

To make the unit prices easier to grasp, let’s set up a hypothetical scenario: each turn sends 50,000 input tokens, of which 40,000 are repeated system prompts and tool definitions that hit the cache, and 10,000 are new content, with the model outputting 1,000 tokens. The numbers below are just illustrative values calculated by plugging the unit prices from the table above into the formula — actual hit rates depend on each provider’s caching mechanism and how your prompts are structured.

Model ID Cache-read portion New input portion Output portion Total per turn (USD)
qwen3.8-flash 0.00057 0.00114 0.00039 ~0.0021
glm-5.3-flash 0.0012 0.0015 0.0005 ~0.0032
deepseek-v4.1-flash 0.00024 0.003 0.0012 ~0.0044
deepseek-v4-flash 0.00056 0.0044 0.00132 ~0.0063
glm-5.3 0.01036 0.014 0.0044 ~0.0288

One thing worth noting in this estimate: the cache-read portion is cheap on both DeepSeek models, and what actually widens the gap is those 10,000 new input tokens plus the output. If your agent adds very little new content each turn and has long tool definitions, DeepSeek’s deep-discount caching will give it an edge; if you’re stuffing large chunks of retrieval results or code files into every turn, qwen3.8-flash with its low input price is easier to keep costs under control with.

domestic-llm-selection-coding-agent-cost-en-image-2


Choosing a Domestic Large Language Model for Difficult Coding Tasks: Look at Benchmarks, and More Importantly, the Markers

The trade-off logic for difficult coding tasks is different. Fixing complex bugs, refactoring across files, running commands continuously in the terminal—if these tasks don’t get finished, you’re just wasting money, and even a 50% lower unit price won’t make up for it. In this case, the weight you give to benchmark scores goes up, but only if you understand where the scores come from.

Xing4.1-Preview was open-sourced by China Telecom Artificial Intelligence Technology on 2026-11-23. Its model card lists 285B total parameters, 17B activated per token, and a native 1M context window. The model card provides several rows of comparison scores related to coding and agents, with the following marker legend: no marker means self-tested by the Xing team, † comes from the respective vendor’s technical report, ‡ comes from Artificial Analysis, and § comes from third-party evaluation.

Benchmark Xing4.1-Preview DeepSeek-V4-Flash-0731 GLM-5.3-Flash DeepSeek-V4.1-Flash-1017 GLM-5.3
SWE-Bench Pro V2 Hard51 74.5 60.8 72.7 88.2 84.3
Terminal-Bench 2.1 80.8 82.7† 84.3† 87.6§ 88.2†
Terminal-Bench 4.0 28.7 12.1‡ 32.8‡ 33.8‡ 41.9‡
AutomationBench v1.0.6 52.3 38.8† 48.8† 60.5† 53.33†

Three things to watch when reading this homegrown Large Language Model benchmark table

The first thing to check is the markers. Except for the SWE-Bench Pro V2 Hard51 row, which has no markers at all, the other three rows show Xing’s scores as self-reported, while the comparison models’ scores come from technical reports, Artificial Analysis, or third-party evaluations respectively. Different markers mean it wasn’t the same test, so comparing numbers side by side within a row isn’t rigorous.

The second thing to check is the harness. According to an MLQ report dated 2026-11-29, on Terminal-Bench 2.1, Xing ran on terminus-2, while the comparison models ran on Claude Code. With different harnesses, that row can’t be read straight off as a ranking.

The third is the version mapping. In the SWE-Bench Pro V2 Hard51 row, Xing’s 74.5 beats DeepSeek-V4-Flash-0731’s 60.8 — but that whole row was run by the Xing team itself, and the reference materials don’t confirm whether the 0731 snapshot in the table is the same version as the deepseek-v4-flash currently offered on APIYI. In that same row, DeepSeek-V4.1-Flash-1017 scores 88.2 and GLM-5.3 scores 84.3. So you can’t take 74.5 as a straightforward “it beat the DeepSeek that’s actually available.”

Reading the comparisons on hard coding tasks

GLM-5.3 benchmark analysis: GLM-5.3 sits near the top across several rows of the table, with 84.3 on SWE-Bench Pro V2 Hard51 and 41.9‡ on Terminal-Bench 4.0. But its per-token price is clearly higher than the flash tier. A better pattern is to route only the hardest slice of tasks to it, rather than having it handle every round of tool calls.

DeepSeek-V4.1-Flash-1017 benchmark analysis: This column ranks fairly high on both SWE-Bench Pro V2 Hard51 and AutomationBench, and the per-token price of the deepseek-v4.1-flash available on the platform is also in the flash tier. However, the reference material only gives the overall table price and has no separate spec page; this article won’t fill in context window or parameter counts, so it’s worth checking the model details on the platform before you integrate it.

Xing4.1-Preview benchmark analysis: Xing’s value is that it provides a new open-source reference point, though its scores are mostly self-reported. Before a formal evaluation, it’s best to wait until it’s listed and re-test it on your own task set and harness, then decide whether to replace your current model.

Scenario Recommendations for Selecting Domestic Large Language Models

When to choose low-input-price flash models

  • Multi-turn agents with long tool lists: Tool definitions are long and there are many turns, so compare input price and cache-read price first. qwen3.8-flash is the starting point when you’re running the cost math first.
  • High-volume runs and document processing: qwen3.8-flash‘s documented positioning covers high-volume runs, visual encoding, documents, and long videos. It accepts text, images, and video as input, with a 1,000,000-token context window and a 131,072-token max output.
  • Medium tasks with multimodal input: glm-5.3-flash also supports text, image, and video input, with a 1,000,000-token context window and a 128,000-token max output.

When to choose models with deep cache discounts or high benchmark scores

  • Agents with high cache hits and long outputs: deepseek-v4-flash explicitly documents implicit caching, with a 1,048,576-token context window and a 393,216-token max output. That makes it a good fit for generation tasks that need very long outputs.
  • Coding tasks that are hard and expensive to get wrong: Use scores from the same source and the same harness, and route these requests to models with higher benchmark scores, such as glm-5.3 or deepseek-v4.1-flash.
  • Evaluating new open-source models: Before Xing4.1-Preview launches, you can use models already available to build a solid evaluation baseline, then compare directly once it launches.

Decision Advice for Choosing Domestic Large Language Models

Most teams end up using “tiered routing”: by default, requests go to low unit-price flash models. When a request fails and is retried, or is flagged as high difficulty, it gets escalated to a higher unit-price model with a stronger benchmark score. That way, the benchmark ledger and the unit-price ledger each do what they’re best at, and you don’t need one model to cover both scenarios.

Your situation Ledger to prioritize Currently available models to try first
Long tool definitions every turn, many turns Unit-price ledger (input + cache reads) qwen3.8-flash, deepseek-v4-flash
Little new input, high cache hit rate Unit-price ledger (cache reads) deepseek-v4.1-flash, deepseek-v4-flash
Need image or video input Unit-price ledger + integration ledger qwen3.8-flash, glm-5.3-flash
Cross-file fixes, long multi-step terminal tasks Benchmark ledger (same source, same Harness) glm-5.3, deepseek-v4.1-flash
Want to evaluate Xing4.1-Preview Integration ledger Not listed yet; build a baseline first

The integration steps can be very simple:

  1. Create an API key in the APIYI console.
  2. With any OpenAI-compatible SDK, set base_url to https://api.apiyi.com/v1 and put the key you just created in api_key.
  3. Set model to a model ID from the table above, such as qwen3.8-flash. Run the same set of Agent tasks once and record token usage by category.
  4. Then swap in glm-5.3-flash, deepseek-v4-flash, and other models in turn. Compare success rates and billing, then decide on routing rules.

💡 Selection tip: Which model you choose depends on your token mix and task difficulty. We recommend using APIYI apiyi.com with the same API key to switch models one by one, run the same Harness on your own task set, and compare success rates plus input, cache, and output usage before settling on an approach. New users get free trial credits, so you can start with small-scale validation.


Common Questions (FAQ)

Q1: Is there a standard answer to “best value for money” when choosing a domestic Large Language Model?

There’s no single answer. Multi-turn agents mostly come down to input price and cache-read price, while hard coding tasks mostly come down to benchmark scores on a comparable basis. Each weighs things differently, and forcing them into one composite score actually misleads decision-making.

Q2: Does Xing4.1-Preview’s 74.5 score mean it beats DeepSeek?

Not really. That row is the Xing team’s own benchmark run, and the version correspondence between the deepseek-v4-flash-0731 in the table and the listed `deepseek-v4-flash` hasn’t been confirmed. On that same row, DeepSeek-V4.1-Flash-1017 scores 88.2. Other rows also have inconsistencies in labeling and harness.

Q3: When can Xing4.1-Preview be called through an API?

The model was open-sourced on 2026-11-23. APIYI hasn’t listed it yet — we’ll get it up as soon as we can. The model name and pricing will follow the platform’s model list. Its model card on Tianyi Open Platform doesn’t give a unit price you can quote in full.

Q4: Why should multi-turn agents pay special attention to cache-read pricing?

System prompts and tool definitions get sent again every turn, and once they hit the cache they’re billed at the cache-read price. Over many turns, that’s a huge volume of tokens, so cache-read pricing and hit rate significantly affect total cost.

Q5: How do I quickly compare several domestic models?

Sign up at APIYI (apiyi.com) and create a key, then point the OpenAI-compatible SDK’s `base_url` at `https://api.apiyi.com/v1`. You only need to change the `model` field to switch between models like `qwen3.8-flash`, `glm-5.3-flash`, and `deepseek-v4-flash`, and you can run small-sample comparisons with the free trial quota.

Q6: GLM-5.3 scores high, so why not use it across the board?

Its input, cache-read, and output unit prices are all noticeably higher than the flash tier. By rough estimate, for the same single-turn workload, it costs several times what the cheaper flash models do, so it’s better suited to handling only the hardest subset of requests.

Q7: What are the limitations of this benchmark data?

All the scores in the table come from the Xing model card, mixing self-reported runs, technical reports, Artificial Analysis, and third-party evaluations, and some rows use different harnesses. They’re fine as an initial screening reference, but you’ll still need to re-test under your own tasks and framework.


Key Takeaways for Selecting Domestic Large Language Models

  • Keep three ledgers separate: benchmark scores, unit price, and integration each answer a different question — don’t merge them into a single champion.
  • For Agents, start with the input side: when tool definitions repeat, input price and cached-read price decide the bill.
  • Low input price starting point: qwen3.8-flash has the lowest input price on this list — a good place to start doing the math.
  • Deep cache discounts: the two DeepSeek flash models offer very deep discounts on cached reads relative to input price.
  • Read benchmark scores with labels and harnesses in mind: different labels aren’t the same exam, so Xing’s 74.5 can’t be directly interpreted as a win.
  • Layered routing is safer: default to the flash tier, and escalate hard tasks to higher-scoring models.
  • Ready to integrate today: every listed model runs through APIYI’s compatible interface — switching models only means changing the model field.

Summary

Core takeaways for selecting domestic Large Language Models:

  1. Scenario first: multi-turn Agents and hard coding tasks look at different ledgers — first figure out your token structure and task difficulty.
  2. Break unit price apart: calculate input, cached read, and output separately. qwen3.8-flash, glm-5.3-flash, and deepseek-v4-flash each suit different workload patterns.
  3. Read benchmark scores by source: when citing model card scores, check the labels and harness. Xing4.1-Preview’s scores are currently better used as a reference than a conclusion.

The more pragmatic next step is to run the same set of tasks across several listed models, then use real success rates and token usage to define your routing rules. Recommended: use APIYI apiyi.com with a single Key to switch between and compare multiple models.


📚 References

  1. Xing4.1-Preview Model Card (Chinese README on GitHub): Parameter scale, training hardware, and benchmark comparison table

    • Link: github.com/XingChen-AGI/Xing4.1-Preview/blob/main/README_ZH.md
    • Notes: The source for the benchmarks and source markers cited in this article
  2. Xing4.1-Preview Model Page (Hugging Face): Open-source weights and model description

    • Link: huggingface.co/XingChen-AGI/Xing4.1-Preview
    • Notes: Good for checking model specs
  3. MLQ Report: Xing4.1-Preview’s open-source release and the harness differences in Terminal-Bench 2.1

    • Link: mlq.ai/news/china-telecom-open-sources-a-285b-ai-model-trained-on-8192-huawei-chips
    • Notes: Explains that Xing uses terminus-2, while the comparison models use Claude Code
  4. APIYI Model Overview and Model Detail Pages: Pricing, context, and max output for models currently available

    • Link: docs.apiyi.com/models.md
    • Notes: Individual model pages live in the same directory, such as /models/qwen3-8-flash.md, /models/glm-5-3-flash.md, /models/deepseek-v4-flash.md, /models/glm-5-3.md

Author: APIYI Technical Team
Technical Discussion: Feel free to reach us through the APIYI homepage, and for more resources, visit the APIYI Documentation Center

Leave a Comment