CountTokensResponse

Response message for PredictionService.CountTokens.

Fields
totalTokens integer

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

totalBillableCharacters integer

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

promptTokensDetails[] object (ModalityTokenCount)

Output only. List of modalities that were processed in the request input.

JSON representation
{
  "totalTokens": integer,
  "totalBillableCharacters": integer,
  "promptTokensDetails": [
    {
      object (ModalityTokenCount)
    }
  ]
}