llm.request event after each provider attempt finishes. Give every new provider attempt a new UUID. Reuse the UUID when retrying delivery of that same event.
Required fields
Count values must be integers between 0 and 9,007,199,254,740,991.
Token accounting
inputTokens and outputTokens are required when usage is an object. Cache fields are optional.
Total input tokens include cache reads and cache creation. Add those subsets to uncached input if a provider reports them separately. The combined cache subsets must not exceed inputTokens.
Output tokens include all billable output. Do not add reasoning tokens again if they are already included.
Use usage: null when usage is unknown, including failed or cancelled calls without usage data. Unknown usage does not mean zero cost. For streaming requests, use final usage when the attempt completes.
Optional metadata
plan is an attribute, not a top-level field.
Provider key fingerprints
openai-redacted-v1 or anthropic-redacted-v1. With the ASCII ... separator, use 3–32 letters, digits, underscores, or hyphens before it and 3–12 after it.
See the endpoint schema, end-user identities, and privacy controls.