Updated
Ship and run

Usage-Based Billing

Charge customers for what they use — API calls, AI tokens, seats, storage — by metering events and turning them into invoices.

For your framework or language:Next.js
Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

Trends

Metronome gained the most ground in package downloads: 10.7× against the median npm package over a year.

Public counts each month: pull requests on GitHub, package downloads, stars, Product Hunt followers. They show direction, not market share.

ToolDownloadsStarsProduct Hunt
Stripe19.7M/wk+40% vs npm—10.7k followers
MetronomeAcquired428.6k/wk10.7× vs npm★ 5—
Polar275.8k/wk+142% vs npm★ 10.4k2.1k followers
Chargebee230.7k/wk−21% vs npm—1.5k followers
Orb179.3k/wk+0% vs npm——
Autumn170.6k/wk7.9× vs npm★ 2.8k900 followers
Lemon SqueezyMoving119.3k/wk+31% vs npm—1.4k followers
Dodo Payments89.3k/wk4.1× vs npm—2.3k followers
Lago48.1k/wk+38% vs npm★ 10.7k1.5k followers
Stigg36.4k/wk−63% vs npm—1.2k followers
OpenMeterAcquired23.7k/wk+6% vs npm★ 2.4k—
Paid15k/wk★ 71 reviews
FlowgladArchived4.9k/wk——

The real choice

Your payment processor, a dedicated metering engine, or a merchant of record. Using your processor's own metering keeps everything in one place; a dedicated engine handles complex pricing and heavy event volume but is another system to integrate; a merchant of record also takes on sales tax, for a higher fee per transaction.

What makers chose30 live products, each with a source. Not market share.

Pick by situation

Tap the ones that are you — the tools that fit light up below.
  • Your subscriptions already run on Stripe and your pricing is a plan plus overageStripe
  • You're solo, sell worldwide and don't want to deal with sales taxPolar
  • Your pricing is too complex for your processor and you'd rather self-host the metering than pay for itLagoOpenMeter
  • You're on Stripe and want credits, limits and plan changes without writing webhook codeAutumn
  • Usage revenue is the core of the business and you have the budget for a sales-priced toolOrb

Compare the tools

Grouped by the side of the choice they answer, not ranked. Open a row for when to use it, the trade-off and what makers say.

ToolBest for
Payment processor1
StripeapiApps already on Stripe that want meters and usage-based prices next to their subscriptions.119.7M/wk+40% vs npm

Use it whenYou want to add a metered charge to existing Stripe subscriptions without another vendor.

Trade-offYou are the merchant of record, so sales tax and VAT are yours to handle.

llms.txtMCPCLIIn Bolt, Lovable, Replit, v0

Used by giselle.

Stripe powers our entire billing infrastructure. The new Billing for LLM tokens feature (Private Preview) made it incredibly easy to implement usage-based pricing for AI API consumption — what would have taken weeks to build ourselves was ready in days. Combined with Pricing Plan Subscriptions for our team plans, Str…
giselle, the makerSep 2026 ↗
Merchant of record1
Polarservice · open sourceSolo developers who want usage billing, subscriptions and sales tax handled by one open-source service.No evidence yet275.8k/wk+142% vs npm

Use it whenYou want to charge for usage without registering for sales tax in every country you sell to.

Trade-offHigher per-transaction fee than a plain processor; fewer billing options than dedicated engines.

llms.txt

No maker's product we track shows it for this yet.

Metering engine4
OrbapiHigh-volume usage billing with many pricing models, for products whose revenue depends on it.15179.3k/wk+0% vs npm

Use it whenPricing experiments and invoicing accuracy have become a revenue problem.

Trade-offNo free tier and sales-priced — built for funded teams, not side projects.

llms.txt

Used by Alchemy, Opus, Airbyte, Factory, Hookdeck and 10 more.

Autumnservice · open source · free tierCredits, usage limits and plan entitlements on top of Stripe, checked from your code with a few calls instead of Stripe webhooks.12+15 open source170.6k/wk7.9× vs npm

