How to set up usage-based billing with Stripe Meters
To set up usage-based billing with Stripe Meters, create a meter that sums (or counts) the events you bill for, attach a metered price to it, put each customer on a subscription with that price, and send a meter event from your app every time a customer uses the product. Stripe adds up the events and bills the total at the end of each billing period. Before you build, check one thing: Stripe's docs now call this "basic usage-based billing" and recommend Metronome for new integrations, so decide which of the two you need first.
This guide covers that decision, then the setup in order, with the limits from Stripe's docs as of 28 November 2026.
First decide: Meters or Metronome
Stripe's comparison page says Metronome is "the recommended starting point for all new integrations", and that Stripe "continues to fully support basic usage-based billing for existing integrations." Metronome joined Stripe in January 2026 (background here).
The same page shows what basic billing with Meters cannot do. It has no prepaid credits with drawdown, no enterprise commits or ramp schedules, no dimensional pricing and no real-time usage visibility. Credit-based pricing works, but credits are reconciled only at invoice time, so a customer can go past their balance during the cycle.
It also shows what Metronome cannot do yet. Connect, Adaptive Pricing, Workflows and the Stripe Dashboard are marked as unsupported for Metronome, and Checkout support is "Limited" because it needs custom API calls and webhook setup.
A decision rule for a small SaaS:
| Your situation | Pick |
|---|---|
| Simple per-unit or per-package price, card checkout, a few hundred customers | Basic billing with Meters |
| You sell on Stripe Checkout and want the Dashboard to manage subscriptions | Basic billing with Meters |
| You run a platform on Stripe Connect | Basic billing with Meters |
| Prepaid credit balances that must stop usage in real time | Metronome |
| Annual commits, minimums or negotiated contracts | Metronome |
| Prices that vary by several dimensions (model, region, tier) | Metronome |
Most early products fall in the first rows. If you later need commits or real-time credit burndown, Stripe documents a migration path to Metronome.
Step-by-step setup with Meters
The steps follow Stripe's pay-as-you-go guide. Do them in a sandbox first.
-
Create a meter. In the Dashboard, open Meters and click Create meter. Give it a display name and an event name, for example
api_requests. Your app sends this event name with every usage record. Pick the aggregation method: Sum adds up the values you report (tokens, minutes, GB), Count bills the number of events, and Last bills the last value reported, which suits a gauge such as seats in use or storage on the last day. -
Create a product with a usage-based price. In the Product catalog, create a recurring product, choose More pricing options, then Usage-based. Pick the structure: per unit, per package (for example 0.04 USD per 100 tokens, as in Stripe's example), or per tier. Select the meter from step 1 and set the billing period.
-
Create the customer and the subscription. Store the Stripe customer ID next to your own user or account ID, because every meter event needs it. A subscription can hold a metered price alongside a flat price if you charge a base fee plus usage.
-
Send meter events from your app. Call
POST /v1/billing/meter_eventswith the event name, the customer ID and a numeric value in the payload, plus an optional timestamp and identifier. Stripe's recording usage page sets these limits:- the timestamp must be within the past 35 calendar days and no more than 5 minutes in the future;
- live mode allows 1,000 meter event calls per second per account, and only one concurrent call per customer per meter;
- meter event streams (the v2 API) take up to 10,000 events per second, in live mode only;
- Stripe processes events asynchronously, so an upcoming invoice may lag behind the latest events.
-
Preview an invoice before going live. Send a test event from the meter's page (Add usage, then Manually input usage), open the subscription and check the Upcoming invoice section. It should show the quantity and the price you expect.
Make the integration safe
Most billing bugs come from events that get lost or counted twice. Four habits prevent most of them.
- Set your own
identifieron every event, derived from something unique in your system, such as the request ID or the job ID. If Stripe does not get one, it generates its own, and a retried call then looks like new usage. - Do not call Stripe inside the request path. Write usage to your own table first, then send it from a background worker in batches per customer. This keeps you under the one-concurrent-call-per-customer limit and lets you retry without blocking users.
- Keep your own usage table as the source of truth. It lets you show customers a usage page, answer billing questions and re-send events that failed. If a worker was down, you have 35 days to back-fill.
- Watch for the first invoice. Stripe notes that with
billing_mode=flexible, metered items are left off the first invoice because there is no prior usage, whileclassicsubscriptions show a zero-amount line. Customers who expect a charge on day one may ask why there is none.
Stripe also offers usage alerts that fire when a customer passes a usage threshold. Use them to email customers before a large bill, which saves you refunds and support threads later.
What it costs
Stripe Billing's pay-as-you-go fee is 0.7% of billing volume, on top of card processing, according to the Billing pricing page. The same page lists usage-based billing with Metronome separately, with a link to contact Metronome sales, so ask for a quote if you are choosing Metronome. Compare the total with merchant-of-record options in this fee breakdown if tax handling is part of your decision.
Worked example
Say you sell an API at 2 USD per 1,000 requests with a 10 USD monthly base fee.
- Meter: event name
api_requests, aggregation Sum. - Prices: a flat 10 USD monthly price and a per-package price of 2 USD per 1,000 units linked to the meter.
- App: each request writes a row with
request_id, customer and value 1. A worker every minute sums rows per customer and sends one event per customer withidentifierset to the batch ID. - A customer making 45,000 requests in a month gets 10 USD plus 45 packages at 2 USD, so 100 USD before tax.
If that customer later asks for a prepaid annual commitment with a monthly drawdown, that is the point to look at Metronome. If you only need prepaid packs, the options in this guide to prepaid API credits may be enough.
Frequently asked questions
Is Stripe Billing Meters deprecated?
No. Stripe calls it basic usage-based billing, recommends Metronome for new integrations, and says it continues to fully support existing Meters integrations. Existing users do not need to migrate.
How far back can I send Stripe meter events?
The event timestamp must be within the past 35 calendar days and no more than 5 minutes in the future. Older usage cannot be recorded through meter events.
What is the rate limit for Stripe meter events?
In live mode, 1,000 calls per second per account, with one concurrent call per customer per meter. Meter event streams in the v2 API accept up to 10,000 events per second in live mode.
Which aggregation should I choose for a Stripe meter?
Use Sum for quantities such as tokens or minutes, Count when each event is one billable unit, and Last for a value that represents a level, such as storage at the end of the period.