Introduction
Commet is a billing and payments platform for SaaS and AI products.
Commet is a billing and payments platform for SaaS and AI products. It handles recurring billing, taxes, compliance, and payouts so you can focus on your product.
Quickstart
Next.js
Add billing to a Next.js app
Remix
Add billing to a Remix app
Nuxt
Add billing to a Nuxt app
SvelteKit
Add billing to a SvelteKit app
Astro
Add billing to an Astro app
Express
Add billing to an Express server
Hono
Add billing to a Hono app
Bun
Add billing to a Bun server
The Plan-First Model
You define what you sell, package it into a plan, and assign it to a customer. Billing runs automatically from there.
- Features — define capabilities like API calls, seats, or SSO access
- Plan — bundle features with pricing and a consumption model
- Customer — assign the plan and a subscription is created
- Billing — invoices, usage tracking, and payments happen without intervention
Consumption Models
Every plan uses one consumption model. This defines how customers consume and pay for features.
| Model | How it works | Examples |
|---|---|---|
| Metered | Base price + overage billed at period end | Twilio, Resend, AWS |
| Credits | Prepaid credits consumed by usage | Midjourney, Cursor, Replit |
| Balance | Prepaid dollar balance drawn down by usage | Supabase, Railway, Vercel |
Models are mutually exclusive — each plan uses exactly one. Learn more about consumption models.
Explore
Customers
Create and manage customers with the SDK
Plans
Create pricing packages with features and billing intervals
Subscriptions
Manage lifecycle, trials, and plan changes
Usage Tracking
Record and aggregate consumption events
Invoicing
Invoices, billing cycles, and failed payment handling
Customer Portal
Self-service upgrades, credit purchases, and invoices
Finance & Payouts
Balances, transaction history, and bank payouts
SDK Reference
Node.js SDK methods and usage
How is this guide?