Skip to main content
Know exactly what each customer costs you in LLM spend by tagging requests with their ID.
1

Tag every request with a customer identifier

Pass your customer’s identifier as a metadata key using X-Toolken-Metadata-Customer-Id. The header suffix maps directly to the customer_id metadata key in the dashboard. Use whatever ID you already have — a user ID, an org slug, or an account number.
2

Open the dashboard and group by Customer

Go to the cost view in the dashboard. Use the “Group by” control to select Customer. Each customer ID appears as a row showing cost, token usage, and request count.
Dashboard showing cost broken down by customer
You can set the customer dimension in more than one way on the same request. If you send multiple, the highest-priority one wins:Pick one method and stay consistent. The priority only matters when you accidentally set it multiple ways.
Add X-Toolken-Metadata-Agent alongside X-Toolken-Metadata-Customer-Id to get a two-dimensional view. You can then answer questions like “how much did cust_acme spend on the report-generator agent this month?”.
Group by Customer then by Agent in the dashboard to see the breakdown.

Next

Cost Per Agent

Break down spend by agent or workflow.

Cost by Environment

Separate production and staging spend.