BillAI Developer Documentation
Everything you need to integrate flexible, scalable billing into your product. From usage-based pricing to global tax compliance, BillAI handles the complexity so you can focus on building.
# Any pricing model
Usage-based pricing
Bill for API calls, compute, tokens, or active users. Perfect for AI and infrastructure platforms.
Seat-based & hybrid
Combine per-seat subscriptions with usage overages. The standard for modern B2B SaaS.
Prepaid credits
Support draw-down models, trials, and enterprise commits with flexible credit logic.
Enterprise contracts
Handle complex multi-year deals, amendments, and custom terms without engineering headaches.
# Learning paths
# Key features
Simulations
Test pricing changes against historical usage before deploying.
Backfills & corrections
Late data handled safely. BillAI recalculates affected invoices automatically.
Hosted rollups
Handle 1M+ billing events per second in production deployments.
Real-time visibility
Track accrued revenue before invoices. Forecast and spot expansion.
Custom SQL metrics
Build complex billing metrics with full SQL control.
Usage alerting
Trigger alerts at usage thresholds to power product-led growth.
Revenue recognition
Track recognized and deferred revenue with exports for financial systems.
# Resources
API Reference
Complete reference documentation for the BillAI API.