What problem does it solve?
It solves the problem of manually guessing costs and billing customers incorrectly when your product value comes from variable usage like API calls or AI tokens.
Core Features & Use Cases
- Usage events ingestion: Send metering events that describe what the customer did (for example, an API call or token consumption) with a unique event_id and customer_id.
- Meter aggregation models: Convert raw events into billable quantities using Count, Sum, Max, or Last aggregations, including summing specific metadata properties such as tokens.
- Metered products and pricing: Map meters to Usage-Based products with per-unit pricing and free thresholds, enabling accurate monthly billing and hybrid models with subscriptions.
Use case: Track AI token usage per completion (Sum over the tokens field), apply a free monthly threshold, and charge overage automatically, while also billing other activities like image generation or storage snapshots.
Quick Start
Send a usage event named api.call for each customer request, then create a Count meter on that exact event name and connect it to a Usage-Based product with your unit price and free threshold.