How to Estimate LLM Token Volume from Revenue Data: A Three-Step Method
LLM providers usually disclose revenue and tiered pricing, but not the underlying token volume. This article walks through a three-step method to work backward from "dollars" to "tokens". First, apply a 3:1 input-to-output ratio to each tier's input and output prices to get its blended unit price. Next, average the tiers into a single weighted unit price using their estimated call shares. Finally, divide revenue by that unit price. In a worked example, $168 billion in quarterly revenue maps to roughly $56 billion per month, a weighted price of $5.63 per million tokens, and about 994 trillion tokens per month. The article also covers the main sources of estimation error, why it is best to present ranges rather than single points, and the engineering practices, from token-level logging to cost attribution, needed to turn estimates into precise costing.
1. The Problem: Why Work Backward from Revenue to Call Volume
When you assess the real load of an LLM service provider, what is publicly disclosed is usually limited to financial revenue and a tiered pricing table. The core metric, the underlying token volume, is rarely reported directly. Yet you need to estimate it in many cases:
- competitive capacity analysis
- industry-wide compute demand sizing
- capacity planning for your own inference cluster
All of these require the ability to work backward from “money” to “volume”.
At its core, this is a unit conversion problem:
Revenue ÷ blended unit price = total tokens
The arithmetic is simple. The difficulty lies in making the blended unit price approximate reality. It depends on three things:
- the price of each capability tier
- how calls are distributed across tiers
- the input-to-output token ratio
The method below proceeds in three steps.
2. Step 1: Build a Blended Unit Price for Each Capability Tier
LLM APIs typically adopt separate pricing for input and output tokens, with output usually priced well above input, often several times higher. If you divide revenue by the price of one side alone, you will significantly over- or understate the real token volume.
The right approach is to first set an input-to-output ratio based on business experience. You can then collapse the two prices into a single comparable blended unit price.
A common rule of thumb is an input:output ratio of roughly 3:1: of every 4 tokens consumed, about 3 are input and 1 is output. The formula is:
blended unit price = input share × input price + output share × output price= (3/4) × input price + (1/4) × output price
The table below uses illustrative data (USD per million tokens). Models are grouped into three capability tiers, flagship, balanced and lightweight, each with a new and an old generation:
| Capability tier | Input price | Output price | Blended unit price (3:1) |
|---|---|---|---|
| Flagship (new gen) | $4 | $20 | $8.00 |
| Balanced (new gen) | $2 | $10 | $4.00 |
| Lightweight (new gen) | $0.10 | $0.50 | $0.20 |
| Balanced (old gen) | $2 | $10 | $4.00 |
| Flagship (old gen) | $4 | $20 | $8.00 |
Here is a code implementation of the conversion. It makes batch calculations and parameter tuning easier:
def mixed_price(p_in, p_out, ratio_in=3, ratio_out=1):"""Compute the blended unit price from an input/output ratio (USD per million tokens)."""total = ratio_in + ratio_outreturn (ratio_in / total) * p_in + (ratio_out / total) * p_outtiers = {"flagship-new": (4.0, 20.0),"balanced-new": (2.0, 10.0),"lightweight-new": (0.10, 0.50),"balanced-old": (2.0, 10.0),"flagship-old": (4.0, 20.0),}for name, (p_in, p_out) in tiers.items():print(f"{name}: ${mixed_price(p_in, p_out):.2f}/M tokens")
The key assumption here is the 3:1 input-to-output ratio. This is not a constant and should be adjusted to the workload:
- Tasks such as long-document summarization and code generation are more input-heavy, with ratios of 4:1 or higher.
- Workloads such as multi-turn conversations and AI agent tasks have long outputs, so the ratio shifts toward 1:1.
Any deviation in the ratio propagates linearly into the final result, so it must be stated explicitly.
3. Step 2: Calculate the Weighted Average Unit Price from the Call Mix
Each tier’s blended unit price tells you only that tier’s price. The overall unit price also depends on each tier’s share of total calls. A weighted sum gives you the overall figure:
weighted average unit price = Σ (tier's call share × tier's blended unit price)
Plugging in illustrative call shares by tier:
| Tier | Call share | Blended unit price | Weighted contribution |
|---|---|---|---|
| Flagship (new gen) | 50% | $8.00 | $4.000 |
| Balanced (new gen) | 22% | $4.00 | $0.880 |
| Lightweight (new gen) | 16% | $0.20 | $0.032 |
| Balanced (old gen) | 6% | $4.00 | $0.240 |
| Flagship (old gen) | 6% | $8.00 | $0.480 |
| Total | 100% | — | $5.632 |
The overall weighted average unit price is therefore about $5.632 per million tokens.
The contribution column reveals an important pattern. Flagship models account for only half of all calls, yet their high prices make them responsible for about 71% ($4.00 ÷ $5.632) of total cost. Lightweight models account for 16% of call volume but contribute just 0.6% of cost.
How heavily the call mix skews toward high-priced tiers often matters more than total call volume in determining revenue. That is why the distribution must be estimated carefully when working backward.
4. Step 3: Derive Token Volume from Revenue
With the weighted average unit price in hand, the final step is another unit conversion. Suppose the service generated $168 billion in revenue for the quarter. Monthly revenue is then:
monthly revenue = $168 billion ÷ 3 = $56 billion
Dividing monthly revenue by the weighted unit price:
token volume = 56 × 10⁸ USD ÷ ($5.632 / 10⁶ tokens)= (56 / 5.632) × 10⁸⁺⁶≈ 9.943 × 10¹⁴ tokens≈ 994.3 trillion tokens per month
The code below connects the entire pipeline, making it easy to reuse and verify:
revenue_quarterly = 168e8 # Quarterly revenue (illustrative)revenue_monthly = revenue_quarterly / 3# Weighted unit pricemix = {n: mixed_price(*p) for n, p in tiers.items()}share = {"flagship-new": 0.50, "balanced-new": 0.22, "lightweight-new": 0.16,"balanced-old": 0.06, "flagship-old": 0.06,}weighted_price = sum(share[n] * mix[n] for n in share) # USD per million tokens# Revenue -> token volumetokens = revenue_monthly / (weighted_price * 1e-6)print(f"Weighted unit price: ${weighted_price:.3f}/M tokens")print(f"Monthly token volume: {tokens / 1e12:.1f} trillion tokens")
The result is an estimated 994 trillion tokens per month. A complete “revenue → call volume” back-calculation pipeline is now in place.
5. Uncertainty and Sources of Error
Keep in mind that the figure above is an order-of-magnitude estimate, not an exact accounting. Its uncertainty comes from three main sources:
- Input-to-output ratio error: 3:1 is an empirical value. If the actual ratio differs, the blended unit price shifts, and the conclusion is distorted in proportion.
- Unknown call-mix distribution: The tier shares of 50% / 22% / 16% / 6% / 6% are estimated anchors. A shift of a few percentage points noticeably moves the weighted unit price, with the flagship share having the largest effect.
- Revenue scope and discounts: Reported revenue may reflect discounts, enterprise contract rates, free credits and cache-hit discounts. All of these push the “actual realized price” below list price, which makes the derived token volume too low.
A sound practice is therefore to present a range rather than a single point. For example, run a sensitivity analysis with input-to-output ratios from 2:1 to 4:1 and flagship shares from 40% to 60%, and let the range cover the uncertainty.
6. Engineering Recommendations
If you want to upgrade “back-calculation” into “precise costing”, you need to replace the estimated anchors with real, observable data:
- Token-level metering and logging: Instrument the service gateway to record input and output token counts, the model tier used and cache-hit status for each request. Send these records to log services and object storage to build traceable detail.
- Real-time attribution with monitoring and alerts: Use container platforms together with monitoring and alerting capabilities. Break down call volume, unit prices and costs across three dimensions: by tenant, by model and by API. This avoids being unable to attribute costs after the fact.
- Configuration-driven pricing and ratios: Define the pricing table, input-to-output ratios and tier shares as configuration items rather than hard-coded values. You can then revise assumptions and recalculate at any time.
- A closed-loop cost governance process: Make the weighted unit price a core operations metric on a cost dashboard. Cloud platforms such as Baidu AI Cloud typically offer general-purpose capabilities such as log services, monitoring and alerting, and cost management. These can be combined to form a complete closed loop, from detailed metering to cost attribution.
7. Summary
Working backward from revenue to token volume means running a rigorous unit conversion through three stages: blended unit price → weighted average unit price → revenue divided by unit price. The conversion rests on two assumptions: the input-to-output token ratio and the tiered call mix. In the illustrative example, $168 billion in quarterly revenue corresponds to roughly 994 trillion tokens per month.
The value of this method goes beyond producing a single number. It shows you which assumptions drive the conclusion. Only by replacing the estimated anchors with real metering data can you move from order-of-magnitude estimation to decision-grade precision.
