RunUsage
Token usage of a run.
Shape: object
| Property | Required | Type | Description | Rules |
|---|---|---|---|---|
inputTokens |
no | integer (int64) |
Gets the number of input tokens. | pattern `^-?(?:0\ |
outputTokens |
no | integer (int64) |
Gets the number of output tokens. | pattern `^-?(?:0\ |
totalTokens |
no | integer (int64) |
Gets the total number of tokens. | pattern `^-?(?:0\ |
cachedInputTokens |
no | integer (int64) |
Gets the input tokens that were served from the provider’s prompt cache. Counted INSIDE InputTokens. |
pattern `^-?(?:0\ |
reasoningTokens |
no | integer (int64) |
Gets the tokens the model spent on reasoning. Counted INSIDE OutputTokens. |
pattern `^-?(?:0\ |
audioInputTokens |
no | integer (int64) |
Gets the audio input tokens. Counted INSIDE InputTokens. |
pattern `^-?(?:0\ |
audioOutputTokens |
no | integer (int64) |
Gets the audio output tokens. Counted INSIDE OutputTokens. |
pattern `^-?(?:0\ |