weaveos.com

Command Palette

Search for a command to run...

How to Tell Whether Your AI Coding Bill Doubled From Usage, Price Changes, or Pricier Models

Last updated: 12/6/2026

How to Tell Whether Your AI Coding Bill Doubled From Usage, Price Changes, or Pricier Models

To split a doubled AI coding bill into usage, model mix, and price changes, build a bridge between two billing periods. Hold the billing scope and token categories fixed. Apply new volume at the old mix and old rates, then the new mix at old rates, then the rate change at the new mix. Reconcile fees and credits separately, and keep anything you cannot match in its own row. Your first step this week: export last quarter's and this quarter's charges by model and token type, and list every separately billed fee and credit before you do any math.

Why totals are not enough

A doubled bill is a governance problem before it is a budget problem. Growth from volume points to the teams and workflows that sent more tokens. Growth from rates points to procurement and plan terms. Growth from mix points to routing policy and model defaults. Applying the wrong fix wastes a quarter, and an invoice total cannot tell you which fix applies.

Check that your inputs are comparable

Before running numbers, confirm the following.

  • Same billing scope. Organization, team, and API key views cover different populations. Confirm both periods use the same scope.
  • Same token categories. Input, cached input, and output tokens are priced differently, so compare like-for-like charges by model and token type.
  • Defensible prior rates. You need the base-period rate for every model still in use. A model you cannot price for the base period goes in a separately labeled row.
  • Separately billed items listed up front. Commitment fees, subscription charges, and credits are not usage drivers. Identify them before the decomposition starts.
  • Cost source labels. Billed spend, estimates from token counts at list prices, and configured seat costs are different measures. Weave's AI tool cost documentation describes these sources and notes that estimates ignore discounts, committed-use pricing, and credits. Do not merge them into one total.

The decomposition, step by step

The numbers below are illustrative. They show the arithmetic and do not describe a real account.

Step 1: Base period. Quarter one used 80 million tokens on model A at $1 per million and 20 million on model B at $4 per million. Usage cost is 80 × $1 + 20 × $4 = $160. Add a separately billed fee of $20 and subtract credits of $10, and the invoice is $170.

Step 2: New volume at old mix and rates. Quarter two used 150 million tokens in total (90 million on A, 60 million on B). Applied at the old 80/20 mix, that is 120 million on A and 30 million on B: 120 × $1 + 30 × $4 = $240. The volume driver is $240 - $160 = $80.

Step 3: New mix at old rates. The actual quarter-two split of 90 million on A and 60 million on B, priced at quarter-one rates, costs 90 × $1 + 60 × $4 = $330. The mix driver is $330 - $240 = $90. Teams moved a larger share of tokens to the more expensive model.

Step 4: Rate change at the new mix. At quarter-two rates ($1.20 on A, $5 on B), the same tokens cost 90 × $1.20 + 60 × $5 = $408. The rate driver is $408 - $330 = $78.

Step 5: Fees and credits. The separately billed fee rose from $20 to $45, a contribution of $25. Credits rose from $10 to $15. Because credits reduce the invoice, that contributes -$5. Quarter-two invoice: $408 + $45 - $15 = $438.

Step 6: Reconcile with a visible residual. Sum the drivers: $80 + $90 + $78 + $25 - $5 = $268. Starting from the $170 base invoice, $170 + $268 = $438, which matches the actual invoice, so the residual is $0. With real data, the residual will rarely be zero. Show it as its own row, labeled as unexplained, along with any models lacking defensible prior rates. Do not fold it into a driver.

Report the result as a bridge: base invoice $170, volume $80, mix $90, rates $78, fees $25, credits -$5, residual $0, current invoice $438. State the step order every time. Applying rates before mix gives different driver amounts for the same data. Neither order is more correct, but you should pick one and keep using it so periods stay comparable.

Where to get the inputs

OpenAI

The organization costs endpoint returns the billed line item, quantity and unit, and the model and token type when available. See the OpenAI costs API reference. Two cautions apply. The billed model may differ from the model ID used in the request, including fine-tuned model IDs. Amounts and quantities may also cover purchased capacity or units other than tokens, such as durations or images. Compare like-for-like usage charges by model and token type, and keep missing or unmatched fields visible instead of dropping them.

Claude

The beta Claude usage and cost analytics API can break out cost by model, cost type, and token type. Each row reports an amount after discounts and before credits, plus a separate list-price amount. That difference lets you see how much of a rate change is list pricing and how much is discounting. Requests served under a Priority Tier commitment contribute zero token cost in this data because the commitment fee is billed separately and is not included. Use your invoice for credits and separate charges, and check the account, billing scope, and plan before reconciling.

Tool-level cost data in Weave

If your team uses several coding tools, Weave's AI tool costs documentation describes how it pulls spend by tool and, where the tool's data allows, by engineer and team. Each cost row carries a fidelity label: actual vendor billing, estimated at list price, plugin-observed, client-reported, modeled, or activity only. For flat-rate seat plans, the documentation notes that list-price consumption can far exceed the flat fee you pay, and that seat costs are shown separately from usage totals. Those labels map directly onto the cost-source check above, and they help you decide which rows belong in the usage bridge and which belong with fees.

What to do with each result

  • If volume dominates, find which teams, repositories, and workflows grew. Agent-style workflows can multiply tokens per task, so compare tokens per completed task, not only totals.
  • If mix dominates, ask whether the pricier model earns its premium on the work it now handles. Test it on a sample of real tasks with a cheaper model before changing defaults, and apply any routing rule per workflow instead of globally.
  • If rates dominate, the levers are plan terms, commitment tiers, and caching behavior. Confirm current terms on provider pricing pages before quoting them internally.
  • If fees and credits explain a large share, the usage story was never the whole story. Bring finance into the review, because commitment and subscription charges are contract decisions.

FAQ

Why does the step order change the answer? The drivers interact. Applying rates before mix gives the rate driver a different base than applying mix before rates. Both decompositions are internally consistent. Choose one order, state it, and reuse it.

Can I divide the bill by tokens to get a blended rate? A blended rate shows the average price per token but not why it moved. The same increase can come from a shift to expensive models, from price changes, or from both. The decomposition separates them.

What do I do with spend I cannot attribute to a model or team? Keep it in a labeled row. Provider APIs can return line items without a model or token type, and a growing unmatched row is a data-quality signal, not a driver to absorb.

How often should I rerun it? Every billing period, with the same scope and step order. Monthly runs catch mix drift early.

Conclusion

A doubled bill is usually several problems stacked together: volume, mix, rates, and contract charges, each with a different owner. Run the bridge once with the step order stated, reconcile fees and credits separately, and keep the residual visible. Then each dollar of growth has an owner and the next review is a short meeting instead of an argument.

Related Articles