Count what you sell. Turn product events into billable usage, split by model, ready to price.
One event, followed to the invoice. From the request to the line it lands on.
Send it.
Post the completion when it happens. Cadence answers 202 once it’s recorded.
POST/usage/ingest202Accepted{"id": "evt_7c1e","subscriptionId": "acme","occurredAt": "2026-10-19T09:41:07Z","properties": {"event": "completion","model": "opus","input_tokens": 1840,"output_tokens": 412}}Accepted202 · recordedCount it.
Tokens adds input and output, with output weighted × 4. This one adds 3,488.
Sum, count, max, last, distinct or concurrent.TokenstokensΣ SumVersion 3LatestValue#input_tokens+#output_tokens×4TestAdds 3,4881,840 + 412 × 4TestPaste an event to see what it would addRunmodelopusinput_tokens1,840output_tokens412Adds 3,4881,840 + 412 × 4Split it.
Split by model, so opus and sonnet count apart.
No model on the event? Give it its own group, or leave it out.TokenstokensΣ SumVersion 3LatestSplit byAamodelEvents without this propertyOwn “missing” groupExcludeWindowEach periodLifetimeBreakdownSplit byLets reports and invoices break the total down.AamodelSplit byPropertyAamodelEvents without this propertyOwn “missing” groupExcludeWindowEach periodLifetimeStarts from zero every billing period.Bill it.
The opus total meets its rate. 1,240,000 × €15.00 / 1M = €18.60.
InvoiceAcme AI · Oct 1 – Oct 31Tokensopus1,240,000 × €15.00 / 1M€18.60Tokenssonnet3,410,500 × €3.00 / 1M€10.23Tokenshaiku9,872,000 × €0.80 / 1M€7.90Platform feePro, monthly€49.00Total€85.73
Count levels, not just events. Seats by peak, average or closing. Storage the way cloud providers bill it.
48,210requests
Count. Every request, once.
3,488tokens
Sum. 1,840 in plus 412 out × 4.
312active users
Unique. Each user once, however many events.
14seats
Peak. The most at once in October.
11.6seats
Time-weighted average. Seats across the month.
12seats
Closing. What's left on the last day.
240,000GB-hours
Storage. 1 TB for 10 of 31 days.
3models
Split. opus, sonnet, haiku. Or region.
Excludedmissing model
Missing values. Leave them out, or give them their own group.
Version it. Publish version 4 without changing what version 3 billed.
Prices and limits pin a published version of the metric, and move when you decide.
Publishing version 4 changes nothing billed.