LLM Token Cost: Why Low Per-Token Pricing Doesn't Mean Low Total Cost, and How to Choose Models
This article breaks down the real economics of LLM token costs beyond headline per-token pricing. It compares pay-as-you-go API pricing with subscription plans, shows how prompt caching can dramatically cut spending, and explains why task success rate and effective cost matter more than unit price. You will find a practical model selection framework based on task tiers, real-world load testing, caching-friendly prompt design, and gateway-based routing.
1. The Misread “Cheap”: Low Unit Price Is Not Low Total Cost
When people discuss LLM costs, the most commonly cited metric is “dollars per million tokens.” It is easy to obtain and convenient for side-by-side comparison, but it describes only one variable in the billing formula. A real bill can be abstracted as:
Total cost = (input tokens + output tokens + cached tokens × discount factor) × unit price+ extra consumption from retries+ time cost of human review and rework
Unit price is only one term. When the calling pattern, caching strategy, and task difficulty change, a model with a unit price 3x lower can easily end up with a higher final bill than a model with a unit price 3x higher. Equating “cheap” with “low unit price” is the most common cognitive bias in cost evaluation.
2. API Pricing vs. Subscription Plans: Two Different Economic Models
Public APIs use pay-as-you-go billing. The unit price of leading domestic Chinese models is typically only 30% to 60% of comparable overseas flagship models, and lightweight models can drop to single-digit percentages of overseas mid-tier models. At this layer alone, the cost-performance advantage of domestic models is obvious.
Switch the perspective to subscription plans for individuals and teams, however, and the conclusion nearly reverses. A subscription is essentially “prepaid quota + effective unit price”; you must divide the monthly fee by the actually usable quota to get a comparable number. Based on publicly reported measurements, the cost per 100 million tokens for mainstream overseas AI coding subscriptions is roughly RMB 12–14, while most domestic subscriptions land between RMB 25–100 after conversion, with only a few lightweight tiers dropping below RMB 10.
The root of the difference is not technology but business structure:
- Overseas vendors have large-scale funding behind them and are willing to subsidize heavy developers with low-priced subscriptions, while betting that most users will not exhaust their quota and actual consumption may be less than 10% of the cap;
- Domestic vendors face greater pressure on compute procurement and payback, and prefer to compete for enterprise call volume with low-priced APIs, leaving less room for equally strong subsidies on the subscription side.
The conclusion is clear: pay-as-you-go suits online workloads with predictable call volume, while subscriptions can only be amortized in heavy interactive scenarios. Before choosing, you must run a conversion based on your real usage.
3. Caching: A Seriously Underrated Cost Lever
Measured data shows that cache hit rates in mainstream AI coding and conversational scenarios commonly exceed 90%, with some flagship tiers reaching 97%. The cached portion is usually billed at only a small fraction of the original price, which means actual cost is extremely sensitive to whether the context stays stable.
Actionable engineering optimizations include:
- Keep fixed content such as system prompts, tool definitions, and code conventions at the front and unchanged, avoiding a shifting prefix on every request;
- Place variable content (user input, retrieved snippets, timestamps) at the end to prevent prefix invalidation from voiding the entire cache;
- Control context length by splitting and summarizing long documents first to reduce repeated transmission;
- Treat “cache hit rate” as a first-class metric in monitoring, observed alongside latency and error rate.
A stable prefix often yields a bigger hit-rate gain than the unit-price savings from switching models.
4. Task Success Rate: Making Total Cost Comparable
The same batch of models performing the same financial-report extraction task across 60 tests showed that 9 models reached 100% accuracy, 6 of them domestic models; the per-task cost of lightweight models can be as low as RMB 0.25, less than 3% of the most expensive tier.
This leads to a key inference: on structured tasks with clear boundaries, lightweight models are nearly unbeatable on cost-performance; but on high-difficulty tasks such as complex code refactoring or long-standing bugs, weaker models need repeated trial and error, and cumulative consumption plus human intervention costs quickly overtake. A stronger model that gets it right the first time can actually have a lower total cost.
It is therefore advisable to introduce an “effective cost” metric:
Effective cost = cost per call ÷ first-pass rate
A model with a low first-pass rate can have an effective cost several times higher even with an extremely low unit price.
5. A Practical Selection Method
- Establish task tiers: split the business into extraction, classification, generation, and complex reasoning, and bind each to models at different price points;
- Run small-scale load tests with real samples, recording call volume, cache hit rate, first-pass rate, and human rework time;
- Make decisions based on effective cost rather than unit price, and write the results into a cost dashboard;
- Design a stable prompt structure for high-frequency fixed prefixes to continuously raise the cache hit rate;
- Use a unified gateway layer for routing and fallback to avoid tight coupling with a single billing model, making it easy to switch at any time.
To support the above capabilities, you can rely on general cloud product capabilities such as the model services, container platform, message queue, logging service, and monitoring and alerting offered by Baidu AI Cloud to build an observable, canary-capable, rollback-ready cost governance pipeline.
6. Conclusion
What should really be compared is never “dollars per million tokens,” but how much money and time it takes to accomplish the same thing, and whether the result can be used directly. Once unit price, caching, success rate, and human cost are placed into the same formula, the merits of domestic versus overseas models stop being a vague conclusion and become a ledger that can be filled in item by item according to business scenarios.
