Use Cases
Real-world integration patterns. Pick the one closest to what you're building — each is a complete walkthrough from data model to API calls.
Pick Your Pattern
Decision Aid
| If your billing is… | Pattern | Use case |
|---|---|---|
| Recurring monthly cycles with budgets | Prepaid subscription + grants | SaaS Subscription |
| Flat subscription with resetting quotas (every few hours/days) | Prepaid subscription + matched-expiry grants | Consumer AI Subscription |
| Per-message / per-action with a wallet | Wallet + plans + metering | AI Chat App |
| Long-running operations (seconds to minutes) | Reserve / commit / release | AI Generation App |
| Bill in arrears based on usage | Postpaid metered + tiered | API Platform |
All Use Cases
Each use case is a complete integration walkthrough — data model, API calls, and tips.
RECURRING PLANS · MONTHLY GRANTS
Recurring Plans with Monthly Credit Grants
How to model a classic B2B SaaS with tiered subscription plans, monthly credit grants, rollover, overage policies, and plan upgrades.
Read walkthrough → SUBSCRIPTION · RESETTING QUOTAS
Tiers with Resetting Quotas
How to model a ChatGPT Plus- or Claude Pro-style consumer AI subscription with fixed monthly pricing and quotas that reset on a sub-monthly cadence.
Read walkthrough → WALLET · PLANS · PER-MESSAGE METERING
Wallet + Plans + Per-Message Metering
How to model an AI companion chat app with wallet-based credits, time-limited plans purchased from the wallet, and per-message metering.
Read walkthrough → PACKS · RESERVE / COMMIT / RELEASE
Packs + Reserve/Commit/Release
How to model an AI outfit generation app with look packs, free credits on signup, and credit reservations for long-running AI calls.
Read walkthrough → POSTPAID · METERED · TIERED
Postpaid Metered Billing
How to model a usage-based API platform with postpaid billing, tiered pricing, usage summaries, and contract lifecycle management.
Read walkthrough →