promptTokenCount property

int? promptTokenCount
getter/setter pair

The total number of tokens in the prompt.

This includes any text, images, or other media provided in the request. When cached_content is set, this also includes the number of tokens in the cached content.

Implementation

core.int? promptTokenCount;