1
1. Define Product
Products group your services:
- Choose service name (e.g., “LLM Inference Engine”, “Vision AI Platform”)
- Create via API or dashboard
- Requires: name, description, merchantId
2
2. Setup your pricing
Configure your billing structure:Billable Metrics:
Define measurement units (e.g., input tokens, output tokens, GPU minutes).Prices:
Link prices to metrics, select pricing model (e.g.,
standard), and define properties.Plans:
Create plans with name, billing interval, currency, and associate products with prices.Details: Billable Metrics, Prices, and Plans.3
3. Create Customers
Connect customers to plans:Customer creation:
- One customer per organization
- Use Create Customer endpoint
- Connect customer to plan
- Creates billing relationship
- Required for flat metrics or prefunded accounts
- Complete checkout before activation
4
4. Report Usage
Track customer consumption:
- Send events when model invoked (tokens processed, images generated)
- Use Create Usage Event endpoint