Now in Preview

Revenue infrastructure
for AI-native products

The complete billing, metering, and payment operating system built for AI agents, API products, and usage-based pricing.

api-client.ts
// Meter usage, bill customers, settle payments
const client = AgentPay.connect('sk_live_...)

await client.usage.ingest({
  meter: 'gpt-4-tokens',
  customer: 'cust_01H...',
  value: 1847,
})

THE PROBLEM

AI revenue is different

Legacy billing infrastructure was not designed for usage-based, agent-driven, real-time revenue models.

Usage-based pricing is hard

Traditional billing tools were built for seat-based SaaS. AI products need real-time metering, token-level granularity, and dynamic pricing.

Agents spend money autonomously

When AI agents make purchasing decisions, you need approval flows, budget controls, and spend reservations that traditional payment rails cannot provide.

Revenue ops fragments fast

Billing, metering, approvals, settlements, and dunning scatter across 5+ tools. Each integration is a liability.

THE SOLUTION

One system for AI revenue

Metering, pricing, billing, payments, and agent spend controls in a single operating system.

Usage Metering

Ingest millions of events. Aggregate by meter, customer, and time window.

$

Flexible Pricing

Tiered, volume, per-unit, formula-based. Price books with customer-specific overrides.

Agent Wallets

Budget-capped wallets for AI agents. Reserve-before-spend. Approval workflows.

Payment Settlement

Automated invoicing, payment collection, escrow holds, refunds, and disputes.

Multi-tenant

Full tenant isolation with test/live environment separation across all resources.

/

Developer-first

REST APIs, webhooks, API keys, domain events. Everything is programmable.

ARCHITECTURE

Built in layers, not bolted on

A composable architecture where each layer is independently deployable and horizontally scalable.

LAYER 1API Gateway
REST /v1/*WebhooksAPI KeysRate Limiting
LAYER 2Domain Layer
ProductsMetersPrice BooksContractsAgents
LAYER 3Billing Engine
InvoicingCreditsDunningRevenue Recognition
LAYER 4Payment Rail
SettlementsEscrowRefundsDisputes
LAYER 5Observability
Audit LogsDomain EventsAnalyticsAlerts

FOR DEVELOPERS

APIs you will enjoy using

RESTful endpoints, typed SDKs, real-time webhooks, and a domain event system that makes every state change observable.

Typed API Client
Full TypeScript SDK with autocomplete for every resource
Webhook Events
Real-time notifications for every state change
Test/Live Isolation
Separate environments with one header toggle
Idempotent Operations
Safe retries with correlation IDs on every request
ProductsMetersAgents
EndpointMethodDescription
/v1/productsGETList products
/v1/productsPOSTCreate product
/v1/metersGETList meters
/v1/usage-eventsPOSTIngest usage
/v1/invoicesGETList invoices

Ready to modernize your revenue stack?

Start with the console to explore products, meters, agents, and billing flows.