LLM Token Cost: The Real Numbers Behind API Pricing and Subscriptions

    This article breaks down why a low per-token price does not guarantee a low total bill when using large language models. It compares pay-as-you-go API rates with subscription plans, explains the structural reasons behind the cost reversal, and shows how caching, retry rates, and task difficulty reshape the cost curve. You will learn a reusable task-level cost model, along with practical tactics such as tiered routing, structured output with automated validation, cache reuse, and cost dashboards.

    1. The Starting Point: A Cheap Unit Price Is Not a Low Total Cost

    When estimating LLM usage costs, the most common mistake is treating the “price per million tokens” as the only metric. The numbers on public pricing pages are indeed straightforward: flagship domestic models are typically quoted at only 30%–60% of leading overseas models, and lightweight models can be priced below 3% of a competitor’s mid-tier product. At this level, the conclusion seems beyond dispute.

    The picture nearly reverses once you switch from metered API calls to monthly personal subscriptions. Using an industry rule of thumb, a coding subscription priced at roughly RMB 1,360 per month is estimated to support about 10.9 billion tokens per month, which works out to roughly RMB 12.5 per 100 million tokens; a higher-capability tier averages about RMB 13.6. Over the same period, several domestic subscription plans work out to approximately RMB 101 per 100 million tokens for one cloud vendor, RMB 50.2 for one platform, RMB 25.1 for one model vendor, and RMB 95.4 for one startup, with two low-price tiers at roughly RMB 17.5 and RMB 6.4.

    The conclusion is clear: apart from a few low-price tiers, most domestic subscription plans actually carry a higher effective unit cost than overseas subscriptions. This is not a pricing error but a collision of two business logics on the same bill.

    2. Why the Reversal Happens: Four Structural Reasons

    1. Subsidy Capacity Comes From Funding and Scale, Not Cost Advantages

    Leading overseas vendors are backed by large funding rounds and a massive base of paying users, allowing them to subsidize heavy developers with low subscription prices and treat losses as customer acquisition and market education costs. Domestic vendors face higher compute procurement costs and greater pressure to recoup investment, leaving far less room for cross-subsidies of comparable scale.

    2. Different Pricing Anchors: API Price Wars vs. Subscription Retention Wars

    Domestic vendors lean toward extremely low API unit prices to win enterprise call volume, because enterprise usage is predictable, scalable, and comes with clear payment terms. Overseas vendors use low subscription prices to lock in consumer and developer mindshare. These two anchors give the same batch of tokens entirely different “book value” in each system.

    3. Unused Quota Is the Core Assumption of the Subscription Model

    The subscription model only works if “most people do not use up their allowance.” A common industry observation is that typical users consume less than 10% of the plan limit. Vendors are betting on this probability distribution, and heavy developers are the subsidized minority. If you are a heavy user, the marginal cost of a subscription is extremely low; if you are a light user, the subscription is a pure sunk cost.

    4. Caching Pushes the Real Cost Down by Another Order of Magnitude

    Measured data shows that cache hit rates in coding scenarios commonly exceed 90%, and higher-capability tiers can reach 97%. Cached input portions incur almost no repeated compute overhead, which means there is a huge gap between the token count on the bill and actual compute consumption. Ignoring caching will distort any cost model.

    3. Building a Reusable Cost Model

    Do not compare unit prices; compare the total spend to complete the same task. A five-step model is recommended:

    1. # Illustrative: task-level cost accounting, not unit-price accounting
    2. def task_cost(model, task):
    3. total_cost, total_latency, attempts = 0.0, 0.0, 0
    4. for _ in range(MAX_ATTEMPTS):
    5. r = model.run(task) # returns usage and latency
    6. total_cost += r.input_tokens * r.in_price \
    7. + r.output_tokens * r.out_price
    8. total_latency += r.latency
    9. attempts += 1
    10. if r.passed: # stop only when the result is acceptable
    11. break
    12. return {
    13. "cost": total_cost,
    14. "latency": total_latency,
    15. "attempts": attempts,
    16. "usable": r.passed,
    17. }

    Four variables matter most: single-attempt success rate, average retry count, cache hit rate, and end-to-end latency. The first two determine whether cost can be amortized, the third determines the real discount on the input side, and the fourth determines the hidden cost of human waiting.

    4. How Capability Differences Rewrite the Cost Curve

    A financial-report analysis task was run 60 times across 20 models; 9 models reached 100% accuracy, 6 of them domestic. The lowest-cost tier spent only RMB 0.25 per task, less than 3% of the most expensive tier. This shows that on clearly bounded, automatically verifiable tasks, low-price models offer overwhelming cost-performance.

    The curve inverts as task difficulty rises. Complex code refactoring and tracking down long-latent bugs often force weaker models into multiple rounds of trial and error, each consuming tokens, time, and engineer attention; if a stronger model passes on the first attempt, its total cost can be lower. A simplified rule of thumb:

    1. total cost ≈ unit price × tokens × retries + human waiting cost
    2. When retries > strong model unit price / weak model unit price, the weak model is no longer economical

    5. Practical Recommendations

    • Tiered routing: Classify requests by difficulty, send simple tasks to low-price tiers, and escalate complex tasks to higher-capability tiers, using rules or a lightweight classifier as a front-end gate.
    • Structured output + automated validation: Constrain output with a JSON Schema and validate with unit tests or assertions so that “pass/fail” is decidable and retries are meaningful.
    • Maximize cache reuse: Keep the system prompt stable, trim context, and summarize long documents before passing them in to raise hit rates significantly.
    • Build a dashboard: Track cost, latency, success rate, and cache hit rate per task in logging and monitoring/alerting, rather than looking only at the total bill.
    • Mix subscription and pay-as-you-go: Choose metered billing for light usage and consider subscriptions only for heavy, predictable workloads, avoiding payment for allowances you cannot use.

    6. Conclusion

    The token unit price is only an entry ticket, not the final bill. The real questions are three: how much does it cost and how long does it take to complete the same task, and can the result be used directly. Switching the unit of evaluation from “per million tokens” to “per acceptable task” makes the cost structure immediately clear; in general engineering practice on platforms such as Baidu AI Cloud, combining tiered routing, cache optimization, and observability dashboards is what turns model capability into a controllable return on investment.