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 = Starpay.connect('sk_live_...)

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

Why Starpay

Everything AI products need to monetize

One platform replaces the patchwork of billing, metering, payment, and agent management tools.

Real-time Metering

Ingest millions of usage events per second. Aggregate by meter, customer, and time window with sub-second latency.

Agent Spend Controls

Budget-capped wallets for autonomous AI agents. Reserve-before-spend pattern with multi-level approval workflows.

Flexible Pricing

Tiered, volume, per-unit, and formula-based pricing. Customer-specific overrides with version-controlled price books.

Full Automation

Automated invoicing, payment collection, settlement, dunning, and revenue recognition. Zero manual intervention.

2.4B+
Usage events processed
99.99%
Uptime SLA
<50ms
Median API latency
12
API resources

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 — or dive into the API.