Skip to content

CodePipelineTokenUsageEntry

A count of one type of token a step used, with the model and credential that used them.

Kind: an object, used in responses.

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

FieldTypeDescription
typestringThe token type, as the provider reports it, for example input, output, cache_read, cache_creation_5m or cache_creation_1h.
amountintegerHow many tokens of this type.
modelstring | nullThe model the tokens are counted against: wireModel when the coding tool reported one, otherwise resolvedModel. Null when unknown.
wireModelstring | nullThe model the coding tool reported it actually ran on. Null when the coding tool doesn’t report one.
requestedModelstring | nullThe model the run’s agentOverrides asked for, for this step’s agent. Null when no override named one.
resolvedModelstring | nullThe model chosen for this step’s agent: the override’s model, else the agent’s defaultModel.
credentialIdstring | nullThe credentialId of the credential that used these tokens. Null when unknown.
tierstring | nullThe model’s pricing tier these tokens fell in, for models priced by request size (for example large-context). Null: the model’s standard rate.
{
"type": "...",
"amount": 0,
"model": "...",
"wireModel": "...",
"requestedModel": "...",
"resolvedModel": "...",
"credentialId": "...",
"tier": "..."
}