Class CountTokensResponse (1.55.0)

CountTokensResponse(
    total_tokens: int,
    total_billable_characters: int,
    _count_tokens_response: typing.Any,
)

The response from a count_tokens request. .. attribute:: total_tokens

The total number of tokens counted across all instances passed to the request.

:type: int

Attribute

Name Description
total_billable_characters int
The total number of billable characters counted across all instances from the request.