Maintained with ☕️ by
IcePanel logo

You can now use the AI.COUNT_TOKENS function to estimate the token count of text input that you provide

Share

Services

## Feature Feature You can now use the[AI.COUNT\_TOKENS function](https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-ai-count-tokens)to estimate the token count of text input that you provide. For some generative AI functions, you can [view](https://cloud.google.com/bigquery/docs/generative-ai-overview#token%5Fusage)the total number of input, output, thought, and cache tokens for each modality processed by the query. These features are in[Preview](https://cloud.google.com/products#product-launch-stages).