Creating and managing meters for Usage Based Billing
ai_usage
and sums the total_tokens
field.video_streamed
and sums the duration
field.file_uploaded
and sums the size
field.metadata.
prefix.
Example
total_tokens
metadata property:metadata.
prefix.
openai-usage
and sum units over metadata property completionTokens
.