Perfect for: APIs, AI services, infrastructure platforms, and any product where value scales with usage.
How It Works
1
Send Usage Events
Your application sends events when billable actions occur.
2
Meters Aggregate Usage
Meters aggregate events into billable quantities using Count, Sum, Max, or Last aggregation.
3
Automatic Billing
Set pricing per unit and free thresholds. Customers are billed automatically each cycle.
Core Concepts
Events
Events represent usage actions in your application. Each event includes:- Event Name: Type of usage (e.g.,
api.call
) - Customer ID: Who used it
- Metadata: Additional properties for aggregation
Meters
Meters aggregate events into billable quantities:- Count: Total events (API calls)
- Sum: Add values (total bytes)
- Max: Highest value (peak users)
- Last: Most recent value

Products with Usage Pricing
Set pricing per unit and optional free thresholds:
Customer Credits
Give customers included usage credits that refresh each billing cycle. Credits apply before paid usage.Quick Start
1
Create a Meter
In your dashboard: Meters → Create Meter
- Set event name (e.g.,
api.call
) - Choose aggregation (Count, Sum, Max, Last)
- Add optional filters
2
Add to Product
Link meter to a product with pricing:

- Select Usage-Based Billing
- Choose your meter
- Set price per unit and free threshold
3
Send Events
4
Monitor Usage

Use Cases
APIs & Infrastructure
Track API calls, compute hours, bandwidth, storage. Example: $0.001 per call after 10,000 free.
AI Usage Tracking
Track tokens, generations, processing time. Example: $0.04 per standard image, $0.08 per HD.
Data & Analytics
Bill by data processed, queries run, records analyzed. Example: $5 per GB after 10 GB free.
Communication
Count messages, minutes, data transferred. Example: $0.01 per SMS sent.
Next Steps
Event Ingestion
Learn how to structure and send usage events from your application.
Meters Guide
Master meter configuration, aggregation types, and event filtering.
Complete Tutorial
Build a complete AI image generator with usage-based billing from scratch.
Integration Guide
Comprehensive guide to implementing usage-based billing in your application.