Invoice check “Can I trust this number?”

Checked against the invoice,
every day.

Connect provider billing once. Every day is checked against the invoice, and a gap over 2% is flagged.

Free up to 1M events a month. No card.

The check

Matched,
or flagged.

Each day of metered spend is set against what the provider billed.

Analytics, Bill, by providerAnalytics, Bill, by provider
Analytics, Bill, by providerDemo data
ConfirmedMatches the invoice.
FlaggedMore than 2% apart.
InferredAn estimate until the invoice lands.
AI bill docs →
In the app

The bill, the check
and who changed what.

Billed and tracked spend on one page, each source on its own line, with each provider's invoice check beside it.

How it gets hereProvider usageCloud billingAny other billDemo data
Where the bill comes from

Each provider,
counted once.

Its invoice, else its account report, else its metered estimate. A provider is never counted from two sources for the same day.

Checked against metered spend

Provider invoice.

OpenAI and Anthropic cost reports, read with an Admin key. Google through the Cloud Billing export in BigQuery. AWS Bedrock through Cost Explorer. Azure OpenAI through Cost Management.

Counted, not checked

Account report.

OpenRouter, xAI, Vercel AI Gateway and Fireworks report spend in US dollars, and it counts toward the total. An account report is not an invoice, so it is not reconciled.

Counted, not checked

A bill by CSV.

Any provider. Imported rows count as that provider's invoice. They are not reconciled against metered spend.

The other side of the check

Metered estimate.

Every provider you send usage for: the tokens TokenSpend saw, priced at your model rates, private rates included.

Kept apart. Billing data from providers is stored apart from the usage TokenSpend meters. The two are never merged. The credential you connect is checked with the provider and stored encrypted.
The rule

Two percent,
day by day.

01Once a day, per provider.

Every day at 07:00 UTC, metered spend is compared with the invoice lines from connected providers, per provider and day.

02Drift is the invoice minus metered spend.

A day is within tolerance when the drift is at most 2% of the invoice.

03Only settled days.

A day is compared after the provider's settlement delay: 1 day for OpenAI, 3 days for other providers.

MatchedEvery reconciled day in the range is within 2%.
Drift detectedInvoice lines exist, and at least one day differs by more than 2%.
Not reconciled yetInvoice lines are imported, but no day in the range has been compared yet.
Uploaded, not reconciledThe invoice lines come from a CSV upload. They count as the invoice but are never reconciled.
Not billed yetMetered spend falls on days the invoice doesn't cover yet.
Awaiting invoiceNo invoice lines are imported for this provider in the range.
Not comparableThere is no invoice, only an account report.
On a negotiated contract? To make metered spend match it, add a private rate. It replaces the public list price for your workspace.
What to expect

What the check
does not cover.

Three things to know before you read the number.

The newest days.

Providers take a few days to settle their figures, so the newest days can lag. The first sync imports the last 7 days. Older history, up to 90 days, follows in the background.

Spend that is not money.

The API-equivalent value of subscription use is left out of the total. It is not money spent.

Reports with no dollar amount.

Mistral and DeepInfra send reports with no US dollar amount. Those are kept but never added to a total.

FAQ

The invoice check,
in short.

Each provider's connection is covered step by step in the docs.

AI bill docs →
01How do I know a number is real?

Every figure says where it came from. Metered cost is set against what the provider bills, day by day. A day that agrees is confirmed, a day beyond the tolerance is flagged, and anything inferred is marked Inferred until the invoice lands.

02Do you hold my provider keys?

Not with the SDK: your keys stay in your app. For the invoice check you connect a billing source, such as a read-only provider admin key, AWS Cost Explorer, Azure Cost Management or a BigQuery billing export.

03What if my provider has no billing connection?

Any other bill comes in by CSV. Imported rows count as that provider's invoice in the total, but they are not reconciled against metered spend.

04How often is billing data read?

About once an hour. Google, Bedrock, Azure OpenAI, Mistral and DeepInfra sync once a day. The check itself runs once a day.

Know who spent it
this week.

Free up to 1M events a month. No card.