Simulated demo. All data is made up in your browser.Real code on GitHub · docker compose up --build -d --wait← Case study · kbtanvir.dev
◈ meter.
PlatformSolutionsDevelopersDeployment
View the codeTry the sandbox
◈ meter.
/ Workspace
● SANDBOX
Usage metering for AI apps

Your AI app is growing.
Is your margin?

Every token costs you money. Every agent run adds to the bill. Stop letting your most active customers become your biggest expense.

Meter records usage per customer, prices it against their plan and issues an invoice.

View the code
Simulated demo · Self-hosted service · Source on GitHub
AI WRITER / SAMPLE CUSTOMERILLUSTRATIVE LIVE MODEL
↳ TOKEN USAGE8.0M tokens
Provider costs$64.00
WITHOUT METERED PRICING
Flat subscription margin
WITH METERED PRICING
Usage-based margin
Example: $29/mo · 1M included · $12/M overage · $8/M cost. Before other expenses.
01 / MEASURE EVERY EVENT02 / PROTECT YOUR MARGIN03 / BILL WITH CONFIDENCE
THE COST OF GETTING BILLING WRONG

Growth shouldn't come with
a hidden invoice.

$29↓−$35
01 / AI SAAS FOUNDERS

Your power users eat your profits.

A flat subscription cannot account for a customer who burns millions of tokens. Charge for the usage you deliver.

RUN↳× 48
02 / AGENT PLATFORMS

One request becomes fifty.

Tool calls and retries multiply consumption. Attribute each billable event to the right customer.

CSV→API
03 / API BUSINESSES

Month-end is a spreadsheet marathon.

Replace manual reconciliation with running totals and itemized invoices.

From consumption to revenue

One billing layer between your app and your customers.

01 · ConnectSend API or token events
02 · MeasureAggregate by customer
03 · PriceApply plans and allowances
04 · BillGenerate itemized invoices
Developer experience

One event. From usage to invoice.

</>

Connect your application

Send customer-level usage events. Then follow totals, pricing and charges in the simulated workspace.

Request shape from the repository
POST /api/v1/usage
x-api-key: <customer key>

{
  "event_id": "evt_1042",
  "eventType": "TOKENS",
  "units": 20000
}
Own your infrastructure

Self-hosted. Containerized. Inspectable.

▦

Run it with Docker

One Docker Compose command starts the whole stack.

⌁

Built with familiar tools

NestJS, PostgreSQL, Drizzle, Redis and SeaweedFS storage (S3-compatible; Cloudflare R2 for deploys).

⇄

Explore the pipeline

Walk through the pipeline and some simulated failure scenarios.

Simulated demo · nothing leaves your browser

Make your first usage event count.

Set up a sample plan, send an event and see the bill change.

View the code
Demo organization / Atlas Cloud

Business workspace

Manage how your AI product earns revenue.

Get your first billable event

Walk through a plan, a first event and a draft invoice.

Projected revenue
Estimated provider cost
Contribution margin
Usage-based billing infrastructure

Every event. Accounted for.

Follow usage from API request to customer invoice.

Metered tokens
2.84M
Current billing cycle
Projected revenue
$104.40
Base plans + overage
Accepted events
1,284
0 duplicate events

Usage activity

Older eventsNewest · simulated traffic

Customer usage / 3 active

Interactive engineering demo

Put the system to work.

Event inspector ● LIVE

02 / Pricing lab

From tokens to dollars.

Experiment with plan allowances and transparent overage calculations.

Configure a billing scenario

Invoice preview · USD

$34.04

Illustrative monthly charge

Applying saves pricing rules only, in this page. In the real service, plans are defined in the seed script.

03 / System architecture

Behind the meter.

How the real service moves an event to an invoice. The payloads are examples.

Stage details

Example payload

Deployment footprint

The repository stack, started with Docker Compose. Storage is SeaweedFS (S3-compatible; Cloudflare R2 for deploys).

NestJSDrizzle ORMPostgreSQLRedisSeaweedFSDocker Compose
Quickstart / sandbox

Walk through your first invoice.

Set up a sample plan and follow one event through to a draft invoice.

Quickstart / choose your path

Choose how to explore.

Walk through a setup, or explore a preconfigured sample business.

Roadmap, not built: agent-assisted setup through MCP.