Methodology
How cost is calculated
The whole product rests on one claim: every number is computed by code from the data, and nothing is invented. This page shows exactly how, so a finance reader can audit the method rather than trust it.
The stance
Deterministic by law, honest by design
Two rules govern this product and are not negotiable. First, deterministic code computes every number. Totals, variances, forecasts, and savings are produced by pure functions from the usage data; the AI receives already-computed figures and turns them into language, never the reverse. Second, the AI flags gaps rather than inventing causes. Where the data does not support a cause, it is marked "needs review" and excluded from recommendations.
These are enforced, not promised. A pure function decides what has enough supporting data to be acted on (control C1), and the memo route post-validates every dollar figure it returns against the numbers it was given (control C2). Those controls and the live memo land in a later release; the deterministic core they protect is what computes the dashboard you can see today.
One shape
The canonical usage schema
Every provider exports a different format, and exports usually give tokens, not dollars. The product's job is normalization: every source is mapped into one canonical usage event, and cost is derived from tokens. A canonical event carries its date, actor, team, workflow, provider, model, input and output (and cached) tokens, request count, value tier, approval status, environment, project, and a source label (real, provider-export, or synthetic) so data provenance is always honest on screen.
The formula
Cost derivation
Cost is re-derived for every row from the pricing table, even when an export already reports a dollar figure. Prices are quoted per one million tokens:
cost_usd = input_tokens / 1e6 x input_price_per_1m
+ output_tokens / 1e6 x output_price_per_1m
+ cached_input_tokens / 1e6 x cached_input_price_per_1mCached input is priced at the cached rate when a provider offers one, otherwise it falls back to the standard input rate so those tokens are never silently dropped.
The check
Reconciliation against provider-reported cost
When an export reports its own dollar cost, that figure is stored but never trusted as the source of truth. Instead the derived cost is compared against it and the delta is shown. A divergence beyond 1%is flagged for review, per model and in total. A clean reconciliation is itself the credibility signal: it shows the derivation matches the provider's own billing.
The prices
Pricing table, versioned by effective date
Each row carries an effective date. For any usage event, the latest price whose effective date is on or before the event date is used, so historical spend stays correctly priced when a vendor changes a price mid-stream. The table below shows a prior Opus row to make that versioning visible.
| Provider | Model | Input / 1M | Output / 1M | Cached / 1M | Effective |
|---|---|---|---|---|---|
| anthropic | claude-haiku-4-5 | $1.00 | $5.00 | $0.10 | 2026-01-01 |
| anthropic | claude-opus-4-8 | $15.00 | $75.00 | $1.50 | 2026-01-01 |
| anthropic | claude-opus-4-8 | $18.00 | $90.00 | $1.80 | 2025-06-01 |
| anthropic | claude-sonnet-4-6 | $3.00 | $15.00 | $0.30 | 2026-01-01 |
| gemini-2.5-flash | $0.30 | $1.20 | — | 2026-01-01 | |
| gemini-2.5-pro | $7.00 | $21.00 | — | 2026-01-01 | |
| openai | gpt-5 | $12.00 | $48.00 | — | 2026-01-01 |
| openai | gpt-5-mini | $0.60 | $2.40 | — | 2026-01-01 |
Values are illustrative public list prices maintained by hand and are not yet independently confirmed. They are the seed for the derivation, not a vendor quote.
The imports
What parses, and how owners are assigned
Two formats are supported today: the canonical CSV (the schema above, downloadable as a starting point) and the Anthropic Console usage export, the first real provider parser. The exact Anthropic export columns are being reconfirmed against the current console; the parser accepts the common column names and is a one-line change if the format shifts.
A provider export knows an API key, not who owns it. A visible, editable mapping turns each actor into a team, workflow, environment, project, and default value tier. An actor that matches no rule falls to "Unassigned" with no project, which is exactly the ownership gap finance needs surfaced, so it fires the missing-owner flag rather than being hidden.