Turn Every AI Call into Billable Revenue

Usage-based, token-based, credit-based, outcome-based—Amberflo handles every pricing model, automates invoicing, and connects to the tools your finance team already uses.

Any pricing model. Zero re-instrumentation.

Configure the exact billing structure your customers need—and change it anytime without touching your event tracking.

Charge for exactly what customers consume

Bill on any meter—tokens, API calls, documents processed, GPU seconds, or custom events. Rates update automatically when your pricing changes.

  • Pre-unit pricing on any metered event
  • Minimum commitments and caps supported
  • Proration handled automatically mid-cycle
  • Seat + usage hybrid plans

Volume discounts, bundles, and overage charges—automated

Define graduated tiers where unit prices drop as usage climbs. Add flat-rate bundles, overage charges, and platform fees—all computed automatically at invoice time.

  • Graduated tiers with automatic tier-break calculation
  • Volume tiers (retroactive pricing)
  • Flat recurring fees combined with usage
  • Overage rates above contracted limits

Sell credits upfront. Deduct in real time.

Enable customers to buy a credit balance in your own currency. Amberflo deducts automatically on every usage event and tracks balances, rollovers, and expirations with no custom logic needed.

  • Custom credit currency (e.g. "AI Units", "Tokens")
  • Real-time balance deduction per usage event
  • Configurable rollover and expiration rules
  • Low-balance alerts and automated true-ups

Automated invoices with line-item accuracy

Amberflo generates invoices directly from usage data at the end of each billing cycle. Every line item is traceable back to individual events—no reconciliation required.

  • Auto-generated on billing cycle close
  • Line items per meter, model, or feature
  • Interactive customer billing portal
  • Stripe integration for payment collection

From usage event to paid invoice

Amberflo closes the loop between every AI call and the revenue it generates—automatically.

Meter Usage

Send one event per AI call. Amberflo captures tokens, model, customer ID, and any custom dimensions.

Apply Pricing

Usage is matched to the customer's pricing plan—tiered, flat, credits, or custom—in real time.

Generate Invoice

At cycle close, Amberflo auto-generates a line-item invoice with full traceability to events.

Collect & Recognize

Stripe collects payment. Revenue recognition schedules apply automatically. Finance is audit-ready.

Everything your billing stack needs

Built specifically for AI-native pricing complexity—not retrofitted from legacy SaaS billing tools.

Flexible Pricing Configuration

Build any pricing structure without code changes to your product. Configure plans, rates, tiers, and bundles directly in Amberflo.

Automated Invoice Generation

Close every billing cycle with accurate, line-item invoices generated directly from usage data. No manual reconciliation.

Stripe-Powered Payments

Connect Amberflo to Stripe for automated payment collection, retry logic, dunning, and real-time reconciliation.

Compliant RevRec, Automated

Amberflo applies ASC 606-compliant revenue recognition schedules across subscription and usage models automatically.

Credit Wallets & Prepaid Balances

Let customers buy credits upfront in your own currency. Amberflo tracks balances, deductions, rollovers, and expirations in real time.

Embeddable Billing Portal

Give every customer a transparent view of their usage, costs, and invoices with embeddable UI widgets and a self-serve portal.

Every invoice is traceable to every event

Line items aren't estimates—they're computed directly from your usage events.

Invoice details your finance team will love

Amberflo generates invoices at cycle close with complete line-item breakdowns per meter, model, and feature. No spreadsheets, no manual work.

  • Line items per meter
    Each invoice breaks usage down by meter—tokens, API calls, storage—so customers understand exactly what they're paying for.
  • Credits and Invoice ledger
    Amberflo manages credits, drawdown, and billing ledger for easy and accurate rev rec.
  • Full audit trail
    Drill from any invoice line item back to the individual usage events that produced it. Disputes resolved in seconds.
  • Fully API enabled
    Extract detailed invoice object as needed with 3rd party systems.

Live in minutes, not months

One SDK. One event schema. Billing and cost tracking configured in Amberflo—not in your codebase.

1

Send Events

Add the SDK and fire one meter event per AI call. Tag it with customer ID, model, and any custom dimensions.

2

Configure Pricing Plans

Define your plans in the Amberflo dashboard—tiers, rates, credits, commitments—with no code changes.

3

Assign Customers to Plans

Map each customer to a pricing plan via API or dashboard. Billing starts immediately.

4

Invoices Flow Automatically

At cycle close, invoices generate and Stripe collects payment. Your team sees revenue, margins, and collection status in real time.


npm install @amberflo/metering

import { MeteringClient } from '@amberflo/metering';

const af = new MeteringClient({
  apiKey: 'YOUR_KEY'
});

await af.meter({
  meterApiName: 'tokens-consumed',
  customerId: 'cust_abc123',
  meterValue: 4096,
  meterTimeInMillis: Date.now(),
  dimensions: {
    model: 'claude-3-5-sonnet',
    feature: 'smart-search'
  }
});

Built for the AI-Era

Features Legacy Billing
AI Cost Tracking and Governance
AI Metering with Usage Guards
Product, Team, App Level Cost Guards
Margin profile per customer
Credits, Usage, Outcome based Billing
Interactive Customer usage, cost, and invoice explorers

Start Cost Tracking and Billing.

Unify AI cost tracking and customer billing in one place. Track usage, allocate spend, and invoice with confidence.