The Commercial Turning Point for Open-Source AI in China: From Selling Tokens to Selling Tasks

    This article examines why open-weight models have become the default testing ground and backend for developers worldwide, and why token-based pricing is hitting a ceiling. It explains the shift toward task-based delivery, covering task state machines, event-based metering, agent orchestration with tool isolation, a five-layer reference architecture, automated quality verification, and the cost-latency-reliability trade-off, along with common pitfalls to avoid.

    1. What the Shift in Call Volume Actually Signals

    Recent public statistics show that on one global model aggregation and routing platform, weekly call volume has reached the order of hundreds of trillions of tokens. Open-source and open-weight models together account for more than half of that total and have held the lead for several consecutive weeks. It is not unusual for a “breakout” model to show a several-hundred-fold week-over-week increase, and the top models can reach tens of trillions of tokens in a single seven-day period.

    One caveat matters here: such platforms only count traffic routed through their own infrastructure. Vendor-owned APIs, cloud-hosted offerings, private deployments, and end-user applications are all outside that scope. So the real meaning of these numbers is not “whose technology is stronger,” but rather: open-weight models have become the default experimentation ground and the default backend for developers worldwide. This has three direct consequences:

    1. Lower switching costs. Weights can be downloaded and self-hosted, avoiding vendor lock-in.
    2. A changed bargaining structure. Inference prices keep being compressed, narrowing the gross margin available from simply “selling tokens.”
    3. Higher delivery expectations. Developers no longer pay to “generate a piece of text”; they pay to “get something done.”

    That is the essence of the commercial turning point: the unit of value is shifting from input/output length to task completion.

    2. Why Selling Tokens Inevitably Hits a Ceiling

    Token billing is technically elegant but commercially mismatched in three ways.

    • Value mismatch: A successful contract extraction and a failed one consume roughly the same number of tokens, yet the value delivered to the customer differs enormously.
    • Risk mismatch: The cost of failed retries, context bloat, and long chains of thought is borne by the customer, while the stability risk is borne by the vendor’s reputation.
    • Budget mismatch: Unit token prices keep falling and revenue falls with them, while customer expectations for results rise monotonically.

    The result is that both sides end up doing “ineffective optimization”: vendors push unit prices down, customers push context length down, and quality and reliability in the middle go unowned. Task-based delivery is precisely what brings that unowned middle ground into the contract.

    3. The Technical Core of Task-Based Delivery

    3.1 Defining a Task and Its State Machine

    A billable task should have a clear input contract, verifiable completion criteria, an idempotency key, timeout and retry policies, and an auditable trace. A state machine describes it most directly:

    1. RECEIVED -> PLANNING -> EXECUTING -> VERIFYING -> {DONE | RETRY | FAILED | REFUNDED}

    The key design point is that VERIFYING must be a separate stage, carried out by a verifier decoupled from the execution path, to avoid “grading your own work.”

    3.2 Metering and Settlement Abstraction

    Move metering from “length” to “events,” which in code becomes a pluggable meter:

    1. class TaskMeter:
    2. def charge(self, task_id: str, event: str, units: int = 1, meta: dict = None):
    3. # event: plan/exec/verify/retry/tool_call/human_review
    4. ...

    A three-tier settlement model is recommended: a base task fee + resource surcharges (tool calls, retrieval, external execution) + a quality wager (no charge or a discount if the criteria are not met). Keep all rates externalized as configuration; never hard-code them.

    3.3 Agent Orchestration and Tool Isolation

    Task-based delivery necessarily introduces multi-step orchestration. Engineering practice should hold to: separating planning from execution, applying least privilege to tools, requiring a second confirmation for operations with external side effects, and producing a structured intermediate state at every step. Route all tool calls through a single gateway to make rate limiting, redaction, and auditing straightforward.

    4. Reference Architecture: A Five-Layer Model

    1. Access layer: a unified task API handling authentication, quotas, and idempotency-key validation.
    2. Orchestration layer: task-graph (DAG) scheduling, branching and rollback, and human-in-the-loop nodes.
    3. Model layer: multi-model routing that selects either self-hosted open-weight models or hosted services by task type, with canary rollout and fallback support.
    4. Tool and data layer: object storage for intermediate artifacts, a message queue to decouple long-running tasks, and vector retrieval plus a relational database to supply factual grounding.
    5. Governance layer: logging, monitoring and alerting, distributed tracing, cost accounting, and evaluation regression.

    On Baidu AI Cloud, these five layers map directly onto general-purpose capabilities such as container platforms, object storage, message queues, logging, and monitoring and alerting, so teams can gain elasticity and observability without building the infrastructure themselves.

    5. Quality Assurance: The Hardest Part of Task-Based Delivery

    In the token era, quality relied on manual spot checks; in the task era, it must be automated. Three types of criteria are recommended:

    • Rule-based criteria: format, field completeness, numeric ranges, and traceable citations.
    • Model-based criteria: scoring by a cross-review model, cross-validated against rule-based criteria to prevent reviewer drift.
    • Regression criteria: a fixed task suite run in full at every release, with metrics including first-pass rate, average retries, and cost per task.

    An illustrative regression report structure:

    1. {
    2. "suite": "contract-extract-v3",
    3. "pass_rate": 0.943,
    4. "avg_retries": 0.31,
    5. "cost_per_task": 0.017,
    6. "regressions": ["date_field_normalization"]
    7. }

    6. The Cost, Latency, and Reliability Triangle

    Task-based costs are no longer linearly predictable and need three safeguards: a budget cap circuit breaker, context compression with cache reuse, and a tiered model strategy (small models for simple steps, large models for complex reasoning). On latency, long-running tasks should be made asynchronous and return a task handle that clients poll or subscribe to for events. On reliability, the baseline combination is an idempotency key + a deduplication table + compensating transactions.

    7. Common Pitfalls

    • Turning the task fee into an “unlimited monthly plan,” ignoring cost explosions from long-tail tasks.
    • Having the verifier and the executor come from the same source, which inflates apparent quality.
    • Counting only successful tasks while hiding retry costs, which distorts the financial model.
    • Overlooking data compliance and sending sensitive data straight to an external router.

    8. Conclusion

    Open-weight models turn inference into a utility, so value inevitably migrates upward to “whether the task was actually completed.” For developers, three things matter most right now: write the task contract clearly, make verification a separate stage, and make metering and cost configurable capabilities. With general-purpose cloud infrastructure and standard capabilities from Baidu AI Cloud, teams can make the transition from token billing to task delivery at relatively low cost, achieving a sustainable balance among quality, cost, and compliance.