The problem
The solution
How it works
Set up plans, check entitlements, record usage. That's it.
POST /v1/subscriptions
{
"end_user_id": "user_123",
"plan_variant_id": "var_..."
} GET /v1/entitlements/check
?end_user_id=user_123
&feature_key=api_calls
{ "allowed": true, "balance": 49000 } POST /v1/usage
{
"end_user_id": "user_123",
"feature_key": "api_calls",
"units": 1
} Features
Built for AI, API, and SaaS products. Nothing you don't need.
"Can this user do this?" answered in <30ms. Cached, invalidated on every credit mutation. One API call replaces complex authorization logic.
Immutable transaction history. Block-based burn-down with priority, expiry, and accumulation caps. Every credit accounted for.
Reserve credits before long-running tasks like AI inference. Commit actual cost after. Unused credits released automatically.
Create, upgrade, downgrade, pause, resume, cancel, renew. Full state machine with automatic free-plan fallback.
Row-level security in PostgreSQL. Sandbox and live environments on the same instance. Scoped API keys per tenant.
Every mutation accepts an idempotency key. Safe retries, no double-charging. Webhook delivery with exponential backoff retry.
Developer experience
Your entire billing integration in ~15 lines of code.
// Check entitlement before each request
const { allowed, balance } = await quotastack
.checkEntitlement("user_123", "ai_request")
if (!allowed) {
return { error: "upgrade_required" }
}
// Process the request...
const result = await generateResponse(prompt)
// Record usage — credits deducted async
await quotastack.recordUsage("user_123", {
feature_key: "ai_request",
units: 1,
idempotency_key: requestId
}) Compare
Stop rebuilding billing infrastructure. Focus on your product.
| Feature | QuotaStack | Build Yourself | Stripe Billing | Orb / Amberflo |
|---|---|---|---|---|
| Time to integrate | 1 day | 2-4 weeks | 1-2 weeks | 1 week |
| Credit-native ledger | ✓ | Build it | ✕ | ✓ |
| Real-time entitlements | ✓ | Build it | ✕ | ✕ |
| Reservations (hold credits) | ✓ | Build it | ✕ | ✕ |
| Usage metering | ✓ | Build it | ✓ | ✓ |
| Plan management | ✓ | Build it | ✓ | ✓ |
| Payment processing | BYO | BYO | ✓ | BYO |
| Open API / no lock-in | ✓ | ✓ | ✕ | ✕ |
| Pricing | Simple | Eng time | 0.7% rev | Enterprise |
Use cases
From free-tier gating to complex reservation flows.
Give users free messages, gate with a paywall, sell credit packs. Track per-character or per-conversation usage.
Rate-limit API calls by credit balance. Reserve credits before expensive operations, commit actual cost after.
Base subscription with metered features. Monthly credit grants with rollover caps, top-up packages for burst usage.
FAQ
Tell us about your use case. We'll set up your tenant
with sandbox + live keys within 24 hours.