Skip to main content
Polar tracks what each customer does in your product. Usage is built from two objects:
  • Events are raw facts your application sends: “this customer made an API call”, “this customer used 77 tokens”.
  • Meters filter and aggregate events into a usage number per customer.
Tracking usage doesn’t require charging for it. You can send events and create meters with no metered price or credits at all, to see how customers use your product and what they cost you. Billing is one thing you can build on top, now or later.

Events

An event has a name, the customer it belongs to (external_customer_id or customer_id), and a free-form metadata object:
Send raw facts, not totals you’ve already computed. Polar does the counting, so the same events can feed several meters, and you can add a meter later without changing your code. Events are immutable: once ingested, they can’t be changed or deleted.

Meters

A meter defines which events count and how to add them up:
  • A filter selects events, for example name equals ai_usage.
  • An aggregation turns them into a number: count, sum, average, minimum or maximum of a metadata property.
For example, a meter that filters on ai_usage and sums total_tokens gives you the tokens each customer used in a period.

Tracking without billing

A meter on its own is a usage report. Read it per customer and per period from the dashboard, CLI or API. Common reasons to track usage you don’t charge for:
  • See which customers use a feature, and how much.
  • Compare what each customer costs you, such as LLM tokens or storage, with what they pay. See Costs.
  • Collect real data before you decide on pricing. New meters backfill from events you’ve already sent, so you can explore pricing ideas against past usage.

Charging for usage

When you do charge for usage, it reaches billing in two ways, and you can combine them. Metered prices bill usage after the fact. Add a metered price to a recurring product, and Polar invoices the usage on the subscription’s next order. See Usage-based pricing. Credits are prepaid. A Meter Credits benefit adds units to a customer’s meter balance, once for a one-time purchase or every cycle for a subscription. Usage draws the balance down first. If the product also has a metered price, anything beyond the credits is billed as overage. Without one, usage is never charged. The customer’s current balance for each meter is part of their customer state.

Costs

Events can also carry what each action costs you, through a _cost metadata property. Cost insights combines those costs with your revenue to show profit per customer. This works whether or not you bill for the usage behind them.

In the dashboard, CLI or your agent

Events are sent from your application with the SDK or API. You can browse them under Analytics → Events. Everything else works from the dashboard, the CLI or your agent:

Learn more