Request
string
required
Logical key used to deduplicate the event.
string
required
The broad event kind configured in Unprice, for example
completions.string
The customer ID. Required when the API key has no default customer binding.
object
required
Event properties used by meters. One async event can carry multiple measured fields, for
example
aiMessages, aiGenerations, aiTools, inputTokens, and outputTokens.number
Optional epoch-millisecond event timestamp.
usage.record does not block paid work. Use it for async metering, analytics, and invoice evidence,
not for request-path spend enforcement.
For async reporting, eventSlug names what happened. Each meter on matching features chooses which
property to aggregate from that event. That lets one completions event update several features such
as ai-messages, ai-generations, and ai-tools.