Monetization layer for the AI era

Meter every prompt.
Monetize every token.
Every customer interaction.

Set your pricing and start charging in minutes, not weeks. Metering, entitlements, real-time ledger, quota alerting, credits, subscriptions, usage limits, overages, invoicing, and revenue automation on a single programmable platform.

Designed for AI companies. Built for every usage-based business. Single-tenant data plane by design — your own pod, your own PVC, no shared database, no noisy neighbors. Or self-host MeterBox on your own cluster for fully dedicated infra.

POST /v1/meter
{
    "customer_id": "acme_corp",
    "model_id":    "llm-smart",
    "input_tokens": 1842,
    "output_tokens": 347
  }
200{"allowed": true, "cost_estimate_usd": 0.006736, "pct_used": 18.4}
< 1msentitlement latency
events per month
3 linesto integrate
MeterBox overview dashboard: MRR, active customers, tokens metered, daily revenue trend, and tokens by model

Trusted by teams building on top of

StripeAnthropicOpenAICursorGoogle CloudAWS
Stop reconciling. Start closing.

Three tools and a spreadsheet, or one revenue graph.

Most teams glue together metering, billing, and finance tools. The handoffs are where revenue leaks and close takes a week. MeterBox is one ledger from event to invoice—and from invoice to GAAP-compliant revenue recognition.

Before
Metering, billing, and finance in three tools with manual reconciliation
  • Metering pipeline in one system, plans in another, invoicing in a third
  • Reconciliation in a spreadsheet — every close is a manual diff
  • Entitlements hardcoded in app logic; quota errors hit prod, not pre-flight
  • Revenue recognition done after the fact, by hand, on a quarterly clock
  • Each pricing change is a release across three repos
With MeterBox
One ledger from event to revenue, GAAP-compliant on day one
  • Events, plans, credits, and invoices share one append-only ledger
  • Close in minutes — webhooks settle Stripe, ledger settles your books
  • Entitlements are a sub-millisecond pre-flight check, not a stack trace
  • ASC 606 / GAAP revenue recognition built in, per period, in real time
  • Pricing is a config change, not a deploy
Pricing insights: MRR by plan, trial conversion, feature adoption, and revenue at risk
One layer, not ten systems

The complete monetization layer.

Modern software monetization is fragmented — billing in one system, quotas in another, feature access hardcoded into apps, usage tracking a custom pipeline, reporting stitched together from invoices, spreadsheets, and webhooks. MeterBox is the most comprehensive monetization layer, exposed through APIs and designed to run directly in the critical path of your application.

Real-time meteringEntitlement enforcementUsage-based billingCredit systemsRevenue ledgersCustomer quotasFeature gatingSubscription orchestrationOverage automationRevenue reportingAlerting & notificationsDurable webhook deliveryAction-level RBACBilling-ops audit trailPrice localizationPricing-insights dashboardMulti-region + warm poolCLI + MCP serverTrace-ID observabilityMeterBox UI ComponentsTyped JavaScript SDKFinancial statementsBilling close automation

Whether you charge per token, API call, seat, workflow execution, compute minute, storage volume, or through a hybrid model, you get the primitives to implement and evolve your strategy without rebuilding your infrastructure every quarter. Everything is API-first, programmable, compliant, and infrastructure-grade.

Customers list with per-customer plan, MRR, quota used, and status
Built for
AI platforms & inference APIsSaaS with usage-based pricingAPI companiesDeveloper platformsInfrastructure providersB2B software vendorsMarketplace platformsHybrid subscription + consumption
The full stack

Everything Monetization. Nothing else.

From pricing to billing and beyond, we take care of the entire monetization process. Deploy in our cloud or your own environment, tell us a little about your pricing strategy and we handle the rest.

Isolated by design

Single-tenant SaaS architecture — your organization gets its own dedicated environment and storage. Your data is kept separate from other customers, with no shared databases and no competition for resources. This provides strong security, reliable performance, and built-in isolation for compliance and data governance needs.

{ affinity: isolated }
Real-time metering

Ingest token usage events via REST or batch. Each event writes the in-cluster ledger — the authoritative meter — deduplicated on `transaction_id` and recorded without ever blocking your inference path. Late events backfill into the right historical period and auto-reconcile at the next close.

POST /v1/meter
Ingest from anywhere

