Skip to content

UsageTokenTotals

Tokens by type.

Kind: an object, used in responses.

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

FieldTypeDescription
inputintegerInput tokens, as the provider reported them.
outputintegerOutput tokens the model wrote, reasoning included.
cacheReadintegerInput tokens read from the provider’s prompt cache.
cacheWriteintegerInput tokens written to the provider’s prompt cache.
reasoningintegerReasoning tokens: part of output, for the providers that report them.
totalintegerInput, output, cache reads and cache writes together. Reasoning is inside output, so it is not added again. Set by Maitento.
{
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"reasoning": 0,
"total": 0
}