App 06 — Billing

Usage metering meets AI billing.

Per-customer usage metering, flexible billing plans, credits system, and Stripe integration—built for AI products that need usage-based pricing.

Get Started See the API

Per-Customer Metering

Track usage by customer, model, and time period — automatic cost attribution.

Flexible Plans

Create billing plans with request limits, model access controls, and spend caps.

Credits System

Pre-paid credits with automatic deduction, low-balance warnings, and top-ups.

Stripe Integration

Native Stripe sync for invoicing, webhooks, and payment processing.

Revenue Advances

Get paid early based on usage patterns. Predictable cash flow for growing AI businesses.

Usage Insurance

Protect against unexpected usage spikes. Set thresholds and automatic safeguards for your billing.

Tax Reporting

Automated tax report generation. Stay compliant across jurisdictions without manual effort.

Marketplace Billing

Reseller and marketplace revenue sharing. Split payments and track commissions automatically.

The API

Create billing customers, query usage, purchase credits — all REST.

# Create a billing customer curl -X POST /api/billing/customers \ -d '{"name":"Acme Corp", "email":"billing@acme.com", "plan":"growth", "stripe_id":"cus_abc123"}' # Get usage for a customer curl GET /api/billing/usage?customer=cust_01\ &from=2026-03-01T00:00:00Z\ &to=2026-03-21T00:00:00Z\ &group_by=model # Purchase credits curl -X POST /api/billing/credits/purchase \ -d '{"customer":"cust_01", "amount":10000, "currency":"usd", "payment_method":"pm_stripe_xyz"}'

Bill with confidence.

Billing ships with every Stockyard instance. Self-hosted or Cloud.

Get Started Back to platform
Related
Pricing Fabric