UsageByModel
Usage attributed to a single model within one generation run.
Usage profiles
| Usage | Fields and validation |
|---|---|
| In webhook payloads | View fields |
In webhook payloads
Webhook JSON uses protobuf field names (snake_case).
| Field | Type | Presence | Meaning |
|---|---|---|---|
model | string | Optional | Model identifier as recorded on the assistant message that produced it. |
calls | integer (int32) | Optional | Provider completions attributed to this model within the run. Minimum: -2147483648. Maximum: 2147483647. |
usage | Usage | Optional | Same shape as the run aggregate, scoped to this model. |
Where used
| Reference | Relationship |
|---|---|
| llm.generation_completed | Webhook JSON uses protobuf field names (snake_case). |
| LLMGenerationCompletedEvent | Nested in model |
Download the public reference contract.
Document: DOC-API-MODEL-usage-by-model.