UsageMetadata

Usage metadata about response(s).

Parameters

promptTokenCount

Number of tokens in the request.

candidatesTokenCount

Number of tokens in the response(s).

totalTokenCount

Total number of tokens.

promptTokensDetails

The breakdown, by modality, of how many tokens are consumed by the prompt.

candidatesTokensDetails

The breakdown, by modality, of how many tokens are consumed by the candidates.

toolUsePromptTokensDetails

The breakdown, by modality, of how many tokens are consumed by tools.

thoughtsTokenCount

The number of tokens used by the model's internal "thinking" process.

toolUsePromptTokenCount

The number of tokens used by tools.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard