Align the comparison scope
Use the same space, Agent, model, time range, and set of records. A Session may contain multiple traces, and a Trace may contain multiple model requests. A dashboard total and one model node measure different scopes. Token counts are also different from cost. Even when a data source supplies monetary amounts, cache pricing, provider billing rules, and collection completeness affect comparisons. Use the provider’s bill for actual charges.Read the known subtotal and reporting coverage
The native Trace list and detail summary use the same usage accounting. Read the completeness message beside the number:
Model calls include generations and embeddings, with each call counted once. If a call has no reported total but its normalized input and output are both complete, their sum can establish a known total. Input, output, and total completeness are assessed separately: a known total can still have an unknown input or output breakdown.
The detail image below uses a separate example: two of three model calls sum to 120 tokens and the remaining call has unknown usage. Both list and detail retain the 120 subtotal, 2 / 3 coverage, and unknown full total. Find the model node with missing usage and check its source fields and collection configuration before comparing a dashboard or bill.
Detail summary with a known subtotal and 2 / 3 reporting coverage · demonstration data · click to enlarge
Does input already include cache?
For Codex, cached tokens are a subset of input; reasoning tokens are a subset of output. Do not add them again. Cache hit rate divides cached input by total input; do not infer a rate when the denominator is zero.
Other Agents and framework integrations can use different fields. Check the current metric tooltip and the model node’s raw usage before reusing a formula just because a field is named
input_tokens.
Check a worked example
This hypothetical Claude Code request illustrates the field relationships:
A dashboard can show 5,000 new input tokens while normalized input is 50,000. First verify that the record actually contains these four components. Adding cache to 50,000 again would double-count it.
Click a diagram to open the full-size SVG.
Check one of your own records
Start with a completed Trace containing a model call:- Open Agent traces → Trace, confirm the space, Agent, source, and time range, then open Chain in the details.
- Select one model call. In native details, expand Attributes on the right and switch to JSON. In Langfuse details, inspect the usage badge and Metadata. Record the input, output, cache, and total fields actually present, with the Trace and node IDs.
- Check whether fields are normalized and input already includes cache; do not apply a dashboard formula just because node fields have similar names. Calculate only with complete, defined buckets, and do not add cache to input that already includes it. For one model call, prefer its reported total; do not replace it with a sum of incomplete input or output buckets. For the whole Trace, also check reporting coverage and overlap warnings.
- Return to Data dashboard, record the total and request count for the same interval, and check for other requests before explaining a difference.
Explain differences between views
Use the dashboard to locate the time and model, then inspect raw usage in a model node of a Trace. Record both comparison scopes and field names, rather than just two totals.

