Skip to content

UsageTotals

Usage over a range. runs, runtimeMs, executionMs and toolCalls count runs that ended in the range; steps and stepRuntimeMs count code pipeline steps that ended in it; tokens count in the hour each turn or step used them.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
runsintegerRuns that ended in the range.
runtimeMsintegerThe runs’ wall-clock time, start to end, in milliseconds.
executionMsintegerThe time the runs were actually executing (not waiting), in milliseconds.
stepsintegerCode pipeline steps that ended in the range.
stepRuntimeMsintegerThose steps’ running time, in milliseconds.
toolCallsintegerTool calls: those an interaction’s agents made, and a code pipeline’s tool uses.
tokensUsageTokenTotalsTokens by type.
webSearchesintegerPages of web search results agents’ web tools fetched.
webPagesintegerWeb pages agents’ web tools read.
webDownloadsintegerFiles agents’ web tools downloaded.
imageDescriptionsintegerImages agents’ web tools had described.
webCreditsintegerThe web provider’s own usage units (never currency).
webBytesintegerBytes agents’ web tools fetched.
{
"runs": 0,
"runtimeMs": 0,
"executionMs": 0,
"steps": 0,
"stepRuntimeMs": 0,
"toolCalls": 0,
"tokens": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"reasoning": 0,
"total": 0
},
"webSearches": 0,
"webPages": 0,
"webDownloads": 0,
"imageDescriptions": 0,
"webCredits": 0,
"webBytes": 0
}