Introduction
Billing infrastructure for AI SaaS
Owostack
Owostack is a billing infrastructure for subscriptions, usage, and entitlements. You connect a payment provider, model plans and features, and use three API primitives to enforce access and track usage: attach, check, and track.
What you build with Owostack
- Subscription lifecycle without bespoke webhook code
- Entitlements that gate features by plan
- Usage metering for API calls, credits, or quotas
- Plan switching with upgrades, downgrades, and add-ons
Core primitives
import { Owostack } from "@owostack/core";
const owo = new Owostack({ secretKey: process.env.OWOSTACK_SECRET_KEY });
await owo.attach({
customer: "user_123",
product: "pro-monthly",
});
const access = await owo.check({
customer: "user_123",
feature: "api_calls",
});
await owo.track({
customer: "user_123",
feature: "api_calls",
value: 1,
});How it works
Provider Checkout -> Provider Webhooks -> Owostack
|
v
Entitlements + Meters
|
v
Your app (SDK)Owostack receives provider webhooks, normalizes events, and keeps subscription state, entitlements, and usage meters in sync. Your app just checks and tracks.
Supported billing models
| Model | Status |
|---|---|
| Flat-rate subscriptions | ✅ Supported |
| Usage-based (metered) | ✅ Supported |
| Credits / prepaid | ✅ Supported |
| Trials & freemium | ✅ Supported |
| Per-seat pricing | 🔜 Planned |