Bill matching

Tie your AI bill to the customers behind it.

Each day, Lancelot lines your OpenAI and Anthropic bills up with the usage it tracked per customer, and explains every gap.

Lancelot bill matching showing Anthropic and OpenAI bills against tracked usage
1

check a day, at 04:45 UTC.

8

days re-read each time, because providers revise recent usage.

2%

of a day’s bill, or 50 cents, still counts as a match.

$5

and 5% of a settled week before Lancelot alerts you.

claude-sonnet-5-5Anthropic · Nov 18Example
Billed
$212.40
Tracked
$171.40
Not seen by the SDK+$41.00
UsuallyA script or batch job using the same API key outside your app.
claude-haiku-5-5Anthropic · Nov 20Example
Billed
$64.00
Tracked
$49.00
Token counts match within 3%
Priced differently+$15.00
UsuallyA pricing tier, a discount or a provider price change.
gpt-5.5OpenAI · Nov 21Example
Billed
$36.90
Tracked
$39.85
Tracked more than billed−$2.95
UsuallyTest traffic, duplicate events or calls billed to another account.

Your AI bill is one number. Finance wants to know who it belongs to.

96%

of this example bill tied to a customer.

Anthropic · November
$1,402.00
Example
Acme Co
$311.00
Northwind Labs
$156.00
Corvid Labs
$136.00
39 other customers
$743.00
Not tied to a customer
$56.00
For finance

Give finance a margin that ties out to the invoice.

Per-customer cost adds up to what you paid, so a finance lead can check it without digging through usage logs.

Matched share
How much of each invoice Lancelot ties to customers
Explained gaps
Each difference by model, day and kind
Margins
Per-customer cost that ties back to the bill

Paste an admin key. The first check runs that night.

01

Add a key.

An OpenAI or Anthropic admin key, stored encrypted and used only to read cost reports.

02

First check tonight.

Lancelot reads the provider’s own report and matches it day by day, model by model.

03

Disconnect anytime.

Remove the key and Lancelot deletes it, along with the bill data it read.

How the match works. Built for whoever closes the books.

The daily check

Schedule

Once a day at 04:45 UTC, through each provider’s usage and cost reports.

Window

The last 8 days, every time, because providers revise recent usage.

Model names

A dated model ID and its alias count as one model, so claude-sonnet-4-5-20250929 and claude-sonnet-4-5 never show as two gaps.

A match

A difference within 2% of that day’s bill for the model, or 50 cents, whichever is larger.

Non-model charges

Web search and code execution get their own line and never count as a gap.

OpenRouter calls

Left out, because OpenRouter bills them, not OpenAI or Anthropic.

Matched share

The share of the bill’s dollars tied to tracked usage over the last 30 days, for each provider.

Alerts

Settled week

The 7 days ending 2 days ago, since providers can take a day to finalize usage.

Threshold

Over $5 and over 5% of that week’s bill.

What it says

One paragraph per provider: billed, tracked, the matched share and the top three gaps.

Urgent

Gaps over $100.

Clears itself

The finding resolves once the gap closes.

For finance

AI cost reporting

Matched share and explained gaps let a finance lead check per-customer margins against the invoice, without exporting usage logs. It works before you have a FinOps team.

Connecting

Anthropic

An Admin API key from Claude Console, under Settings → Admin keys. It starts with sk-ant-admin. A regular API key won’t work, and Lancelot tells you so.

OpenAI

An Admin key from the OpenAI dashboard, under Organization → Admin keys. Project keys won’t work.

The key

Stored encrypted and used only to read usage and cost reports.

Key rejected

Lancelot stops checking and shows “Key rejected” in Settings until you reconnect.

Disconnect

Anytime, from Settings.

Questions about matching your AI bill

What does bill matching do?

It reads your OpenAI and Anthropic bills and compares them, day by day and model by model, with the AI usage Lancelot tracked per customer. You see what share of the bill is tied to customers, and a plain explanation for every gap.

The OpenAI usage dashboard shows what your organization spent by day and model, but it doesn’t know your customers. Lancelot lines that same data up with the calls it tracked per customer, so you see how much of the bill you can tie to a customer and why the rest differs.

OpenAI and Anthropic, through their own usage and cost reports. Google Gemini isn’t supported for bill matching yet. Usage from other providers that you send to Lancelot still counts in your margins, but it isn’t checked against a bill.

An Admin key from your Claude Console or OpenAI organization, because only admin keys can read usage and cost reports. Lancelot uses it only to read those reports. It’s stored encrypted, and you can disconnect it anytime.

A difference of 2% of a day’s bill for a model, or 50 cents, whichever is larger, counts as a match. Anything bigger is labeled as usage Lancelot didn’t see, a price difference, or more tracked than billed.

The provider billed tokens that Lancelot never saw. Usually a script, a batch job or another service is using the same API key outside your app. Wrapping those calls with the SDK closes the gap.

Once a day. Lancelot re-reads the last 8 days each time, because providers revise recent usage for up to a day, and alerts you about a settled week that ends 2 days ago.

No. Lancelot raises a gap only when the unexplained difference over the week is more than $5 and more than 5% of the bill. Gaps over $100 are marked urgent.

Yes. The matched share shows how much of each invoice Lancelot ties to customers, so a finance lead can check per-customer cost against what you paid without digging through usage logs.

It covers the part finance asks about first: whether AI cost ties out to the invoice, and which customers it belongs to. Lancelot also shows margin per customer and plan. It doesn’t manage cloud spend or reserved capacity.