Free AI Chat Is Not Free: Token Billing, Caching, and Unit Economics
Free user-facing chat does not mean free inference. This article explains token-based billing for LLM APIs, how to calculate request and task costs, the role of context and result caching, the constraints on off-peak pricing, why low token prices do not guarantee low task costs, and how model providers, application developers, and enterprises capture revenue, profit, or efficiency gains. It also outlines a practical cost governance framework for development teams.
1. Free Is the Access Point, Not the Underlying Compute
Intelligent chat can be free for ordinary users, but the compute resources, model inference, and data processing behind it are not free. When developers call a model through an API, they usually pay according to actual usage.
To understand this, it helps to separate two different commercial relationships.
The first is the service relationship with end users. Application operators can support chat features through free quotas, subscription plans, or other revenue, and they can also use chat as a customer acquisition entry point. Therefore, whether a user pays does not necessarily correspond directly to whether a particular model call is billed.
The second is the resource procurement relationship with developers. Developers purchase model inference capacity and combine it into customer support, knowledge Q&A, content generation, or business assistance features. The underlying call costs must ultimately be covered by application revenue, enterprise budgets, or the operator.
So the question of “who makes money first behind free chat” cannot be answered by looking only at API price lists. A model service provider may recognize revenue first, an application developer may build user scale first, and an enterprise user may gain efficiency first. These outcomes are not equivalent, and none of them directly proves who achieves profit first.
2. Why Input and Output Tokens Are Priced Separately
Model calls are often measured in tokens. A token is a basic unit of text processing for a model, and it should not be simply equated with one Chinese character, one word, or one character. Different text content and tokenization methods affect the final measured quantity.
The input of a chat request is usually not just the question the user has just asked. It may also include:
- system instructions that constrain how the answer should be produced;
- historical conversation included to maintain context continuity;
- reference snippets retrieved from business materials;
- results returned after tool execution;
- the current text or data that needs to be processed.
Output includes the answer generated by the model and other generated content that is included in billing under the specific service rules. The actual billing scope must follow the explicit terms of the service being used. Different services should not be treated as having exactly the same billing scope.
One price example in the original reference material is CNY 2 per million input tokens and CNY 8 per million output tokens. These values are retained here only to explain the cost structure, not as a current procurement quote.
In this example, the output unit price is four times the input unit price. This suggests that controlling generation length may have direct cost-saving value. However, it does not follow that output must always be the main cost. If an application reads a large number of documents for each request but generates only one concluding sentence, input cost may still account for a larger share.
The real point is:
The share of a cost item is determined by both unit price and actual usage, not by unit price alone.
3. Turning a Price List into a Calculable Request Cost
For a simplified scenario involving only text inference, the following cost model can be used:
Request cost = uncached input tokens × uncached input price + cached input tokens × cached input price + output tokens × output price.
If the quoted unit is “CNY per million tokens,” the token count should be divided by one million in the calculation.
For example, suppose a request contains 8,000 input tokens and generates 2,000 output tokens, with input and output prices of CNY 2 and CNY 8 respectively:
- Input cost: 8,000 ÷ 1,000,000 × 2 = CNY 0.016;
- Output cost: 2,000 ÷ 1,000,000 × 8 = CNY 0.016;
- Total single-request inference cost: CNY 0.032.
This example shows that although the input length is four times the output length, the two cost components are equal.
If one million requests of the same size are completed in a month, the model inference cost for this part alone reaches CNY 32,000. This does not yet include storage, network, retrieval, logging, human review, failed retries, or multi-turn calls.
A real budget cannot rely only on “cost per request × number of users.” The more appropriate unit is the task: one user task may involve one call, or it may pass through multiple stages such as intent recognition, material retrieval, answer generation, and result checking.
Therefore, it is also necessary to calculate:
Cost per task = all model call costs for that task + other attributable execution costs.
Only by accounting at the task level can technical consumption and business returns be compared on the same basis.
4. Context Caching Saves Reprocessing, Not All Input
In the billing example from the reference material, the reusable input portion is billed at CNY 0.04 per million tokens, while ordinary input is billed at CNY 2 per million tokens. The difference is large, but the cheaper cache price must be based on actual cache hits.
Suppose that of the 8,000 input tokens above, 6,000 meet the service’s cache reuse conditions and the other 2,000 are still charged as ordinary input. The input cost is then:
6,000 ÷ 1,000,000 × 0.04 + 2,000 ÷ 1,000,000 × 2 = CNY 0.00424.
The output cost remains CNY 0.016, and the total cost is approximately CNY 0.02024, about 36.75% lower than without caching.
Note that this is only an example calculated under the given assumptions. It is not a savings ratio that any real system can achieve.
In engineering practice, two kinds of caching should be distinguished:
Context caching reuses input content that has already been processed, and subsequent generation may still be required.
Application result caching stores completed answers or business results and returns them directly when validity conditions are met, potentially avoiding the model call altogether.
Their applicable conditions differ. Context caching needs attention to repeated content, reuse rules, and validity periods. Result caching needs more attention to data freshness, user permissions, and whether an answer is suitable for reuse across requests.
For scenarios involving private user information, content from different users must not be mixed merely to improve hit rates. Cache keys, tenant isolation, and permission validation should be part of the design.
5. Can Off-Peak Pricing Become Real Savings?
The reference material also gives an example of output pricing of CNY 8 at peak times and CNY 4 at off-peak times. This reflects a common resource pricing approach: using time-based differences to guide delay-tolerant tasks away from busy periods.
Whether it is worth using lower-priced periods depends on how much latency a task can tolerate.
Online customer support, real-time assistance, and interactive Q&A usually require timely responses and cannot simply be delayed to save cost. Batch document processing, offline report generation, and historical text analysis may be suitable for task queues and execution within an allowed time window.
Implementation should clarify at least four constraints:
- Deadline: the latest time by which the task must be completed.
- Backlog limit: whether processing capacity during the low-price period is sufficient to clear the queue.
- Failure compensation: whether there is still time to retry after a failed execution.
- Data freshness: whether delayed processing would cause input materials to lose business value.
The benefit of time-based scheduling should be considered after deducting the added costs of queue management, monitoring, and operations. For applications with very small call volumes, a complex scheduling system may not be more economical than direct execution.
6. A Low Token Price Does Not Guarantee Low Task Cost
Output prices can differ significantly across models, but a price gap does not directly equal a business cost gap.
If a low-cost option frequently misses constraints, returns an incorrect structure, or requires manual correction, the saved call fees may be offset by retries and review costs. Conversely, if the task is only simple classification or fixed-format extraction, a more expensive model may not provide enough additional value.
The evaluation unit should be upgraded from “one million tokens” to “one qualified task.”
Within a statistical period, the following metric can be used:
Average cost per qualified task = total execution cost for the period ÷ number of accepted qualified tasks.
Total execution cost should include failed calls, necessary retries, and attributable human processing costs. For scenarios that require human acceptance, human time should also be recorded to avoid a false optimization in which “model fees fall but human burden rises.”
The test set should come from real business scenarios and cover common questions, edge inputs, long text, and exceptions. Acceptance criteria should be defined in advance, such as factual accuracy, field completeness, format compliance, and whether key constraints are satisfied.
Routing by task difficulty is a feasible approach: simple tasks go through a lower-cost path, while complex tasks use a path with stronger capability or more thorough checking. However, routing itself also creates errors and additional overhead. It must be included in the overall evaluation rather than treated as a cost-free optimization.
7. Who Makes Money First: Revenue, Profit, and Efficiency Gains
Model service providers: usage fees create revenue first
Usage-based billing can turn usage into revenue, but revenue is not profit. Service providers also bear costs for compute resources, model research and development, and system operations.
After a price reduction, revenue scale may expand if call volume grows and resource utilization improves. If the additional revenue is not enough to cover costs, however, a low price may simply be market investment. A public price list alone is not enough to judge profitability.
Application developers: turn model capability into outcomes users are willing to pay for
A developer’s revenue source should not be simply reselling call quota. It should come from clear product value, such as shortening processing time, improving delivery consistency, or helping users complete work that was previously difficult.
User revenue and user cost should be calculated carefully:
User contribution = revenue generated by the user - model and supporting service costs - other attributable delivery and support costs.
If free users make heavy use of high-cost features and paid conversion is insufficient, user growth may actually deepen losses. Therefore, free quotas, task length, concurrency limits, and the scope of high-cost features should be designed according to business value and clearly explained to users.
Enterprise users: gain efficiency first, then determine whether financial returns follow
An enterprise using models does not necessarily generate external sales revenue. The benefit may first appear as reduced processing time, faster response, or less repetitive work.
However, “saved time” does not automatically equal “saved cash.” Financial value can be further confirmed only when the saved time is actually used to increase effective output, reduce external procurement, or produce other verifiable results.
Evaluation should record task quality, human hours, processing volume, and system costs before and after deployment. Do not look only at the API bill while ignoring business outcomes.
8. What Cost Governance Mechanism Should Development Teams Build?
The first step is to improve the call ledger. Record the input volume, output volume, cache hit volume, response time, retry count, and task attribution for each request. When logs contain sensitive content, necessary redaction and access control should be applied.
The second step is to aggregate costs by business scenario. Knowledge Q&A, content generation, and batch analysis have different consumption structures. A single overall average should not be used to judge the whole system.
The third step is to manage context. Historical messages should be retained as needed for the task, retrieved snippets should be filtered for relevance, and fixed instructions should be made less redundant. Compression must not come at the cost of losing key facts; otherwise, errors and retries may amplify costs again.
The fourth step is to constrain unnecessary output. Clearly ask the model to return the content needed to complete the task and avoid generating long explanations by default. If structured results are required, validate fields and format to reduce the probability of downstream processing failures.
The fifth step is to set budgets and anomaly alerts. Establish reasonable limits on calls per task, user usage quota, and total spending, and detect loop calls, abnormal retries, and sudden consumption in time.
The sixth step is continuous retesting. Prices, business inputs, and task distribution may all change, and the most economical option at an early stage may not remain optimal long term. Each adjustment should compare cost, quality, and response time together, not just bill numbers.
9. Conclusion: Sustainable Returns Come from Unit Task Economics
Free chat lowers the barrier for users to try a product, while usage-based pricing makes underlying compute consumption explicit. Separate input and output pricing, cache discounts, and time-of-day pricing give developers different ways to optimize cost, but any discount must fit the real task structure to be effective.
Who obtains revenue first is often determined by the charging relationship. Who achieves profit first is determined jointly by cost control, product value, and willingness to pay. Whether an enterprise benefits also depends on whether efficiency improvements can be converted into verifiable business results.
For development teams, the most important thing to track continuously is not the lowest API quote. It is how much it costs to complete a qualified task under the required quality, latency, and security constraints, and how much value that task creates.
