LLM API Usage Daily Report: A Technical Guide to Metrics, Attribution, and Cost Governance
This article explains how to read a large language model API usage daily report so that every number can be reproduced. It covers why metric definitions must come before figures, how to decompose the top-10 ranking into spend, share, and request volume, and how to turn the report into a four-layer cost governance loop spanning collection, aggregation, alerting, and optimization. It also lists common pitfalls and a five-item checklist for making the report engineering-ready.
1. Why Definitions Come Before Numbers
The value of a solid API usage daily report is not a list of gains and losses, but the ability to reproduce every figure. The source report opens with three tables: a foundation model ranking (50 entries, $73.25M in weekly applied value, a composite score expressed as an amount with an error band, −0.5% week over week), an AI agent ranking (110 entries, $29.08M in weekly applied value, an unadjusted weighted 100-point scale, −3.5% week over week), and an enterprise valuation ranking (44 companies, $12.72T combined, unchanged this period).
Placed side by side, the easiest misreading is “one barely moved, the other fell 3.5%.” Return to the definitions and the picture changes: the −0.5% on the foundation model ranking falls inside a ±3.8%~72.3% error band and is noise, while the −3.5% on the agent ranking is a real decline on the weighted 100-point scale. The conclusion is clear: two percentages in the same table cannot be compared directly if they are produced by different statistical methods. This is the first engineering discipline of any usage dashboard.
2. Structural Signals in the Top 10: Spend, Share, and Request Volume
In the top 10, the two leading models together hold about 29% share, yet their week-over-week changes are −24.4% and −33.5%. At the same time, a model priced at just $0.18 per million tokens reached 1.56B requests, up 17.2% week over week, with 6.5% share. Another model in the $16 tier is up 19.2%, and a newly entered model is up 127.5% (error ±26.0%, a high-uncertainty range).
Put these rows together and a general rule emerges:
- Spend = requests × average token volume × unit price. A drop in spend can come from any factor, so spend alone cannot locate the cause.
- The denominator of share keeps moving. Falling spend at the top combined with rising request volume at low prices pushes leading share down at the same time, creating an illusion of a “double decline.”
- High-error rows should not drive decisions. An entry with ±40.0% error is extremely sensitive to the sort key (the lower bound score_low), so it is suitable for observation only, not conclusions.
A schematic attribution logic can be written as:
def attribute(delta_amount, delta_req, delta_price, delta_tokens):# Split the spend change across three factors to tell volume problems from price problemsreturn {"volume_effect": delta_req * delta_price * delta_tokens,"price_effect": delta_req * delta_tokens * delta_price,"token_effect": delta_req * delta_price * delta_tokens,}
3. Turning the Daily Report into an Actionable Cost Governance Loop
The endpoint of a daily report is action, not reading. A four-layer rollout is recommended:
- Collection layer: unify instrumentation to record model identifier, input/output tokens, call latency, and retry count, so definitions stay reproducible.
- Aggregation layer: aggregate daily by “model × business line × environment,” keeping raw detail for traceability.
- Alerting layer: trigger review for entries whose week-over-week change exceeds a threshold, while lowering alert weight for high-error entries to avoid noise flooding.
- Optimization layer: route tasks into three classes — degradable, cacheable, batchable — migrate high-unit-price calls to lower-price tiers, and cut repeated tokens with caching and batching.
On Baidu AI Cloud, this loop maps directly onto a combination of general capabilities: a log service handles detail collection, a message queue handles peak shaving and asynchronous aggregation, a container platform runs aggregation and attribution jobs, monitoring and alerting handle threshold notifications, and object storage archives long-cycle detail.
4. Common Pitfalls and a Checklist
- Pitfall 1: using spend ranking as a proxy for capability evaluation. High spend only means heavy usage, not good results.
- Pitfall 2: ignoring the error band. For rows with error beyond ±25%, the direction of the week-over-week change is itself unstable.
- Pitfall 3: comparing across definitions. The weighted 100-point scale and the amount-based scale cannot be mixed.
- Pitfall 4: looking only at week over week. A four-week moving average should be read alongside it to filter single-week jitter.
Checklist: are definitions clearly stated, is error annotated, is the sort key public, is detail traceable, does every optimization action have an owner. Complete these five items and the daily report genuinely carries engineering value.
