Core Capabilities
| Capability | Implementation |
|---|---|
| Event Collection | High-volume ingestion with batch support, idempotency, backdating |
| Aggregations | sum, count, max, latest on any numeric field |
| Periods | hour, day, week, month, annual, all_time |
| Dimensional Filtering | Filter by any dimension (model, team, user, environment) |
| Timezone-Aware Billing | Customer-specific billing cycle anchors with timezone support |
| Prepaid Credits | Balance wallets with ledger transactions |
| Alerts | Percentage-based thresholds with webhook delivery |
Supported Pricing Models
Pure Usage-Based
Per-token, per-API-call, or per-request pricing where customers pay exactly for what they use. Events carryvalues (e.g., { tokens: 500, cost_cents: 2 }) that meters aggregate over billing periods.
Metered Subscription (Quota + Overage)
Monthly limits that reset on the billing cycle, with alerts and enforcement.- Set limits that reset monthly/annually
- Alert at 80% usage
- Enforce at 100% or allow overage
- Export usage to billing system for invoicing
Tiered Plans
Different limits per customer based on their subscription tier.- Project-wide limits serve as defaults
- Customer-specific limits for upgrades/enterprise
- Store tier info in
customer.metadatafor sync with billing
Dimensional Pricing
Different rates or limits based on dimensions like model, team, or environment.Resource-Based (Seats, Storage)
For non-resetting resources like storage or seat counts.| Aggregation | Use Case |
|---|---|
latest | Current storage bytes, active seats |
max | Peak concurrent users |
all_time period | Resources that don’t reset |
Prepaid Credits / Drawdown
Credit wallets for pay-as-you-go with balance management.Free Tier with Hard/Soft Limits
Project-wide limits that apply to all customers, with configurable enforcement.Integration with Billing Systems
Limitry handles metering while your billing system (Stripe, Chargebee) handles subscriptions and payments.What You Build on Top
- Webhook handler - Sync usage to Stripe metered billing components
- End-of-period job - Report usage totals at billing cycle end
- Payment webhook - Top up balances on successful Stripe payments
Customer Metadata for Sync
Store billing system IDs in customer metadata:Billing Cycle Flexibility
Thebilling_cycle_start field enables flexible billing periods:
| Scenario | Configuration |
|---|---|
| Mid-month starts | Customer signs up Jan 15, bills Jan 15 → Feb 15 |
| Anniversary billing | Annual plans reset on signup anniversary |
| Timezone alignment | Midnight resets in customer’s local time |
What Limitry Does NOT Handle
| Not Supported | Use Instead |
|---|---|
| Subscription lifecycle | Stripe/Chargebee |
| Payment processing | Stripe/Chargebee |
| Invoice generation | Stripe/Chargebee |
| Tax calculation | Stripe Tax / Avalara |
| Dunning/retry logic | Stripe/Chargebee |
Best Use Cases
- AI/LLM metering - Token counting, cost tracking, model-specific limits
- API platforms - Request quotas, rate limits by tier
- Multi-tenant SaaS - Per-workspace/team limits with dimensional filtering
- Hybrid pricing - Base subscription + usage overage
- Fair-use enforcement - Soft alerts at 80%, hard cutoff at 100%