Usage-Based Economy

Billing that moves at
the speed of your data.

Don't force your customers into rigid tiers. Charge for exactly what they use—whether it's API calls, gigabytes, or compute hours.

Step 1: Ingest
POST /v1/events
{
  "metric": "api_call",
  "value": 1,
  "customer": "cust_01"
}

Send raw usage events via our SDK or HTTP API.

Step 2: Aggregate
Current: 75,203Limit: 100k

Events are summed and matched against customer plans in real-time.

High-Throughput Ingestion

Send thousands of events per second. Our ingestion layer is built for scale.

Flexible Aggregation

Sum, Max, Unique, or Last-value aggregation logic built into the core.

Real-time Thresholds

Trigger webhooks or limit access the moment a usage quota is reached.

Idempotent Events

Never double-count. Every event is processed exactly once via unique IDs.

Postgres-level precision for your revenue.

While most billing systems take hours to sync usage, Dugble processes events in milliseconds. Using our idempotency keys, you can ensure that even with network retries in challenging regions, your customers are only ever billed for what they actually consumed.

Learn about our aggregation engine

Automated Overage Invoicing

When usage exceeds the prepaid tier, Dugble automatically drafts an overage invoice or triggers a Kora "one-off" charge to keep your cash flow moving.