llm_tokens not created yet.Usage Lab records billing-grade usage events for AI and SaaS products: tokens, API calls, jobs, bytes, seats. It dedupes retries, handles late events, rolls everything up per customer per month and pushes the totals into Stripe Billing.
See the 30-second demoYou already bill through Stripe and want usage-based pricing without moving your whole billing stack.
Your usage numbers live with you, are exportable and portable. Switch billers without re-instrumenting your product.
No sales call, no implementation project, no percentage of your revenue.
POST /api/v1/usage with one event or a batch of 100.
Send an Idempotency-Key. A retry returns the original event and is never counted twice.
Events up to 30 days late roll into the month they happened.
Tokens, requests, or monthly active users. Pick an aggregation per meter.
GET /api/v1/meters/:meter/rollups?month=YYYY-MM gives quantity per customer.
Monthly totals go to your Stripe Billing Meter as deltas, so late usage tops up instead of double-billing.
Send an event. Send it again. It counts once. API is live at https://usage-lab.marc-cf2.workers.dev.
curl -X POST https://usage-lab.marc-cf2.workers.dev/api/v1/usage \
-H "Authorization: Bearer $USAGE_LAB_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: req_8f2c1" \
-d '{"meter":"tokens","subscription":"cus_123","value":1500}'
# 201 {"event":{"status":"created","id":"evt_…","month":"2026-10"},"duplicate":false}
# same call again -> 200 {"event":{"status":"duplicate","id":"evt_…"},"duplicate":true}
curl "https://usage-lab.marc-cf2.workers.dev/api/v1/meters/tokens/rollups?month=2026-10" \
-H "Authorization: Bearer $USAGE_LAB_KEY"
# {"rollups":[{"subscription":"cus_123","quantity":1500,"event_count":1, …}]}
You pay a flat monthly fee for events per month and meters, in Canadian dollars. Never a percentage of your revenue.
Checkout links are Stripe test mode (Labs account). Live keys not connected.
| Usage Lab | Full billing platforms | |
|---|---|---|
| Starts at | $0, then flat CAD plans | Contact sales, or a monthly floor plus a % of billing |
| Scope | Meter + rollups + Stripe push | Replace your billing stack |
| Your invoices | Stay in Stripe | Move to the platform |
API and lander are live. Pro and Ultra can check out in Stripe test mode now:
Start Pro (test) Start Ultra (test)
Free stays waitlist / manual for now — no checkout. Stripe meter push is still dry-run until a Billing Meter and test secret key are wired.