The Commercial Turning Point for Open-Source AI in China: From Selling Tokens to Selling Tasks
This article examines why AI usage is shifting toward cost-efficient open-source models and why token-based billing is giving way to task-based measurement. It explains the limits of token metering, presents a practical task model and gateway design with code examples, outlines the four forces driving this shift, and offers a four-step adoption path, key metrics, and advice for developers, architects, and managers.
1. The Signal: Fast Supply-Side Iteration and a Shift Toward Cost-Efficient Models
Over the past few months, Chinese open-source model releases have accelerated noticeably: lightweight inference versions, long-context versions, agent-oriented versions, and multimodal fusion versions have appeared in quick succession. This release cadence shows that engineering capability on the supply side has matured to the point where new versions can be delivered “by the week.” What deserves developers’ attention, however, is not the version numbers but how the distribution of real traffic across these versions is changing.
Public statistics from a global model aggregation and routing platform show that, within one weekly measurement window, total token calls on the platform reached the order of hundreds of trillions. Among the top-ranked models, models from China together accounted for nearly half; and this lead has held over a fairly long span of time. In the same week, a lightweight version named “Flash” topped the weekly chart with tens of trillions of tokens, growing several-fold week over week; a mid-tier version from another open-source series recorded tens of trillions of calls over the past seven days and a cumulative fifty trillion over the past thirty days.
The scope of these statistics must be stated clearly: such platforms only count traffic routed through their own infrastructure. They exclude vendor-direct APIs, cloud-hosted deployments, private deployments, and in-app calls within end-user applications. This makes the data more of a “temperature gauge for price and capability in the open market” than a measure of total market share. Understanding this boundary is essential to avoid treating partial data as a global conclusion.
2. The Core Issue: Tokens Are a Unit of Measurement, Not a Unit of Value
Token-based billing makes sense because tokens are measurable, allocable, and roughly linear with compute cost. But its weaknesses are equally clear: customers buy “a task completed,” while vendors deliver “several segments of text generation.” The missing alignment layer between the two creates three typical sources of friction.
- Value misalignment: a successful structured extraction and a failed stream of nonsense may consume similar token counts, yet differ enormously in business value.
- Unpredictable cost: retries, long contexts, and chain-of-thought reasoning all amplify token consumption, making bill fluctuations hard to attribute.
- Misaligned optimization: teams instinctively “squeeze tokens” rather than “raise the first-pass success rate,” ultimately sacrificing quality.
“From selling tokens to selling tasks” does not mean abolishing token metering. It means adding a task-level layer of measurement and settlement semantics on top of it: task success rate, cost per task, latency percentiles, and human takeover rate. Tokens recede into an underlying resource metric, while the task becomes the externally committed metric.
3. The Engineering Abstraction of Task-Based Metering
To turn a “task” into a measurable object, you first need a task model. A usable abstraction contains five fields:
{"task_id": "invoice_extract_20261102_0007","task_type": "structured_extraction","input_ref": "obj://bucket/invoice/7.pdf","sla": { "p95_latency_ms": 8000, "min_success_rate": 0.97 },"budget": { "max_tokens": 12000, "max_cost": 0.03 }}
On this basis, the runtime needs a lightweight task gateway responsible for idempotency, budget control, retries, and degradation. Example code:
def run_task(task, model_router):if not budget_ok(task): # Pre-check the budgetreturn degrade(task, "budget_exceeded")for attempt in range(task.max_retry):resp = model_router.call(model=task.prefer_model, # Can be lightweight/mid-tier/heavy reasoningpayload=task.payload,max_tokens=task.budget.max_tokens)if validate(resp, task.schema): # Schema/rule/consistency validationreturn finalize(resp, task)task.penalize(attempt) # Count the failure toward costreturn human_takeover(task) # Final fallback
The key point is that the validator and the routing policy are the core assets of task orientation. The validator decides “what counts as done,” and the routing policy decides “how expensive a model to use to get it done.” Together they converge an uncontrollable generation process into a service that can be committed to.
4. Why the Turning Point Is Happening Now
First, lightweight models have crossed the usability threshold. Small versions are now reliable enough for extraction, classification, rewriting, and formatting tasks, and their unit cost has dropped sharply, creating profit room for task-based pricing.
Second, agents and tool calling have become the mainstream form. A single user request often triggers multiple rounds of model calls and external tool execution, further decoupling token consumption from perceived user value. The task becomes the only reasonable unit for reconciliation.
Third, the language of enterprise procurement is changing. Business stakeholders care about ticket closure rates, document processing turnaround, and first-contact resolution rates, not context length or price per million tokens.
Fourth, observability and evaluation tooling has matured. Offline evaluation sets, online canary releases, and regression baselines have become standard, making task-level SLAs continuously verifiable.
5. Adoption Path: Four Steps
- Task inventory: break high-frequency scenarios into atomic tasks, annotating input form, output schema, acceptance rules, and the cost of failure.
- Baseline evaluation: build an offline evaluation set and metric baseline for each task type (success rate, first-pass rate, P95 latency, cost per task).
- Tiered routing: schedule lightweight, mid-tier, and heavy-reasoning models by difficulty, combined with caching and batching, to push cost into a range matched to the SLA.
- Settlement and operations: bill externally per task or outcome, and account internally for gross margin by tokens and compute, forming two-way reconciliation.
An example metrics dashboard structure:
Task success rate = tasks passing validation / total tasksFirst-pass rate = tasks passing on the first call / total tasksCost per task = (token cost + tool cost + human cost) / tasksHuman takeover rate = tasks escalated to humans / total tasksP95 latency = 95th percentile of task end-to-end time
6. Balancing Cost, Quality, and Risk
After task orientation, cost governance shifts from “squeezing tokens” to “squeezing out ineffective calls.” Effective measures include: semantic caching to reuse results for similar requests; batching to merge small tasks; retrieval-based trimming of long documents before inference; mandatory cross-validation with two models for high-risk tasks; and routing low-value requests directly to a rules engine.
On the quality side, guard against metrics becoming Goodharted. If only success rate is measured, teams may define tasks too loosely. It is advisable to introduce adversarial sample sets and manual spot checks, and to keep the evaluation set updated frequently.
On the risk side, pay attention to data compliance and isolation: task inputs often contain sensitive fields, so masking and audit trails should be applied at the gateway layer; in private deployment scenarios, the task model and billing definitions should stay consistent with the public cloud to avoid two sets of semantics.
7. Recommendations for Different Roles
For developers: prioritize building validators and evaluation sets, which are the foundation of task orientation; make routing policies configurable rather than hard-coded.
For architects: place the task gateway at the system boundary to unify idempotency, budgets, degradation, and auditing, avoiding every business team reinventing the wheel.
For managers: commit externally to task-level SLAs while retaining token-level cost accounting internally; use “gross margin per task” instead of “unit price” as the decision metric.
8. Conclusion
The migration of call-volume share is, in essence, global developers voting with real traffic for “usable capability at a given unit cost.” The next stop for the business model is to package that usable capability into tasks that can be committed to, measured, and reconciled. Whoever connects validation, routing, evaluation, and cost will achieve more stable customer retention and a healthier gross-margin structure in the shift from selling tokens to selling tasks.
