BotNetwork

Attributing LLM cost per chat or tenant

Meter tokens with tenant labels in your logs.

Guide1 min readUpdated

Why it matters

Attribute LLM and platform costs per tenant or chat so one heavy user cannot silently burn the budget.

Practical steps

  1. Tag each outbound LLM call with tenant/chat ids in metrics.
  2. Set soft and hard budgets with kill-switches.
  3. Export daily cost snapshots to finance-friendly CSV.
  4. Separate shared overhead from per-tenant variable cost.
  5. Alert at 70% and 90% of budget.

Watch out for

  • Only looking at the provider invoice total.
  • Cardinality explosion from per-message cost labels.

Related comparisons and tools