I am using the free tier of the Gemini API.
I would like to clarify the following five points regarding the REST API’s models.countTokens:
-
Does the statement in the official billing FAQ that “GetTokens API is not billed and does not count toward inference quotas” also apply to the REST API’s
models.countTokens? -
Can
models.countTokensbe used for free under the Gemini API free tier? -
Do calls to
models.countTokensaffect the target model’s RPM (requests per minute), TPM (tokens per minute), or RPD (requests per day)? -
Are pricing and quota treated the same way for requests containing
generateContentRequest? -
When
generateContentRequestis used, does the returnedtotalTokensincludesystemInstructionand the JSON output schema specified ingenerationConfig.responseFormat.text.schema? If anything is excluded, please let me know.
The model I plan to use is gemini-3.6-flash. I have not set up a Google Cloud billing account.
Thank you in advance for your assistance.