2026-10.
Create a meter
This meter sumstotal_tokens across ai_usage events, the events sent in Send events.
- Dashboard
- CLI
- Prompt
- Open Catalog → Meters
- Click Create Meter
- Set Name to “AI tokens”
- Under Filters, add a condition: Name equals
ai_usage - Set Aggregation to Sum over the property
total_tokens - Set Unit to Token
- Click Create Meter
Filters
A filter is aconjunction (and or or) and a list of clauses. Each clause compares one property of the event with a value. A clause can itself be a filter, so you can nest groups. In the dashboard, the top level holds condition groups: Add condition group adds one and Add condition adds a clause to it.
Properties
Use dot notation to reach into
_llm and _cost, for example _llm.total_tokens or _cost.amount. A path has at most 5 levels and 255 characters. A leading metadata. is optional.
Operators
A value is a string (up to 1,000 characters), an integer or a boolean. Types must match: the string
"77" doesn’t equal the number 77. The dashboard reads what you type as a number first, then as true or false, and otherwise as a string.
Aggregation
Unique is deprecated, and some organizations can’t create it. Use one of the other functions for new meters.
_llm.total_tokens.
Example
Example
Four events:Each function over
total_tokens:- Count: 4
- Sum: 90
- Average: 22.5
- Minimum: 10
- Maximum: 30
- Unique: 3
Unit
The unit controls how prices on this meter are displayed to customers: on invoices, in the Customer Portal and at checkout. It doesn’t change how usage is counted or billed.
With Custom, two more fields appear:
- Unit label (
custom_label): the name shown after the price, up to 32 characters.gigabyteshows as$0.023 / gigabyte. Required. - Unit Multiplier (
custom_multiplier): shows the price per that many units.1000shows the price per 1,000 units. Defaults to 1.
Read usage
The meter’s page in Catalog → Meters has three tabs:- Overview: a usage chart and the Current Month, Previous Month and All Time totals.
- Events: the events the meter matched.
- Customers: usage per customer.
external_customer_id or customer_id to scope it to one customer:
polar customer_meters list --external-customer-id user_123.
Edit a meter
Open the meter and click Edit Meter, or callpolar meters update <id>. You can always change the name and unit.
The filter and aggregation lock once the meter has billed events. Changing them then would change usage customers were already charged for. The API rejects the change with “This field can’t be updated because the meter is already aggregating events.” Create a new meter instead.
Archive a meter
Archive a meter you no longer use with Archive Meter on its page, orpolar meters update <id> --is-archived. Polar blocks archiving while the meter is still used by:
- A metered price on an active product.
- An active subscription that bills it.
- A Meter Credits benefit.

