Count tokens for Gemini 3.1 Pro Preview and estimate API cost before you send a request. Google does not publish this tokenizer, so counts are calibrated estimates for planning.Your text never leaves the browser.
PROMPT
Paste text to count Gemini 3.1 Pro Preview tokens.
Paste your prompt into the counter on this page. Google does not publish the Gemini 3.1 Pro Preview tokenizer, so the count is a calibrated estimate based on text length, language, and structure. Treat it as planning guidance rather than an exact billing number.
How much does Gemini 3.1 Pro Preview cost per token?
Gemini 3.1 Pro Preview costs $2.00 per 1 million input tokens and $12.00 per 1 million output tokens, based on official Google pricing checked 2026-08-11.
What is the context window of Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview has a context window of 1,048,576 tokens, which is roughly 786,000 English words of combined prompt and response. The counter above shows how much of that window your text consumes.
Is this Gemini 3.1 Pro Preview token count exact?
No. It is a clearly labeled estimate, because Google has not released a public tokenizer for Gemini 3.1 Pro Preview. Estimates are usually within a reasonable range for English text but can drift for code, JSON, or non-English languages.