CountTokensResponse

The model's response to a count tokens request.

Important: The counters in this class do not include billable image, video or other non-text input. See Pricing for details.

Properties

Link copied to clipboard

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

Link copied to clipboard

The total number of tokens in the input given to the model as a prompt.

Functions

Link copied to clipboard
operator fun component1(): Int
Link copied to clipboard