Skip to main content

ApiBilling

API billing engine β€” cost estimation, safety margin, customer rate cards, and negative-margin reconciliation.

Status​

KeyValue
Layercomposite
TierBusiness
Statusreleased
Version1.0.0
PriceFree (subscription)
CategoryAI / LLM

Overview​

Overview​

ApiBilling is the API billing and settlement engine for multi-saas-kit. It works above ApiUsageAnalytics and manages four pricing layers: provider raw cost estimate, buffered internal cost, customer rate cards, and reconciliation adjustments after actual provider cost is finalized.

Core Features​

  • Product-code based internal cost policies
  • Tenant/customer rate cards
  • Billing-event snapshots
  • Audit logs for policy changes
  • Negative-margin reconciliation adjustments
  • Separate presenters for customer-facing and operator-facing amounts

Relationship with ApiUsageAnalytics​

ApiUsageAnalytics owns usage logs, actual cost sync, and spend aggregation. ApiBilling owns pricing policy, customer billable amount, and reconciliation.

License​

MIT

Dependencies​


πŸ›’ View on Plugin Store: store.codebase.how/plugins/api-billing