Point your existing event stream at MeterBox without a translation layer: CloudEvents 1.0 (binary, structured, or batched), a Segment destination, an Airbyte destination, a long-lived Kafka consumer, or S3/GCS/Azure bucket sweeps can all be mapped directly to meter events through dotted-path field mapping, with the same deduplication and idempotency guarantees as the native API.

POST /v1/meter/cloudevents
AI-native pricing

Price what AI actually does: `per-model_version` price bands (charge claude-3.7 differently from claude-3.5), latency-SLA premiums for sub-500ms responses, custom billing dimensions (`gpu_seconds`, `training_cycle_seconds`, `storage_gb`) with their own tier ladders, and dimensional plan-price overrides by region, deployment tier, or any key you define.

model_versions + latency_sla
Outcome-based pricing

The top of the pricing ladder: claim a billable outcome ("ticket resolved", "campaign sent") priced from your catalog — it bills only after you confirm it, or when its verification window closes undisputed. Disputed claims void without charge. Solves the attribution problem that keeps outcome pricing rare.

POST /v1/meter/outcomes
Entitlement engine

Sub-millisecond quota checks from an in-memory cache. Model access gates, plan feature flags, configuration entitlements (per-plan scalar values like `support_sla_hours`), grace periods between soft-alert and hard-block, overage policies (block, throttle, or bill), JWT tokens embedding full entitlement state, and an in-process Node SDK (`@meterbox/entitlement-sidecar`) with stale-while-error so your gateway stays live through API outages.

GET /v1/entitlements/:id
Tamper-Proof Ledger

Every usage event, subscription charge, overage, credit, and discount becomes a ledger entry, and each closed billing period is sealed with a verifiable SHA-256 digest — so a finalized period that was altered is detectable (SOC 1 ICFR ledger immutability). Monthly statements with day-by-day running balances and per-model breakdowns. Revenue recognition (ASC 606 / GAAP) derives deferred vs recognized revenue straight off the same ledger.

GET /v1/ledger/:id
Agent wallets

Per-agent (sub-customer) credit wallets with their own balance, spending limits, and budget caps — manage each AI agent's budget independently under a single account. Credits are temporarily set aside before use and then either charged or returned, preventing overspending even when multiple requests happen at the same time. Unused reservations are automatically released if a client disconnects or fails to complete a request.

POST /v1/wallets/:id/reserve
Credits, Caps & dunning

Promotional and paid credit grants with priority and expiry ordering, balance-low webhooks, off-session auto-recharge, and credit notes for finalized invoices. Per-customer spend caps return HTTP 402 before a runaway agent can burn through the budget, and a configurable dunning policy moves past-due customers from retries to escalation.

POST /v1/customers/:id/credits
Trials & win-back

Trial entitlements grant access to a richer plan for a specified number of days without modifying the underlying subscription. This includes reverse trials, which begin with full access and subsequently step down to the original plan. The cancellation flow presents plan-configured retention offers (for example, discounts, trial extensions, or downgrades), allowing the churn screen to attempt user retention before processing the cancellation.

POST /v1/customers/:id/trial
Discounts

Percentage-off and fixed-amount coupons with once, repeating, or forever durations. Plan restrictions, max redemptions, expiry dates, and automatic promotion code sync with Stripe.

POST /v1/coupons
Pricing intelligence

A COGS-aware margin view (revenue vs. provider cost by model), pricing simulations that replay real usage against a draft price book, NRR and GRR retention cohorts, deterministic A/B pricing experiments, and market packaging benchmarks alongside your own catalog.

GET /v1/dashboard/pricing-insights
Bring your own billing provider

Stripe and Zuora out of the box, or Custom Invoicing for a BYO-ERP flow where your finance system owns issuance and collections against MeterBox-computed totals. Per-customer billing profiles let you override provider, currency, payment terms, and invoice numbering for tailored contracts—supporting seat-based billing, contract commitments with minimum-spend true-ups, and localized pricing by country and currency.

PUT /v1/settings/billing
Quota alerting & durable webhooks

Configurable alerts can be triggered at 80%, 90%, 100%, or custom absolute token thresholds, with per-period deduplication to prevent duplicate notifications. Events are delivered via HTTP POST or AWS SQS with at-least-once delivery guarantees, exponential backoff retries, and a replayable delivery log, ensuring that downstream outages never result in lost events.

