gemini_count_tokens
Count tokens in text using a Gemini model to estimate API usage and costs.
Instructions
Count the number of tokens in the provided text using a Gemini model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to count tokens for | |
| model | No | Model to use (default: gemini-3.1-pro-preview) |