1. Overview
The Billing Metric module allows you to define and track billable business metrics such as API requests, storage usage, or AI token consumption.The redesigned interface introduces template-based configuration, real-time previews, and clear contextual guidance to make metric setup faster and more intuitive.
π― Key Benefits
- Lower learning curve β friendly field names and contextual explanations
- Faster onboarding β quick-start templates for common billing use cases
- Instant validation β live event and aggregation previews
- Standardized model β consistent flow: Event β Metric β Aggregation β Billing

2. Navigation
Access this module from the sidebar:Product β Billable MetricThe main list view displays all existing metrics, including:
- Metric Name & Code
- Aggregation Type (Count / Sum / Max / Unique)
- Charge Type (Charge Metered / Charge Recurring)
- Last Updated
- Actions (βοΈ Edit / π Delete)


3. Create a New Metric
Click β+ New Metricβ to open the metric creation page.3.1 Quick Templates
Predefined templates are provided for common billing scenarios.Selecting a template will auto-fill key fields, but you can freely modify them.

3.2 Basic Information
π‘ The Slug auto-generates from the Name and must be unique.
3.2.1 Metric Type Selection
When creating a metric, you must choose one of four metric types. This choice determines how usage is tracked and billed:Limit Metered
- Behavior: Usage resets completely at the start of each billing cycle
- Quota: Hard limit that rejects requests when exceeded
- Carryover: No - unused quota is lost
- Best For: Monthly allowances that reset (e.g., β1000 API calls per monthβ)
Limit Recurring β
- Behavior: Usage resets, but unused quota carries over
- Quota: Soft limit with automatic carryover
- Carryover: Yes - unused quota is preserved
- Best For: Prepaid credits (e.g., β1000 SMS credits per monthβ)
Charge Metered
- Behavior: Usage resets each cycle, charges based on consumption
- Billing: Additional charges added to invoice at period end
- Reset: Yes - usage resets to zero each period
- Best For: Pay-per-use services (e.g., β$0.10 per API callβ)
Charge Recurring
- Behavior: Usage accumulates continuously across periods
- Billing: Charges based on total accumulated usage
- Reset: No - usage never resets
- Best For: Cumulative usage billing (e.g., total data usage)
Quick Decision Guide
π‘ Not sure which type to choose? See the detailed comparison in What is Billable Metric? for more examples.
3.3 Event & Aggregation
Right-Side Preview Panel
- Event Example: Live JSON event structure based on your form inputs
- Aggregation Preview: Displays example calculations (e.g.
1 + 2 + 3 = 6ormax(10, 20, 30) = 30) - Quick Snippet: Auto-generated cURL / SDK example for developer use
- Test It: Simulate an event and preview real-time calculation results
Highlight the right-side panels in color (Event Example β green, Aggregation Preview β blue, Quick Snippet β yellow).



