A pooled AI bill creates a specific kind of meeting: every team insists its agents are efficient, nobody can prove anything, and the total keeps rising. Allocation is how that meeting ends.
The short answer
Allocate from the authorisation log, where every call already carries an agent identity, a run id and a customer or team tag where the work is done for one. Sum actual cost per agent, roll agents up to owning teams, and runs up to the customer whose work commissioned them. Publish showback monthly before attempting chargeback, reconcile the allocated total against the provider invoice to within a rounding margin, and price customer-facing agent work from allocated cost per completed task — never from the pooled average.
Check your own setup as you read: run the free Spend Guard self-check or test a policy in the playground — five minutes, no signup, and the gaps it names map to the controls below.
Worked example: one customer quietly costing $310 a month
Fern Hollow Software, a fictional B2B tool with 300 business customers, offered an AI reporting agent inside every plan at the same price. Allocated run data showed the fleet's median customer cost $2.40 a month to serve — and one customer, whose team had automated the agent to regenerate a full report every 15 minutes around the clock, cost $310 a month while paying $49. Three others cost over $100. The other 296 were subsidising a rounding error with a workflow.
Fern Hollow did not raise prices. It put a fair-use run budget in the agent's policy — generous at twenty times the median customer's usage — and offered the heavy customer a reporting tier priced from their actual allocated cost. The customer, who had not realised their automation was the cause, reduced regeneration to hourly and stayed on the standard plan at $38 a month in allocated cost. Fleet spend fell 31 percent the following month, and support finally had numbers instead of suspicions when usage questions arrived.
Tags must be captured at authorisation time
Allocation fails when it is reconstructed afterwards from timestamps and hope. The customer, team or cost-centre tag has to ride on the authorisation request itself, set by the orchestrator that knows whose work this is, and stored with the decision record. Where a run serves several customers — a batch job, a shared digest — split by a stated rule, such as per-item counts recorded in the run, and write the rule down. An allocation rule people can read gets argued about once; an invisible one gets argued about monthly.
Reconcile to the invoice, every month
Allocated totals must tie back to what providers actually charged, or finance will rightly ignore them. Estimates at authorisation time drift from actuals — provider pricing, retries below the gateway, cached tokens. A monthly reconciliation that distributes the difference pro-rata and shows the adjustment line keeps both numbers honest: the gateway's per-call attribution for structure, the invoice for truth. If the gap is regularly above a few percent, find out why before it finds you.
Showback before chargeback
Publish allocated costs to teams and account owners for at least a quarter before billing anyone internally or externally. Showback surfaces the data errors while they are still funny — the agent tagged to a departed team, the test runs landing in a customer's bucket — and it changes behaviour on its own: Fern Hollow's heaviest customer fixed their automation after seeing their own number, before any charge existed. Chargeback introduced on untrusted numbers buys you a permanent argument; on trusted numbers it is nearly a non-event.
Price from cost per completed task
The allocation output that matters commercially is cost per completed, accepted task — per report, per resolved ticket, per processed document — by customer segment. That is the number pricing decisions, fair-use limits and automation tiers should be built from. Pooled averages hide exactly the customers and workflows that pricing needs to see, which is how a $49 plan ends up serving a $310 workflow for months while every dashboard says margins are fine.
The first allocation report will be wrong — plan for it
Expect the first month's allocation to contain tagging errors: runs with no customer, a team's agent booked to another team, test traffic inside a customer bucket. Publish it anyway, labelled as a draft, with a named route for corrections. The errors are not a reason to delay; they are the mechanism by which the tagging gets fixed, because nothing motivates a team to tag its runs like seeing its name on another team's costs. By the third month the corrections slow to a trickle, the reconciliation band narrows, and the numbers quietly become the ones finance reaches for — which is when showback has done its job and chargeback, if you want it, becomes boring.
Five actions to allocate agent costs credibly
- Require a team or customer tag on every authorisation request, set by the orchestrator that owns the work.
- Sum actual cost per agent, per run and per tag in the gateway log; write down the split rule for shared runs.
- Reconcile allocated totals against provider invoices monthly and publish the adjustment.
- Run showback for a quarter — numbers visible, nobody billed — and fix tagging errors while stakes are low.
- Set fair-use budgets and price tiers from allocated cost per completed task, not pooled averages.
Source note and related guides
Figures in the worked example are illustrative, drawn from a fictional company created for this guide; the controls, failure patterns and procedures described are the gateway's documented behaviour — see the Agent Auth Gateway documentation and the policy patterns in allowlists vs denylists, spend caps and the agent kill switch. Reviewed by the Ingenious AI team, 2026-11-14.
Sources
- NIST AI Risk Management Framework (AI RMF 1.0), the voluntary framework for managing AI risk across design, development and use: nist.gov, 2023
- OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025
- RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012