Feature
You can now use the
AI.COUNT_TOKENS function
to estimate the token count of text input that you provide. For some generative
AI functions, you can view
the total number of input, output, thought, and cache tokens for each modality
processed by the query. These features are in
Preview.
https://docs.cloud.google.com/bigquery/docs/release-notes#May_12_2026
Feature
You can now use the
AI.COUNT_TOKENSfunctionto estimate the token count of text input that you provide. For some generative
AI functions, you can view
the total number of input, output, thought, and cache tokens for each modality
processed by the query. These features are in
Preview.
https://docs.cloud.google.com/bigquery/docs/release-notes#May_12_2026