Measure consumption, manage subscriptions, and accept payments for your SaaS or AI product with Commet.
Commet is a billing and payments platform for SaaS and AI products. It connects what your customers use with what they pay: subscriptions, usage charges, credits, and one-time payments.
You define what you sell and how you price it. Commet manages the billing cycle, invoices, and payment flows. Your application reports consumption and uses Commet's access checks and events to decide what each customer can do.
Go from creating an account to your first subscription and test payment.
Connect your assistant to Commet's documentation and API through MCP.
Sell a monthly or annual plan with a fixed price, usage charges, or a combination of both. Define features such as API calls, team seats, storage, or access to a capability, then package them into plans.
A subscription connects a customer to a plan. Commet manages its billing cycle and invoices as the subscription renews or changes. You can offer trials, handle upgrades and downgrades, and configure failed-payment recovery.
An AI request, an API call, and a stored file represent different kinds of usage. Commet lets you define how that usage affects the customer's bill or available allowance.
Each plan has one consumption model:
| Model | How it treats usage |
|---|---|
| Metered | Measures usage against each feature's included allowance, with overage charges when configured. |
| Credits | Deducts credits from a shared pool as customers use features. |
| Balance | Converts usage into monetary amounts drawn from the customer's balance, with overage behavior defined by the plan. |
Your application reports usage to Commet. For AI products, token billing uses the model and token counts you report to calculate consumption with your configured margin. You can also manage team seats and quantities such as stored resources.
Accept a one-time payment without creating a plan or subscription. This is useful for a standalone purchase or service alongside your recurring product.
For subscribers, offer add-ons to extend a plan, credit packs for more consumption, or balance top-ups. These give customers a way to buy more without changing their entire subscription.
Use checkout to collect payment and the customer portal to let customers view invoices, update payment methods, and review usage. Configure plan groups to offer self-service plan changes.
You can also create reusable offers, distribute them through promo codes, and configure regional prices for different markets and currencies.
Use Commet's Merchant of Record offering, or connect your own Stripe or dLocal account.
For payments processed through its Merchant of Record offering, Commet handles tax collection and remittance, compliance, refunds, and disputes on your behalf. With your own Stripe or dLocal account, you remain the merchant and manage funds and payouts with that provider. Commet provides the billing layer in either setup.
The guides cover payment routing, transactions and refunds, and finance and payouts. Before using Commet as Merchant of Record, review supported countries and verification requirements.
Start in the dashboard to configure your product, then connect your application with an API key. Choose a guide for your stack:
| Stack | Integration guides |
|---|---|
| JavaScript and TypeScript | Next.js, Nuxt, SvelteKit, Express, or the Node.js SDK reference. |
| Python | Python, FastAPI, Django, and Flask. |
| Go, Java, and PHP | Go, Java, PHP, and Laravel. |
Using Better Auth? The Commet plugin connects customer creation and billing to your authentication flow. For complete applications you can adapt, explore the examples.
The CLI lets you manage Commet from your terminal and work with billing configuration as code. The REST API reference documents the endpoints available to your own tools and integrations.
For an AI coding assistant, install the Commet skill for integration guidance. Connect the MCP server when the assistant also needs to read documentation and work with resources in your organization. The skill provides guidance; MCP provides access to tools.
Build your first flow in sandbox, where you can exercise checkout and billing without real charges. Use access and usage checks in your application to enforce the plan you sell.
Connect signed webhooks to keep your application in sync with subscription and payment outcomes. Review error handling before moving the integration to production.
Ready to start? Follow the quickstart to create a feature, plan, customer, subscription, and test payment in order.
How is this guide?