Skip to main content
Tag requests with their environment so production and staging costs never bleed into each other in the dashboard.
1

Set X-Toolken-Metadata-Environment on every request

Add X-Toolken-Metadata-Environment to your requests. The value is any string, but production and staging are the most useful conventions.
Drive the value from an environment variable (like NODE_ENV or RAILS_ENV) so you never have to change application code between deploys.
2

Open the dashboard and filter or group by Environment

Go to the cost view. Use the filter to show only production or only staging. Or group by Environment to see both side by side with their totals.
Layer X-Toolken-Metadata-Feature and X-Toolken-Metadata-Environment to get a full picture: how much did each agent cost, split by environment?
Group by Feature and filter to production to see production-only cost per agent.
Add X-Toolken-Metadata-Session-Id to group all the LLM calls in a single user session. Combine with environment to separate session costs by deployment:
The X-Toolken-Metadata-* convention maps any header suffix to a metadata key. X-Toolken-Metadata-Session-Id becomes the session_id dimension in the dashboard.

Next

Per-Customer Cost

Attribute spend to individual end-customers.

Compare Providers by Cost

See what the same workload costs across providers.