← Back

Home · Guides · Per-Client Attribution

How does per-client AI cost attribution work for an agency?

By the Ingenious AI team · Published 2026-11-14 · Reviewed 2026-11-14

Short answer: Every AI cost event is recorded with the client it belongs to, the task it served, the provider and model that produced it, its cost, and whether the outcome succeeded or failed. With those fields on every event, per-client cost is a sum, not an estimate — and cost per successful outcome per client follows by division. OutcomeMeter's attribution ingest API accepts exactly those events, with idempotency keys so a duplicate delivery never charges a client twice.

Try the free demo measurement See pricing Start free — one provider key

What is per-client cost attribution?

Per-client cost attribution is the practice of assigning every unit of AI spend to the client whose work caused it, at the moment the spend happens. In OutcomeMeter the assignment rides on each ingested cost event — client, task, provider, model, cost, outcome — so per-client totals, and cost per successful outcome per client, are computed from recorded events rather than reconstructed at month's end.

The month-end reconstruction problem

Without attribution, an agency's AI bill arrives as one provider total and a month of memory. Someone reconstructs: this client probably drove most of the usage, that project had a busy week, the experiment was internal. The reconstruction is always wrong in detail and unfalsifiable in argument, and every downstream decision — pricing, pass-through billing, margin analysis — inherits its error.

Attribution eliminates reconstruction by moving the client assignment to the only moment it is certainly known: when the work runs. The workflow knows which client it is serving; recording that fact with the cost is a line of instrumentation. Every later report is then arithmetic on recorded facts, and client conversations change from 'we think' to 'here are the events'.

The six fields that make an event attributable

An attributable cost event needs six things: the client, the task, the provider, the model, the cost, and the outcome (success or fail). Client and task are the attribution; provider and model are the diagnosis (they let a cost spike be traced to a model change); cost is the money; outcome is what separates spend from waste. OutcomeMeter's ingest API (POST /api/events) accepts exactly this shape, authenticated by session or license key.

Two properties keep the stream trustworthy. Idempotency keys mean a retried delivery of the same event is recognized and never double-counted — a client's bill cannot inflate because a network hiccup made your worker send an event twice. And validation is strict: an invalid event is rejected and writes nothing, so bad data fails loudly at the door instead of quietly corrupting a month of attribution.

Attribution is the wedge, not a dashboard feature

Plenty of tools chart provider spend. The agency problem is different: work is done for clients who must be priced, billed and answered to individually. Per-client attribution is the difference between knowing your total AI bill and knowing what each client costs you per result — the number that decides whether a retainer is profitable, whether a pass-through invoice is defensible, and whether a scope conversation needs to happen.

That is why OutcomeMeter is built agency-first: per-client cost attribution and client-ready reports are the core, and the verified outcome ledger joins per client and per workflow. The same instrumentation that satisfies a client's auditor also runs the agency's own margin math.

What attribution unlocks, in order

First, honest pass-through billing: the client's AI cost line is a sum of their events, exportable in the client-ready report. Second, per-client budgets with teeth: a monthly cap per client, with alerts as the cap approaches — OutcomeMeter posts Slack alerts at 80% and 100% of a client's monthly budget, once per threshold per month. Third, margin truth: revenue per client against cost per client, per successful outcome, per month.

Fourth, and quietly the most valuable, early warning. Attributed spend shows a client's costs drifting within the month, while there is still time to talk to the client, instead of at invoice time, when the only options are absorbing the overrun or surprising them with it.

Shared workflows and the allocation question

Some spend serves several clients at once: a shared research workflow, a common enrichment pipeline. Attribution handles the direct case perfectly and the shared case honestly — the workflow's events can carry the client for client-specific runs, and genuinely shared runs need an allocation rule (per outcome produced is the least arbitrary: divide shared cost by the outcomes each client received). What matters is that the rule is chosen in advance, applied consistently, and visible in the report.

The one unacceptable option is leaving shared spend unattributed in a pool that pricing pretends does not exist. Unattributed pools do not vanish; they get silently carried by the clients whose attributed costs look high by comparison. An explicit allocation rule, even an imperfect one, is fairer and more defensible than an invisible one.

Getting attribution started without a big-bang migration

Start with the client whose costs you argue about most, and instrument the one workflow that dominates their spend. A week of clean attribution on the contested slice usually settles the argument and sells the rollout internally better than any plan. Then extend workflow by workflow, ordered by spend — the waste report's top-cost-driver finding tells you the order.

Historical reconstruction is almost never worth it. Attribution is cheap going forward and expensive going backward, and decisions are made on the present. Declare a start date, meter everything from there, and let the record accumulate: within one budget cycle you will have per-client truth where it matters most.

Stand up per-client attribution: the 5-action checklist

One client, one workflow, one week — then expand by spend. The checklist assumes OutcomeMeter's ingest API, but the discipline applies to any metering you build.

  1. Pick the first client and workflow: the pair with the most contested costs and the highest spend.
  2. Emit all six fields per event: client, task, provider, model, cost, outcome — plus an idempotency key per event.
  3. Verify a day of events: reconcile the attributed total against the provider's own usage pull for the same day.
  4. Set the client's monthly budget: turn on the 80% and 100% Slack alerts so drift surfaces inside the month.
  5. Send the first client-ready report: even a quiet one — it proves the pipeline and sets the transparency precedent.

Worked example: a fictional agency ends the month-end argument

A fictional agency, Brightfen, serves nine retainer clients and one shared provider bill of about $4,800 a month. Two clients are routinely blamed for most of the spend, on no evidence. Brightfen instruments its three biggest workflows with per-client events for one month. The recorded picture: the two blamed clients account for $610 and $540 respectively, while a quiet third client — heavy document work, never discussed — accounts for $1,730, at a cost per successful outcome 2.6 times the agency's median.

The repricing conversation that follows is short, because it is about events, not impressions: the third client's retainer is renegotiated with the workflow's unit cost on the table. The two exonerated clients never learn they were suspected — which is rather the point of measuring before arguing.

OutcomeMeter runs this measurement on your own provider spend: connect a key on the free tier, watch the demo measurement first if you want to see the shape of the output, and read accepted-outcome economics when you are ready to value accepted work. The guides index collects every guide in this series.

Frequently asked questions

What fields does a cost event need for attribution?

Client, task, provider, model, cost and a success-or-fail outcome. OutcomeMeter's ingest API also accepts an idempotency key per event so duplicate deliveries never double-count, and rejects invalid events without writing anything.

How do I handle work shared across clients?

Attribute client-specific runs directly, and allocate genuinely shared runs by a rule chosen in advance — outcomes produced per client is the least arbitrary. Consistency and visibility matter more than the specific rule; an invisible unallocated pool is the one unfair option.

Does attribution work across providers?

Yes. Attribution is a property of the event, not the provider: multi-provider connections are a Pro and Agency capability, and events from OpenAI and Anthropic work land in the same per-client sums because they carry the same six fields.

What do per-client budgets add?

A monthly cap per client with deduplicated Slack alerts at 80% and 100% of budget. Attribution tells you what a client cost last month; budgets warn you this month, while a conversation can still change the outcome.

Can I attribute spend retroactively?

You can reconstruct, but it is expensive and unfalsifiable — the very problem attribution exists to remove. The practical move is to declare a start date and meter forward; within one budget cycle the contested questions have recorded answers.

Keep reading

← Back