When to Use Usage-based Pricing
- Your product delivers variable value (e.g., API calls, compute, AI tokens)
- You want to lower the barrier to entry (no monthly commitment)
- Your customers have highly variable usage patterns
Creating a Usage Plan
Adding a Usage Charge
Link the charge to a meter usingmeter_id:
Tiered Pricing
Offer volume discounts with tiered pricing — lower per-unit prices at higher volumes:Tiered pricing configuration is available via the
usage_pricing_rules on the meter.How Usage is Calculated
At invoice generation time, Fluxrate:- Queries all
UsageEventrecords for the meter in the billing period - Applies the aggregation type (SUM, MAX, etc.)
- Multiplies the aggregated value by the unit price
- Creates an invoice line item with the result