Interface CachedContentUsageMetadata

Metadata on the usage of the cached content.

interface CachedContentUsageMetadata {
    audioDurationSeconds?: number;
    imageCount?: number;
    textCount?: number;
    totalTokenCount?: number;
    videoDurationSeconds?: number;
}

Properties

audioDurationSeconds?: number

Duration of audio in seconds. This field is not supported in Gemini API.

imageCount?: number

Number of images. This field is not supported in Gemini API.

textCount?: number

Number of text characters. This field is not supported in Gemini API.

totalTokenCount?: number

Total number of tokens that the cached content consumes.

videoDurationSeconds?: number

Duration of video in seconds. This field is not supported in Gemini API.