google.ai.generativelanguage.CountTokensResponse

A response from CountTokens.

It returns the model's token_count for the prompt.

total_tokens int

The number of tokens that the model tokenizes the prompt into.

Always non-negative.