promptTokenCount property

int promptTokenCount
final

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

final int promptTokenCount;