Usage metering and AI billing for SaaS
Meter events per tenant, aggregate to billing periods and expose usage in the admin so AI and API features can be priced. The pipeline is small and boring: an immutable event log, idempotent ingestion, periodic aggregation and a reconciliation job that proves the invoice matches the events before it goes out.