Tagging Your Usage Data
Tagging allows you to label your requests for grouping & filtering usage reports.
Tagging allows you to label your requests for grouping & filtering usage reports.
Tags are custom labels you can add to API requests to organize your Deepgram usage data. Use them to track usage by environment, application version, use case—any dimension that matters to your project.
Deepgram automatically aggregates your usage and billing data to power UI features in the Console like usage and billing charts. This data is sliced by a variety of Deepgram-defined dimensions, like API key identifier and deployment type. Tags are a way to add your own dimension to Deepgram data.
Each Deepgram product supports tagging, though how you do it changes by product:
When you set one or more tags on a request, those tags will flow through to your Deepgram-hosted usage data. For instance, if you made the following request:
Then in usage and billing charts, you’ll be able to filter by prod and/or discovery-page, and when grouping them by tags set this usage will show up in the [prod, discovery-page] bucket. This data is also propagated to CSV exports.
prod, staging, dev-<devname>, etc.app, backfill-2025-06-01, backfill-2025-05-01, etc.v1.2.3, v1.2.4, etc.All tags you apply will be available in Deepgram’s usage and billing data, which powers the Console usage/billing charts and CSV exports.
You can also use the API directly to list tags used in the usage fields endpoint, or group/filter on tags in the usage breakdown or billing breakdown endpoints.
Effectively, tagging a request limits Deepgram’s ability to aggregate. This is really useful when you want to distinguish subsets of usage that are unique to your project. But using a lot of tags effectively disables data aggregation. For this reason, there are a few per-project limits Deepgram places on tags:
One common (and totally valid!) “high cardinality” case where you might at first consider tags is tracing: you want to correlate your own logs with individual Deepgram requests. Whenever possible, we recommend taking the Deepgram request ID from your responses and using that internally for correlation, but when that isn’t possible, the extra metadata feature gives you an escape hatch to label Deepgram logs without breaking your graphs.