ClinicMinds sells AI-generated clinical notes to medical practices. A doctor speaks; the app records the audio; GPT-4 transcribes and structures the note.
Revenue model: charge hospitals $0.50 per recorded minute. Cost model: pay OpenAI $0.0005 per token. A 10-minute session generates ~4,200 tokens, costing $2.10 to produce and billed at $5.00 — a $2.90 margin.
ClinicMinds plugs Units360 into two points of their pipeline — once after a session ends, and once after GPT-4 finishes transcription. Everything else — ledgers, margin calculations, invoices, alerts — happens automatically.
Both events carry the same session_id, so Units360 automatically links revenue to cost and computes per-session gross margin. No SQL, no dashboards to build, no ETL pipelines.
A revenue unit in Units360 represents a billable service. Each time ClinicMinds completes a session, it fires a Units360 API call with the recorded minutes. The Revenue Ledger increments in real time.
A cost unit in Units360 represents an operational expense. After GPT-4 processes the audio, ClinicMinds fires a second API call with the token count. The Cost Ledger updates independently.
Both events carry the same session_id, so Units360 links them for per-session margin analysis.
An Account is a billing entity in Units360 — it can represent a customer, a supplier, or an internal cost centre. Accounts hold balances for their associated units.
A Transaction is an immutable ledger entry created when a CloudEvent is processed. Each POST to the Units360 API creates one transaction. Transactions can never be deleted — they form an audit trail.
The Usage Configuration is a declarative template that describes your entire metering model. You define it once; Units360 auto-provisions the API endpoints, ledger tables, alert rules, and billing logic.
The Live Processing Engine is the serverless runtime that processes incoming CloudEvents. It validates events against the configured schema, writes transactions to the ledger, evaluates alert rules, and triggers webhooks — all in under 50ms.
Units360 events conform to the CloudEvents 1.0 specification — a CNCF standard for describing event data. This means any CloudEvents-compatible system (Kafka, EventBridge, Pub/Sub) can produce events to Units360.