# UsageMetadata

data class UsageMetadata(val promptTokenCount: Int? = null, val candidatesTokenCount: Int? = null, val totalTokenCount: Int? = null)

Usage metadata for a generate content request.

## Constructors

UsageMetadata
Link copied to clipboard
constructor(promptTokenCount: Int? = null, candidatesTokenCount: Int? = null, totalTokenCount: Int? = null)

## Properties

candidatesTokenCount
Link copied to clipboard
val candidatesTokenCount: Int? = null

The number of tokens in the candidates.

promptTokenCount
Link copied to clipboard
val promptTokenCount: Int? = null

The number of tokens in the prompt.

totalTokenCount
Link copied to clipboard
val totalTokenCount: Int? = null

The total number of tokens.