Use it whenYou're on Stripe and want to change pricing — plans, credits, overage — without rewriting billing code each time.

Trade-offA young company; one more service between your app and Stripe that access checks depend on.

llms.txtCLI

Used by Almanac, Prism Videos, Slashspace AI, Backdrop, Databuddy Analytics and 7 more · in 15 open-source projects.

Autumn made usage-based billing and subscription management much easier for our small team.
Almanac, the makerSep 2026 ↗
Lagoapi · open source · free tierComplex usage pricing you want to self-host for free, sitting on top of your payment processor.148.1k/wk+38% vs npm

Use it whenYour processor's metering can't express your pricing, and you're fine running one more service to keep it free.

Trade-offOne more system to host and connect to payments.

llms.txt

Used by Cerebrium.

Lago has made it very simple to implement usage based billing for our clients that we could easily integrate via API. It is also very feature rich when it comes to
Cerebrium, the makerSep 2026 ↗
OpenMeterapi · open source · free tierOpen-source, real-time metering of high-volume usage events (API calls, tokens, compute), turned into entitlements and invoices.No evidence yet23.7k/wk+6% vs npm

Use it whenYou need accurate usage counts at high event volume and want to self-host the meter, or run it on Kong's cloud.

Trade-offA stack of services (including Kafka and ClickHouse) to run if self-hosted; now part of Kong's product line.

llms.txt

No maker's product we track shows it for this yet.

Who switches to what

Public pull requests on GitHub since Oct 2024 whose title says "X to Y" — real code changes, by developers in general rather than makers only. Pick a flow to see its pull requests.

Stripe → Polar: 12 pull requestsLemon Squeezy → Stripe: 5 pull requestsLemon Squeezy → Polar: 4 pull requestsPolar → Stripe: 3 pull requestsStripe → Lemon Squeezy: 3 pull requestsStripe 15Lemon Squeezy 9Polar 3Polar 16Stripe 8Lemon Squeezy 3Moving fromMoving to

Before you choose

How to approach it

Record every billable event in your own database first, with an idempotency key, even if a billing tool also meters it — that's your audit trail when a customer disputes an invoice. Keep pricing simple at launch (a base plan with included usage plus overage) and put a hard spending cap in place for AI costs. Move to a dedicated engine only when your processor can't express the pricing you need.

Common mistakes
  • Relying only on the billing tool's meter with no event log of your own, so you can't show a customer why their invoice says what it says.
  • Sending usage events without idempotency keys, so a retry after a timeout bills the same API call twice.
  • Selling uncapped AI usage at a flat price, where one heavy user can cost more in model fees than they pay you.

Other options

Real choices most makers here won't need to weigh.

ChargebeeMetering engineA mature hosted billing system for subscriptions plus usage charges, invoices and dunning, on top of the payment gateway you already use.7 makers' productsStiggMetering engineReal-time entitlement and credit checks for AI products — what each customer, user or agent may do — before a request runs, synced to Stripe or another billing system.1 makers' productMetronomeMetering engineAcquired · Jan 2026High-volume usage billing with SQL-defined metrics, rate cards, commits and credits, for self-serve and enterprise contracts.1 makers' productPaidMetering engineBilling for AI agents by the work they do — agent events turned into value-based units, invoices that link each line to its events.1 makers' productKelviqMerchant of recordA merchant of record that also meters tokens, compute and API calls, with entitlements and global sales tax in one platform.1 makers' productDodo PaymentsMerchant of recordAI and SaaS products that want usage-based billing and global sales tax handled by one provider.CreemMerchant of recordA merchant of record with credit wallets, custom meters and usage-based pricing for AI products, plus revenue splits.Lemon SqueezyMerchant of recordMoving users · Jan 2026Usage-based billing on Lemon Squeezy subscriptions, reporting usage back for each billing period, with sales tax handled.FlowgladMetering engineShut downOpen-source subscriptions and usage billing without webhooks, with an API that reported each customer's plan and features.

Decided alongside

What the 30 makers' products here chose for their other decisions.