Hello,
We are developing a customer-facing assistant using Gemini 3.5 Flash-Lite through the Interactions API (POST /v1beta/interactions).
We need clarification regarding token accounting and billing.
The API response includes:
-
total_input_tokens -
total_output_tokens -
total_thought_tokens -
total_tool_use_tokens -
total_tokens
Our questions:
-
Are
total_tool_use_tokensalready included intotal_input_tokensortotal_tokens, or are they billed separately? -
Can tool-use tokens cause the total billable input to exceed the model’s documented maximum input token limit of 1,048,576 tokens per request?
-
Is
total_output_tokensinclusive oftotal_thought_tokensfor billing purposes?
We need to establish a safe upper cost bound before sending each API request.
Could you please clarify the billing rules for this specific model and endpoint, preferably with a reference to official documentation?
Thank you.