AI Usage Accounting: Why Spend and Request Volume Cannot Be Inferred From Each Other

    Spend and request volume are different measures of AI usage. This article explains why a flat bill can coexist with a clear drop in calls, how price–volume decomposition separates scale, rate, and mix effects, and what logging, billing, and alerting practices keep the two series aligned and interpretable.

    1. An anomaly: spend barely moves while request volume falls

    One industry usage ranking produced this contrast. The foundation-model board listed 50 entries with a weekly application value of $73.25 million, down only 0.5% week over week. On the same table, the AI Agents board listed 110 entries at $29.08 million, down 3.5%. An enterprise-valuation board covering 44 companies totaled $12.72 trillion and was unchanged. Site-wide, request volume was 5.048 billion calls, down nearly six percentage points.

    Spend was almost flat while call counts fell clearly. Put side by side, those two statements look contradictory. They are not. They are two different rulers, with different units, zeros, and ranges, and they cannot be inferred from each other.

    A ranking only records numbers. It does not explain them. Engineers have to supply the explanation.

    2. Breaking down the two metrics

    The first ruler is request volume: the unit is a call, and it counts how often an invocation happens. The second is spend: the unit is money, and it records the billed result. They are linked by a product:

    1. Spend = Σ ( usage of each billable item × its unit price )

    This is not “call count × unit price.” It is the sum of tiered usage times tiered prices. Compressing it to “count times price” holds only when the mix is completely unchanged. In practice, at least five differences in definition pull the two rulers apart:

    1. Billing dimensions differ. Most general-purpose large models meter tokens, with separate prices for input and output. One request may consume anywhere from tens of tokens to hundreds of thousands. There is no fixed ratio between request count and token count.
    2. A blended unit price is a statistic, not an attribute. Total spend divided by total calls yields an “average price” that drifts with request mix. A higher share of long context or reasoning-enhanced tiers pushes the average up. A higher share of lightweight tiers and cache hits pushes it down.
    3. Discounts and caching exist. Cached input is usually billed at a lower rate. Batch processing and tiered pricing also change the effective price. Those effects hit the money side and do not change the call count.
    4. Windows and deduplication rules differ. Request volume is often counted from gateway logs and may include failures and retries. Spend is aggregated from settlement bills, and failed requests are usually not billed. When the two sides use different rules, their ratio is distorted by construction.
    5. Samples and error. Spend columns on rankings are often labeled as ranges (for example, ±3.8% to 72.3%), which means the estimate itself is uncertain. Subtracting a precise count from a figure with a 70% error band mostly produces noise, not a contradiction.

    The conclusion is direct: if spend falls less than call volume, some variable is pulling the total back up. In this period that variable is price and mix, not a rebound in demand.

    3. Price–volume decomposition: attribute the gap to actionable causes

    To see what is pulling the total back, do not look only at aggregates. Use a price–volume decomposition. Let period 0 be the base and period 1 the report period, and split by tier i:

    1. ΔAmount = Σ (q1_i − q0_i) · p0_i # volume effect: mix fixed, pure scale change
    2. + Σ q0_i · (p1_i − p0_i) # price effect: scale fixed, pure rate change
    3. + Σ (q1_i − q0_i) · (p1_i − p0_i) # interaction: volume and price change together

    In engineering terms, you need a usage table that is detailed enough and a versioned price list:

    1. from dataclasses import dataclass
    2. from decimal import Decimal
    3. @dataclass
    4. class UsageRecord:
    5. request_id: str
    6. ts: float
    7. tier: str # tier: lightweight / standard / reasoning-enhanced
    8. prompt_tokens: int
    9. completion_tokens: int
    10. cached_tokens: int # cached input tokens
    11. retries: int # for metric alignment; not included in settlement
    12. amount: Decimal # billed amount; authoritative figure
    13. def decompose(base: list[UsageRecord], curr: list[UsageRecord],
    14. price: dict[str, Decimal]) -> dict[str, Decimal]:
    15. def agg(rows):
    16. out = {}
    17. for r in rows:
    18. k = r.tier
    19. q, a = out.get(k, (0, Decimal(0)))
    20. out[k] = (q + 1, a + r.amount)
    21. return out
    22. b, c = agg(base), agg(curr)
    23. vol = prc = inter = Decimal(0)
    24. for k in set(b) | set(c):
    25. q0, _ = b.get(k, (0, Decimal(0)))
    26. q1, _ = c.get(k, (0, Decimal(0)))
    27. p0 = price[k] if q0 else Decimal(0)
    28. p1 = price[k] if q1 else Decimal(0)
    29. vol += Decimal(q1 - q0) * p0
    30. prc += Decimal(q0) * (p1 - p0)
    31. inter += Decimal(q1 - q0) * (p1 - p0)
    32. return {"volume": vol, "price": prc, "interaction": inter}

    The value of this code is not the algorithm. It turns “why did the total not fall” into three numbers you can check. If the price term is positive and similar in magnitude to a negative volume term, a higher unit price offset a smaller scale. If the interaction term is large, mix shift is changing volume and price at the same time, and any single year-over-year or week-over-week indicator is unreliable.

    Tiers, cache hits, and stepped rates here are common industry billing patterns. Actual rates must come from the settlement bill of the platform you use. Do not reverse-engineer a bill from estimates.

    4. A data foundation so both rulers share a source and can be aligned

    For the decomposition to be trustworthy, collection has to unify definitions first. A minimal architecture that is enough:

    • One entry point. Route all model calls through a gateway or proxy you control. Generate a globally unique request_id at the gateway and use it as the join key on both sides.
    • Store detail. Write call detail into a message queue, then have consumers batch-load a data warehouse. Archive raw logs in object storage so they can be traced later.
    • Authoritative spend. Take money only from settlement bills. Reconcile through log services or scheduled jobs, and check coverage against gateway detail by request_id.
    • Version the price list. Give the price list an effective timestamp. Recalculate historical bills with the version that was in force then. Do not explain old bills with new prices.
    • Monitor and alert. Set thresholds separately for spend change, call-count change, blended unit price, cache-hit rate, and failure rate. Do not alert only on the total.

    Fix the reconciliation rule in one sentence: call counts use successful gateway counts; spend uses the bill; the gap between them is reported on its own and is not mixed into period-over-period comparisons.

    5. Ranking traps on multi-dimensional boards

    Two details on the original board are worth copying in engineering practice. First, the composite score shows “amount ± error,” and click-to-sort uses the lower bound score_low. The sort order therefore differs from the application-value column. That is the right way to handle uncertainty: rank by a confidence lower bound so overestimates do not win. Second, the four rows marked with a price-change badge were all outside the top ten, which means price movement was labeled separately and not blended into the scale metric.

    Mapped to practice:

    • Capacity planning should look at call counts and tokens. Budgets should look at spend. Unit economics should look at cost per thousand requests. The three cannot be inferred from one another.
    • For any estimate that has a range, ranking and alerts should use the lower bound. Decisions based on a point estimate systematically amplify noise.
    • Structural changes—a new tier going live, a cache-policy change—must be tagged. Otherwise period-over-period curves show steps that cannot be explained.

    6. Implementation checklist

    1. Use one request_id and join gateway detail to settlement bills.
    2. Version the price list so history can be recalculated.
    3. Run a price–volume decomposition daily and emit volume, price, and interaction.
    4. Put blended unit price and cache-hit rate on the monitors. When something looks wrong, check mix before you check the unit price.
    5. Rank and alert on the lower bound for any metric that carries an error range.
    6. State the metric definitions in external reports so “calls fell, money did not” is not misread as a data error.

    7. Summary

    Spend and request volume are two rulers. Their units, definitions, and error are different. Any attempt to infer spend from call counts fails once the mix changes. The right path is to unify collection, treat the bill as the authority for money, decompose by tier into price and volume, and rank uncertain quantities by their lower bound. Do those four things, and an apparent contradiction on a leaderboard becomes a usage and cost report that can be explained, reproduced, and acted on.