Track LLM Spend Across Provider Price Changes

Version model rates and separate changes in usage from changes in price. Reconcile the result to provider billing without rewriting prior cost reports.

Track LLM spend across a provider price change by storing the rate version with each usage estimate. Compare old and new usage at the old rates to measure changes in consumption, then apply the new rates to the new usage to estimate the price effect. Reconcile the combined result to provider billing and keep prior published reports reproducible.

Select rates at the grain of the charge

Record the provider, model identifier, service tier, billing currency, usage unit and applicable rate interval. Use the interval during which the price applies under your account's terms. The date you found a price in a provider's docs and the date from which the provider bills it can differ. Record both where you know them. Keep the evidence used to select the effective date and flag an estimate if the effective date is unknown.

One model can have several charge categories. OpenAI publishes pricing for input, cached input and output on applicable models. Anthropic documents distinct token categories for prompt caching and cases where a long prompt or regional setting affects a rate. Preserve the units that the selected provider reports and map them to bill lines at a grain the billing data supports. OpenAI API pricing and Anthropic API pricing

Save the rate in a separate effective-dated table. Join an attempt to the rate at the time your provider recognizes usage. A job can be submitted before the cutover and complete afterward. Check how the provider assigns that charge before treating every job as priced on submission.

Compare prices and usage separately

Suppose customer A sends 100 million units in one period at a fictional rate of $2 per million. In the next period it sends 150 million at a changed rate of $1.50 per million. Assume these are comparable billable input units and that no other prices changed.

Calculation Amount
First period at original rate $200
Second period usage at original rate $300
Second period usage at new rate $225
Usage effect, at original rates +$100
Price effect, at second period volume -$75
Combined change +$25

Measured spend increased despite the lower rate. If your team investigates the resulting $25 change alone, it can miss the $100 increase attributable to usage at the old price. Sum the same calculation over matching charge categories. When a new model or tier has no old rate, report it separately as a change in mix or document a comparable baseline. Avoid selecting an invented old rate to force every charge into a price-versus-volume table.

Reconcile without replacing prior records

Match each provider billing line to the closest supported combination of billing window, account, model and category. Compare it with the total of estimates for that combination. Keep invoice adjustments and unresolved differences visible. A discrepancy can come from late usage, a discount, a wrong rate at a boundary or a missing category such as provisioned capacity. Correct the cause in the ledger. Save the previous result and a dated correction when a closed report changes.

If you calculate a future budget using the full month at the new rate, label that projection separately. A budget forecast can apply the new rate to earlier demand as a scenario. A historical report should preserve the rate applicable when the provider delivered the work.

Establish one test fixture at each side of a known rate boundary, including a usage bucket that spans the cutover. When a provider reports only aggregate usage for a bucket and both prices could apply, keep the split provisional until billing data settles it. Tell customer success which dashboard shows a near-real-time estimate and which report is appropriate for invoice reconciliation.

Use Alectura spend policies for request limits and customer-level cost tracking for application attribution. Keep billing adjustments and historical rate versions in your financial ledger.

This catch-up edition for 27 November was released on 30 November 2026.

Source documents (2)

Trace a request through Alectura.

Bring a sample prompt and a customer policy. See what reaches the model and which decisions appear in the request record.

Try the quickstart

Keep reading

Track realtime voice AI costs by customer ↗Isolate semantic LLM caches by tenant ↗Track LLM web search costs by customer ↗