Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.
textRequiredstringText to count tokens for
modelstringModel to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
Aident-managed access. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.