Three sources of the same money
Metered calls know who spent the money. Provider reports and bills know what was billed. TensorCost uses both.
Counted once
The diagram shows the one path every figure takes. Budgets and limits read the count at the metered price; Spend, Customers and Ask can read it against a settled bill instead, as the next section explains. TensorCost counts the smallest total every record agrees with:- Within one provider account and one model, the most authoritative finished record wins, hour by hour: a Cost and Usage Report or cost export over a usage report, a usage report over invocation logs, logs over metrics.
- Metered calls that a provider record covers count as the larger of the two, so the record never hides calls and the calls never count on top of the record.
- Calls no record covers yet count in full.
- An account never counts less than its bill.
Claude Sonnet 4.5 on a bill and claude-sonnet-4-5 from the API are the same model.
Every page that shows AI spend uses this one rule, so a call counts the same way in Spend, in Customers, on your budgets and in Ask.
When the provider billed less
Sometimes a provider bills less than TensorCost metered: a discount, a credit or a negotiated rate. Spend views then show what you were billed, and each call’s share is scaled down to it, so the discount reaches every team and customer behind those calls. TensorCost only does this when it knows the bill is complete:- the day ended at least two days ago (three for Azure, whose export restates recent days);
- the provider’s records for that day are its own final prices;
- every call that day names the account it was billed to, and falls in hours the provider’s records for that account cover.
The SDK and the proxy read the billing account from each provider response (for example the organization id Anthropic and OpenAI return), so calls made through SDK 1.7 or later, or through the proxy, can carry their discount. Calls without it keep the metered price.