---
source_url: "https://amberflo.io/platform/billing?utm_source=openai"
title: "Usage-Based Billing for AI Products | Amberflo"
mirrored_at: 2026-08-28T01:01:02.664Z
host: amberflo.io
cited_in_42a: true
mirror_canonical: "https://index.42a.ai/amberflo.io/platform/billing__q__utm_source_openai"
---

> **Original source:** https://amberflo.io/platform/billing?utm_source=openai

## `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

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69b7d252c52abf86eae579db_tab1-image.svg)

## 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

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69b8fc61bd6f633a1ea9e106_tab2-image.svg)

## 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

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69b8fc6692808f6da056b610_tab3-image.svg)

## 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

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69b90cb46de0bddabcc8148c_tab4-image.svg)

## 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.

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69b7eae913dbd930a48c7fa6_stack6-img.svg)

#### Embeddable Billing Portal

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

### 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.

![](https://cdn.prod.website-files.com/65e4fcaae4a73ff20ca87c04/69ba2e60151d3fc39ef23ddf_billing-points-image.svg)

## 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

## A single platform to govern, optimize, and monetize AI

40x

Faster Dev Cycles

50x

Cost Savings

100%

Happy Teams

### One API for Any Model

Simplify AI model integration with a single, standardized interface for models across multiple providers.

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c8eab87e8bd7c70c3e783_Asset.png)

### Model Access & Fallbacks

Built-in AI Gateway automates retries and fallbacks. When a request fails, the gateway  automatically retries or redirects to another target.

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c8ec442cbe21a25364fec_Asset%20\(1\).png)

### LLM Model Rates & Metrics

Track LLM & MCP server traffic and metrics.  And with built-in models and rates catalog, allocate costs and savings to map your org structure

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697cadfd1bad0063e6bdce2b_Asset%20\(4\).png)

### **Intelligent Model Router**

Ultra low-latency runtime optimizer automatically predicts which model while maximizing accuracy and optimizing cost. Fully configurable with list of models and selection criteria.

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c91346c83b664fe6a31d0_Asset%20\(3\).png)

### Per-unit Costs & Roll ups

Per-unit costs expose AI spend at the most granular level. This enables true unit economics and optimization across models, prompts, and routing.

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c9155a6353ab452376571_Assets.png)

### Budgets, Cost Guards & Showbacks

Eliminate overage surprises. Set limits and receive real-time alerts and notifications. Proactively formulate budgets and forecast and tie AI spend to business value.

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c8ed5948cb25a52309880_d8e042d9f709652c52855a068f9532d2_Asset%20%282%29.png)

![](https://cdn.prod.website-files.com/65e4539585ffd2cda665d3f7/697c5fc808ff32d8b68393ca_49aa3b3ec7ca54c422d5e8384ab18ba6_Group%201686554997%20%281%29.avif)

### **Realtime Usage Metering**

Meter any resource - Infra, AI, LLM, MCP, or custom event. Our APIs manage idempotency, deduplication, back fills, and automatically aggregates usage precisely. It also provides flexible usage attribution of events and line items to billable customers.

### Build Any Pricing Plan

Centrally define and manage different plans, features, discounts, and entitlements. Build any pricing model such as PAYG, fixed with overages, prepaid credits with draw-down, true ups, and more.

### Automate Invoice & Billing

Turn AI usage into billable revenue with automated, usage-based invoicing. Meter, rate, and bill AI Factory, GPU, LLM, MCP consumption in real time with integrated billing portal.