GET /v1/alerts/:id
Billing-ops audit trail

Every plan, customer, and credit mutation is captured in a queryable audit trail with before/after diffs and actor attribution—including per-individual operator attribution for shared admin keys. CLI and MCP clients forward `X-Operator-Id` from `METERBOX_OPERATOR_ID`, ensuring every action is attributable to a specific operator. Audit records are protected by a tamper-evident SHA-256 hash chain. Filter by event, target, and time, explore activity in the dashboard, or export to your SIEM.

GET /v1/audit
Granular RBAC

Beyond the built-in Owner/Admin/Member roles, each organization defines a configurable capability matrix that authorizes privileged actions independently. This enables fine-grained delegation—for example, billing operations staff can issue account credits without also receiving permissions to publish plans. Capabilities are assigned individually rather than inherited from broad roles, while Owners always retain unrestricted access to all capabilities.

PUT /cp/rbac/matrix
Period-end close

Automated billing close: we read usage from the in-cluster ledger, calculate overage, add Stripe line items, finalize invoices, mark ledger entries paid, and check coupon durations. Opt-in finance approval gate holds invoices at ready-to-issue until a human signs off.

POST /v1/billing/close
Tax engine

Flexible tax handling for invoices and credit notes: use built-in jurisdiction rates for on-prem and air-gapped deployments, or connect Avalara or Anrok for automated tax calculation. A single quote endpoint lets you preview exactly what will be applied before closing, and credit notes automatically handle both net and tax amounts.

POST /v1/tax/quote
Accounting export

Keep your ledger as the source of truth. Invoices, payments, credit notes, and tax entries are projected into your general ledger through an NDJSON stream or NetSuite/Xero import CSVs, mapped to your accounting structure. Lazy projection means no duplicated state and no sync drift.

GET /v1/accounting/journals
Revenue anomaly detection

An hourly scan of the ledger identifies spend spikes (comparing 24-hour cost against the trailing median), churn spikes, and aggregation drift—such as customers whose integration has silently broken. Results are deduplicated daily, surfaced in the pricing insights dashboard, and trigger an `anomaly.detected` webhook on first detection.

GET /v1/anomalies
Marketplace bridges

Sell through AWS, GCP, and Azure Marketplaces without giving MeterBox access to your cloud credentials. Lightweight entitlement bridges operate in records-only mode: your seller-side handler validates marketplace events and POSTs the resolved entitlement data to MeterBox. MeterBox then maps lifecycle events to customer status and makes the customer immediately available for metering.

