Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# CountTokensResponse\n\nResponse message for [PredictionService.CountTokens](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/countTokens#google.cloud.aiplatform.v1beta1.PredictionService.CountTokens).\nFields `totalTokens` `integer` \nThe total number of tokens counted across all instances from the request.\n`totalBillableCharacters` `integer` \nThe total number of billable characters counted across all instances from the request.\n`promptTokensDetails[]` `object (`[ModalityTokenCount](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/ModalityTokenCount)`)` \nOutput only. List of modalities that were processed in the request input."]]