LLM Billing Is Moving Beyond Per-Token Pricing

    This article examines why per-token billing is reaching its limits for large language model services and how providers can shift toward outcome-based pricing. It covers the two dominant billing models, why falling inference costs have not made LLM businesses more profitable, and the three engineering capabilities required to bill by task results: task and outcome modeling, metering and audit pipelines, and hybrid billing with quota governance. Developers will find practical guidance on defining success criteria, tracking task-level costs, designing fallback and retry strategies, and capacity planning for AI agents. Code examples illustrate settlement logic and data structures.

    Two Billing Models Dominate Today

    Commercial LLM services currently follow two main paths.

    The first targets individual and team users through subscriptions: a fixed monthly or annual fee grants a usage allowance or relatively generous call limits. This model produces stable cash flow, but growth is constrained by conversion rates. Public industry estimates show that most revenue at leading chat products comes from subscriptions, while API usage contributes very little. At the same time, weekly active users have reached the hundreds of millions, yet the paying share has long stayed in the single-digit percentages. The structure of “most users free, a few paying for the whole platform” remains unchanged, and the subscription ceiling is clear.

    The second targets developers and enterprises with per-token billing: input and output are priced separately and charged according to the volume of text processed. Its strengths are objective measurement and a low barrier to entry, but it has a fundamental mismatch—it measures how much text the model processed, not how much value the user received.

    An automated outbound calling agent may place thousands of calls with zero conversions. A block of generated code may run to hundreds of lines yet fail to compile. Vendors charge for volume processed; users are calculating return on investment. When model capability is limited and call volume is low, this mismatch is tolerable. Once agents begin handling end-to-end business workflows, the conflict amplifies quickly.

    Costs Are Collapsing, but Vendors Are Not Getting Relief

    An easily overlooked fact: the cost of inference at a given level of intelligence is falling fast. Public industry reports show that the price of inference at the capability level of early mainstream models dropped by more than two orders of magnitude in roughly two years. Multiple vendors have cut input and output prices for flagship models by several times within the past year. Some cost-focused models have pushed prices down to a fraction of a dollar per million tokens.

    Under conventional internet logic, falling costs plus rising scale naturally produce profit. The LLM business does not follow that curve, for three reasons:

    • The “content” of a unit of intelligence is increasing. To stay competitive, vendors keep expanding context windows, reasoning depth, and multimodal capability. Compute per task rises in step, offsetting cost declines.
    • Agents drive nonlinear usage growth. A single task may involve planning, retrieval, tool calls, and self-verification across multiple turns, consuming tens of times more than a traditional question-and-answer exchange.
    • Free and low-price strategies persist. To compete for users, vendors keep subsidizing, and marginal revenue struggles to cover marginal compute and operations costs.

    The conclusion: relying on usage-based billing alone cannot sustain a long-term business loop. The billing basis must be restructured.

    Engineering Value-Based Billing: From Tokens to Tasks

    Moving billing from volume processed to results and value requires three layers of engineering capability.

    1. Task and Outcome Modeling

    First, define the smallest billable unit—for example, “one closed support ticket,” “one compliance report,” or “one code change that passes tests.” Each unit is bound to explicit success criteria:

    1. {
    2. "task_id": "t-20260901-001",
    3. "type": "code_change",
    4. "success_criteria": {
    5. "compile": true,
    6. "unit_tests_pass": true,
    7. "static_check": "no_high_severity"
    8. },
    9. "resource_usage": { "input_tokens": 182340, "output_tokens": 24110 },
    10. "settlement": { "mode": "by_outcome", "unit_price": 0.8 }
    11. }

    The key point: resource usage serves only as input for cost accounting and risk control, not as the basis for customer billing.

    2. Metering and Audit Pipeline

    • Collection layer: instrument the call gateway uniformly to record task ID, model version, usage, latency, and failure reasons.
    • Storage layer: send detailed records to object storage, and metadata plus settlement status to a database, enabling reconciliation and traceability.
    • Compute layer: use a message queue to drive an asynchronous settlement pipeline, avoiding blocking of the main request path during peak periods.
    • Observability layer: use logging and monitoring with alerts to build real-time dashboards for failure rates, retry rates, and per-task cost.

    Illustrative settlement validation logic:

    1. def settle(task):
    2. usage = task.resource_usage
    3. if not task.success_criteria_all_passed():
    4. return {"billable": False, "reason": "outcome_not_reached"}
    5. # Cost safeguard: prevent abnormally long tasks from eroding margin
    6. if usage["input_tokens"] + usage["output_tokens"] > HARD_CAP:
    7. return {"billable": True, "mode": "by_usage_capped"}
    8. return {"billable": True, "mode": "by_outcome",
    9. "amount": task.settlement["unit_price"]}

    3. Hybrid Billing and Quota Governance

    A more practical approach is a hybrid model: a base subscription covers normal usage, task-level settlement covers high-value scenarios, and usage above a threshold reverts to metered billing with a cap. This requires quota governance: set budgets and circuit breakers per tenant and per business line, and automatically downgrade abnormal consumption to a smaller model or cached results.

    Practical Guidance for Developers

    • Define success criteria during the requirements phase. Scenarios where acceptance standards cannot be defined are not suitable for outcome-based billing.
    • Build task-level cost accounting. Even when customers are not billed per token, internally you must know the true compute cost of each task.
    • Design fallback and retry strategies: check the cache first, then a smaller model, and use the large model only as a last resort. This can cut costs by several times.
    • Retain a complete audit trail. Billing disputes require a replayable evidence chain.
    • Plan capacity on top of container platforms and elastic resources to handle peak fluctuations driven by agents.

    Conclusion

    Per-token billing is a transitional form at the current stage. It solved measurability but not alignment. As agents take on complete business loops, the billing basis will inevitably shift from volume processed to task outcomes, and from cost allocation to value distribution. For enterprises, the earlier they build task modeling, metering and audit, and quota governance systems, the more initiative they will hold in the next phase of cost competition. Baidu AI Cloud’s combination of model services with general capabilities in data, containers, and monitoring provides a usable infrastructure foundation for deploying this kind of billing system.