Skip to main content
A meter turns events into a usage number per customer. Its filter selects events, and its aggregation adds them up: count them, or sum, average, or take the minimum or maximum of a property. A meter works on its own as a usage report. Metered prices and credits attach to a meter when you want to charge for that usage. See Usage for the full picture. The examples on this page use the sandbox and API version 2026-10.

Create a meter

This meter sums total_tokens across ai_usage events, the events sent in Send events.
  • 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
From your code:
The name needs at least 3 characters. It’s shown to customers on invoices and in the Customer Portal. A new meter counts events you’ve already sent, so you can add a meter later without changing your code.

Filters

A filter is a conjunction (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.
Like filters, the aggregation property is a metadata key or a dot path such as _llm.total_tokens.
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. gigabyte shows as $0.023 / gigabyte. Required.
  • Unit Multiplier (custom_multiplier): shows the price per that many units. 1000 shows the price per 1,000 units. Defaults to 1.
The multiplier only changes the display. The price you set is still per single unit.

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.
To read usage over a time range from your code, call the quantities endpoint. Pass external_customer_id or customer_id to scope it to one customer:
For a customer’s current balance against their credits, read the customer state or polar customer_meters list --external-customer-id user_123.

Edit a meter

Open the meter and click Edit Meter, or call polar 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, or polar 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.
Archived meters stop counting toward billing. Unarchive Meter restores it.

From the CLI or your agent

Learn more