Usage metering you can bill on

Meter API calls, agent runs and seats. Enforce limits as usage happens, show customers what they've used, and keep Stripe quantities accurate.

MacabacusHummingbirdsAutomoxWobbyPlotlyBikebookPickleheadsCloudRakerPagosHannon HillTightknitOneCrewZepSema4.aiSyrtoUniqodeMakeswift
acmeAgentsAPI keysTeamUsageBillingJL
API calls · this period
1,300used of 2,000 included
Today+40
Remaining700
Included in the plan · 2,000
Nov 1TodayResets Dec 1

Usage by user · API calls this period

Running low?
42user-42api-call800 calls
17user-17api-call500 calls
Usage remainingOf 2,000 included700 calls
Report an API callNode
await client.track(  {    event: "api-call",    company: { id: "acme" },    user: { id: "user-42" },  },  { idempotencyKey: "request-123-attempt-1" },);
EventsLive
Counted once

Schematic ties each event to a company and a user, then adds it up against the feature's limit. A retry with the same key is dropped.

Homegrown meters start simple but don't stay that way

A counter and a monthly export turn into a pipeline you have to maintain.

  • Limits drift by customer

    One global counter breaks once plans, overrides and billing periods differ by customer.

    override in a spreadsheet

  • Retries create phantom usage

    A retry counts the same call twice, a late event lands in the wrong period, and the customer notices first.

    retry counted twicelate event, wrong period

  • The invoice has no trail

    A monthly export gives Stripe a quantity, but it can't show which events made that number.

    quantity with no trail

How usage metering works

Report each event or current trait through the usage metering API. The same record powers enforcement, the customer's usage view and billing.

Create a metered feature

Use an event-based feature for actions over a period, or a trait-based feature for a current value like seats. Set the plan's limit, period and reset rule.

Metered feature setup docs

Report usage safely

Send a track event or update a trait. SDKs buffer and retry, and an idempotency key drops a repeated event.

Track event and idempotency docs

Check what the plan allows

A flag check returns access, current usage and allocation from the customer's entitlement. Add a warning threshold below the hard limit.

Usage and allocation docs

Report, display and bill

Pull usage history per company, show it in your app, and sync billable quantities to the mapped Stripe metered product.

Cross-company usage reporting docs
// One billable action
await client.track({
event: "api-call",
company: { id: companyId },
user: { id: userId },
}, { idempotencyKey: requestId });
// Retry the same request with the same key.

One usage record powers the workflow

api-callAcme · user-42+1
  • Limit checkEnforceallowed · 700 remaining
  • Customer usage viewDisplay1,300 of 2,000
  • Stripe quantityBill1,300 reported

One usage record for limits, reporting and invoices

Every quantity traces to its events

Open the events behind a billable quantity to see the timestamp, company, user and properties on each one. See in Stripe opens the matching billing record.

Events and current-state traits

Use events for API calls, tokens and agent runs. Use traits for counts that go up and down, like seats and projects.

Safe retries, no double counting

Retry a track event with the same idempotency key and Schematic drops the duplicate for 24 hours. SDKs buffer, flush and retry for you.

Corrections with clear boundaries

Negative quantities and trusted client timestamps correct recent usage, and billing follows. Analytics-only backfill imports older history without billing effects or webhooks.

Usage reports you can sum

Pull incremental usage by company, feature and period, as a total or in hourly to monthly buckets. Each range includes its start and excludes its end, so adjacent periods never overlap.

Usage customers can see

Build customer usage views on the checks and usage history your app already uses. Show current usage, the limit and usage by user without a second reporting pipeline.

Limits that follow the plan

For real-time usage metering, set a numerical limit, leave usage uncapped or read each company's limit from a trait. Flag checks return usage and allocation, and a usage warning adds a lower threshold.

Keep billing in Stripe, with usage that stays accurate

Map a usage-based feature to a Stripe metered product, and Schematic reports billable usage to Stripe in real time. Stripe issues the invoice. Schematic keeps the quantities accurate and links them back to the events your app sent.

