Response message for  PredictionService.CountTokens 
 
.
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
Represents token counting info for a single modality.
modality 
 
  enum (  Modality 
 
) 
 
The modality associated with this token count.
tokenCount 
 
  integer 
 
Number of tokens.
| JSON representation | 
|---|
|  { 
 "modality" 
 : 
 enum (  | 
Modality
Content Part modality
| Enums | |
|---|---|
| MODALITY_UNSPECIFIED | Unspecified modality. | 
| TEXT | Plain text. | 
| IMAGE | Image. | 
| VIDEO | Video. | 
| AUDIO | Audio. | 
| DOCUMENT | Document, e.g. PDF. | 