/v1/integrations/*-marketplace
CLI + MCP Server

`@meterbox/react` provides drop-in widgets such as `PricingTable`, `PlanComparison`, `SubscriptionPreview`, `CreditBalance`, `CreditGrantsTable`, `CreditUtilization`, and `UsageChart` that self-fetch via customer-portal endpoints using short-lived customer JWTs (no admin key in browser). Alternatively, `@meterbox/customer-portal` exposes a full Account/Plans/Credits portal in one component. Built on the typed `@meterbox/node` SDK.

npm i -g @meterbox/cli
MeterBox UI Components + Customer Portal

`@meterbox/react` drops `<PricingTable>`, `<PlanComparison>`, `<SubscriptionPreview>`, `<CreditBalance>`, `<CreditGrantsTable>`, `<CreditUtilization>`, and `<UsageChart>` straight into your product — each widget self-fetches via the customer-portal endpoints with a short-lived customer JWT, so no admin key in the browser. Or skip the wiring entirely with `@meterbox/customer-portal` — a multi-page Account/Plans/Credits portal in one component. Backed by `@meterbox/node`, a fully typed JavaScript SDK.

npm i @meterbox/customer-portal
Four steps

From zero to billing in an afternoon.

01

Define your config

Set up your AI models, pricing per 1k tokens, plan limits, and feature flags. The platform validates it on startup.

{
  "models": [{
    "id": "llm-smart",
    "pricing": {
      "mode": "graduated",
      "input_tiers":  [{ "up_to": null, "per_1k": 0.003 }],
      "output_tiers": [{ "up_to": null, "per_1k": 0.015 }]
    }
  }],
  "plans": [{
    "id": "pro",
    "stripe_price_monthly_usd": 99,
    "limits": {
      "input_tokens_per_month": 10000000
    }
  }]
}
02

Your config is provisioned immediately

We wire up everything for you: the model catalog and pricing tiers, Stripe products and prices, and seed coupons.

Provisioning MeterBox ████████████████░░░░░░░

✓ Rate card created: rc_xk9j2
✓ Plan 'Pro': price=price_1abc ($99/mo)
✓ Coupon 'LAUNCH50': 50% off — first month
03

Start metering usage

At each usage event, fire POST /v1/meter with the token counts. Get back an entitlement decision, a cost estimate, and current usage percentages.

const res = await fetch('/v1/meter', {
  method: 'POST',
  body: JSON.stringify({
    customer_id: 'acme_corp',
    model_id: 'llm-smart',
    input_tokens: 1842,
    output_tokens: 347
  })
})
// { allowed: true, cost: 0.0067, pct: 18.4 }
04

Close billing cycle

A single scheduled job orchestrates the complete period-end close, including ledger usage reads, overage computation, Stripe invoice generation, ledger updates, and coupon tick processing.

Close Billing Cycle ██████████████████░░░░░

✓ Customers: 142
✓ Invoices sent: 142/142 (100%)
✓ Total overage: $2,841.50
✓ Coupons checked: 38 (4 expired)
Entitlement JWT Tokens

Access decisions at the edge.
Zero round-trips.

Issue a signed JWT that contains the customer's full entitlement state—plan, features, model access, quota limits, overage policy, and any active coupons. The API gateway we provide to you verifies the token locally, with no database lookups or network calls required.

  • HS256 signed, configurable TTL
  • Auto-refreshed after plan changes or coupon applies
  • Express middleware: requireEntitlementToken(), requireFeature("webhooks"), requireModel("llm-vision")
  • Client-side helpers: hasFeature(), canUseModel(), getQuota()
// Your AI gateway — no DB call needed
import { requireEntitlementToken, requireModel }
  from 'meterbox/middleware'

app.post('/v1/chat',
  requireEntitlementToken(),
  requireModel('llm-smart'),
  async (req, res) => {
    const { quota, overage_behavior } = req.entitlements
    // quota.input_tokens_per_month = 10_000_000
    // overage_behavior = "bill"
    // → full entitlement state, zero latency
  }
)
Security & Compliance

Compliance-grade from the first request.

Single-tenant isolation, NIST-aligned controls, and a hash-chained audit trail your security team will actually trust. Eleven security policies and procedures: InfoSec, incident response (IR), disaster recovery (DR) testing, business continuity and disaster recovery (BCP/DR), data retention, vendor management, risk management, a risk register, security awareness training, and pentest and bug bounty programs—with a SOC 2 evidence map kept current for every release. One canonical landing page at /trust, with deeper documentation at /security and /compliance.

Built for SOC 2 & FedRAMP

Technical controls mapped to NIST 800-53 out of the box — access control, audit, session management, transport, and input validation. A compliance-ready foundation that shortens your path to an audit.

SOC 2 · FedRAMP · NIST 800-53
MFA, SSO & strong auth

TOTP multi-factor with one-time backup codes, OIDC single sign-on for Google and enterprise IdPs, bcrypt-hashed credentials, and NIST 800-63B password rules with optional breached-password screening via k-anonymity.

RFC 6238 · OIDC · NIST 800-63B
Session controls

The application enforces sliding idle session timeouts with a hard absolute session lifetime in alignment with FedRAMP AC-11 and AC-12. It implements CSRF protection using the double-submit cookie pattern and secures session cookies with the `HttpOnly`, `Secure`, and `SameSite` attributes. Sessions automatically expire after a period of inactivity and are terminated upon reaching the maximum allowed session duration. Long-lived (e.g., 30-day) session tokens are not permitted.

FedRAMP AC-11 / AC-12
Two append-only audit trails

User lifecycle events (signup, login, MFA, invites, role changes) land in a tamper-evident SHA-256-chained log on the control plane. A separate billing-ops trail captures plan / customer / credit mutations with before-after diffs. Both pull straight from the API with cursor pagination.

GET /cp/audit · /v1/audit
Your data never leaves your cluster

Single-tenant by design: includes a bundled in-cluster datastore and cache, with no managed or shared database. Optional encrypted off-cluster backups (using a tenant-supplied encryption key—never ours) can be sent to your S3, GCS, or Azure storage on a schedule you choose. Air-gap deployable for regulated and sovereign environments.

Air-gapped by design
Hardened by default

The OWASP secure headers baseline is applied to every response, including strict `Content-Security-Policy` with violation reporting, HSTS, and cross-origin isolation. Defense in depth is built in from day one, not bolted on after launch.

OWASP · CSP · HSTS
Deployment

Same solution, three operating models.

MeterBox is the same APIs, the same infra, the same data plane regardless of how it's operated. Pick where it runs and who runs it — from shared Cloud to sovereign single-tenant clusters.

Cloud

Same solution, same APIs, run by MeterBox in shared infra.

For
SaaS teams that want the platform without maintaining the cluster.
Deployment
MeterBox-operated cluster, multi-tenant control plane + per-(org, env) data-plane setup. Each tenant gets its own PVC; no row-level filters.
SLA
99.9% uptime, 24h response on P1
Compliance
SOC 2 Type II
  • Full API surface
  • Stripe + Zuora billing rails
  • Outbound webhooks (HTTP + SQS)
  • Auth0 / OIDC SSO integration
  • Tenant-supplied off-cluster backup mirror
  • Per-region warm pool
Start free

Self-Managed

Install the same solution in your own cloud.

For
Teams that need data residency, regulatory control, or zero outbound dependencies.
Deployment
Deploy MeterBox in any conformant cloud (EKS, GKE, AKS, k3s, OpenShift, on-prem). Bundled DB + Cache; no managed services required.
SLA
Best-effort community support, paid support add-on
Compliance
HIPAA-ready, ISO 27001 path
  • Same APIs as Cloud
  • Bring-your-own KMS / Vault / Sealed Secrets
  • Air-gappable deployment
  • Disable any outbound integration (Stripe, Zuora, webhooks) per env
  • Control OS/Filesystem scanning and admission policy
Read the on-prem guide

Managed (sovereign)

MeterBox operates a dedicated cluster inside your sovereign cloud or region.

For
Defense, public sector, fintech, healthcare — workloads with data-sovereignty + FedRAMP / HIPAA / GDPR-grade requirements.
Deployment
Single-tenant cluster in your chosen region (AWS GovCloud, GCP Assured, Azure Government, EU-only AWS, on-prem). MeterBox SRE runs it while you still hold the keys.
SLA
99.95% uptime, 4h response on P1, 24/7 oncall
Compliance
FedRAMP Moderate (target), HIPAA, GDPR data-residency, ISO 27001
  • Everything in Self-Managed
  • BYOK via KMS / HSM
  • Audit-log streaming to your SIEM
  • You own VPC peering
  • Quarterly external pentest report
  • Subprocessor list scoped to your region
Talk to sales
Roadmap teaser

Next on the runway.

MeterBox Advisor

Translate a plain-English enterprise deal brief into a structured, catalog-grounded subscription proposal — plan, add-ons, limits, and the exact admin API calls to apply it, every path validated against your catalog.

AI contract extraction

Upload a signed PDF contract; extract commit amount, term, custom rates, and discounts into a reviewable proposal — sales-closed to billing-configured in one step.

Lifecycle email automation

Templated triggers on the webhook catalog — trial expiring, payment failed, win-back offer — rendered and sent through your own Resend / Postmark / SES account, with deliverability on the existing webhook dashboard.

Pricing

Pay for customers, not complexity.

Every plan includes the full API surface. No feature gating.

Starter
$0forever

For prototyping and solo projects.

  • Up to 3 customers
  • All core APIs
  • In-cluster metering
  • Ledger & statements
  • Community support
Start free
Most popular
Growth
$149per month

For production workloads and growing teams.

  • Up to 500 customers
  • Quota alerting (Slack/webhook)
  • Entitlement JWT tokens
  • Coupon engine
  • Period-end close automation
  • Email support + 4h SLA
Start trial
Enterprise
Customcontract

Unlimited customers, SLA, dedicated support.

  • Unlimited customers
  • White-glove onboarding
  • Custom SLA
  • SSO & audit logs
  • On-prem deployment option
  • Dedicated Slack channel
Get Started

Programmable monetization infrastructure for modern software.

Stop assembling billing providers, quota engines, spreadsheets, and reconciliation pipelines. Operate monetization from one unified layer. No credit card required to try out.