Stripe
Customers↔ companies
Metered products↔ features
Subscriptionsactive
Invoices← usage quantities
customers, products, subscriptionstwo-way sync
billable usage quantitiesreported in real time
invoices and paymentshandled in Stripe
Schematic
Eventssent by your app
Usagecounted per company
Limitshard · soft · tier
Event trailbehind each line item

Quantities stay in step

Usage shows up in your app, the Schematic dashboard and Stripe, so you aren't reconciling a monthly export by hand.

The line item has a trail

The company profile's Subscription tab shows the quantity behind each line item and the period it covers. See in Stripe opens the matching record.

Your pricing model fits the entitlement

Set up pay as you go, fixed fee with overage, volume or graduated pricing on the metered feature. Use credits when you want a prepaid balance instead.

How teams meter seats, API calls and AI usage

API calls and agent runs

Send an event for every request, report or agent action. Check the plan's remaining usage before the next action, then report usage by company and user.

Seats, projects and devices

Report the current trait when it changes, instead of inventing events for a resource count. Schematic compares the current value with the limit on that company's plan.

Included usage and overage

Include a quantity with the plan and let customers keep going past it, or set volume and graduated tiers. Show the same usage and limit in the customer portal.

Pagos
“We just went through a spreadsheet to see the usage, then looked at everyone's specific plan to calculate billing manually. There was no enforcement.”
Jeffrey DuranteProgram Manager, Pagos

Pagos ran on custom contracts and spreadsheet billing. Usage was collected by hand, and every customer needed someone from the commercial or finance team. Schematic now meters API consumption against each plan.

Read why Pagos replaced its homegrown billing stack

Why teams stop building their own usage metering

Getting usage in is one job, whether you’re building it yourself or buying other usage metering software. Plan-aware enforcement, customer usage and invoicing are the next three.

SchematicSchematic
Build in-house
Other usage-based billing platforms
Events and current-state usage
Track events for actions; company traits for current values such as seats
You design and maintain both
Usage events, including periodic heartbeat events
Safe retries
Optional idempotency key; duplicates dropped for 24 hours per environment and event type
You build it
Event-ID deduplication, with the retention window varying by platform
Late usage and corrections
Negative quantities; recent billing corrections; analytics-only backfill up to 365 days
You build it
Negative events, backdated events and historical ingest, with workflows and windows varying by platform
Usage by company and feature
Incremental feature usage history by company, feature and period
You build it
Usage APIs and dashboards grouped by customer and event properties
Customer-facing usage UI
Usage and allocation APIs plus company/feature reporting for your own customer views
You build it
Embeddable usage dashboards or usage APIs, based on the platform
Plan-aware access check
Flag check returns access, usage and allocation from the plan or company override
You build it
Balances and threshold alerts, with enforcement handled in your app
Works with Stripe
Maps features to Stripe metered products and reports billable usage in real time
You map, sync and reconcile it
Generates usage invoices and integrates with Stripe for payment collection or invoice sync
Trace from quantity to source events
Company, user, timestamp and full properties; line items link to Stripe
You build it
Event explorers, usage APIs and invoice breakdowns
Best for
Teams that want metering, plan enforcement, in-app usage and Stripe sync from one record
Unique needs and spare engineering capacity
Complex usage rating, contracts and invoicing

Built for enterprise

Built to stay up, stay secure and stay observable.

SOC 2 · AICPAGDPR compliantGDPRCOMPLIANTStripe Verified Partner

Availability

  • 99.99% uptime SLA
  • 24/7 support
  • Public status page
Availability docs

Security

  • SOC 2 Type 2 compliant
  • PCI Level 1 via Stripe
  • GDPR compliant, SSO and 2FA
Security docs

Observability

  • Audit logs and real-time events
  • Client-side rule evaluation
  • Replicator: reads stay in your network
Observability docs

Questions teams ask about usage metering

Short answers, each one backed by the docs.

Usage metering records how much of a product each customer uses, then turns that into quantities you can enforce, report and bill. In Schematic, an event-based feature adds up actions like API calls or agent runs, and a trait-based feature reads a current value like seats or projects. The customer’s plan supplies the limit and billing model.

Meter what customers use. Bill what they actually consumed.

Capture events and traits, enforce plan limits, show usage in your product, and keep Stripe quantities accurate.