CountTokensResponse interface

Response from calling GenerativeModel.countTokens().

Signature:

export interface CountTokensResponse 

Properties

Property Type Description
totalBillableCharacters number The total number of billable characters counted across all instances from the request.
totalTokens number The total number of tokens counted across all instances from the request.

CountTokensResponse.totalBillableCharacters

The total number of billable characters counted across all instances from the request.

Signature:

totalBillableCharacters?: number;

CountTokensResponse.totalTokens

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

Signature:

totalTokens: number;