Skip to main content
TokenCost logoTokenCost

Google Token Counter

Count Google tokens online and see what your text costs across all 26 models, including Gemini 4 Hydrogen, Gemini 4 Carbon and Gemini 4 Argon. Everything runs in your browser and nothing you paste leaves the page. Counts are estimates made with the cl100k_base encoding, since Google has not released a browser-ready tokenizer. Estimated counts are marked with a tilde (~).

ModelTokensInput CostOutput Cost
Gemini 4 Hydrogen———
Gemini 4 Carbon———
Gemini 4 Argon———
Gemini 3.8 Flash———
Gemini Omni 1.2 Flash———
Gemini Omni Flash———
Gemini Omni Flash (Preview)———
Gemini 3.6 Flash———
Gemini 3.7 Flash———
Gemini 3.5 Flash-Lite———
Gemini 3.5 Flash———
Gemini 3.1 Pro———
Gemini 3 Flash———
Gemini 3.1 Flash-Lite———
Gemma 4 31B———
Gemma 4 26B A4B———
Gemma 4 12B———
DiffusionGemma 26B———
Gemini 3.1 Flash Live———
Gemini 3.1 Flash TTS———
Nano Banana 2.1———
Gemini 3.1 Flash Image———
Gemini 3.1 Flash Lite Image———
Gemini 2.5 Pro———
Gemini 2.5 Flash———
Gemini 2.5 Flash-Lite———

Type or paste text above to see token counts and per-request costs for every Google model.

Google Model Pricing

ModelInput /1MOutput /1M
Gemini 4 Hydrogen$1.50$7.50
Gemini 4 Carbon$2.00$10.00
Gemini 4 Argon$2.00$10.00
Gemini 3.8 Flash$0.750$3.75
Gemini Omni 1.2 Flash$1.50$9.00
Gemini Omni Flash$1.50$9.00
Gemini Omni Flash (Preview)$1.50$9.00
Gemini 3.6 Flash$0.750$3.75
Gemini 3.7 Flash$0.750$3.75
Gemini 3.5 Flash-Lite$0.300$2.50
Gemini 3.5 Flash$1.50$9.00
Gemini 3.1 Pro$2.00$12.00
Gemini 3 Flash$0.500$3.00
Gemini 3.1 Flash-Lite$0.250$1.50
Gemma 4 31B$0.120$0.360
Gemma 4 26B A4B$0.060$0.300
Gemma 4 12B<$0.0001<$0.0001
DiffusionGemma 26B<$0.0001<$0.0001
Gemini 3.1 Flash Live$0.750$4.50
Gemini 3.1 Flash TTS$1.00$20.00
Nano Banana 2.1$1.50$30.00
Gemini 3.1 Flash Image$0.500$60.00
Gemini 3.1 Flash Lite Image$0.250$30.00
Gemini 2.5 Pro$1.25$10.00
Gemini 2.5 Flash$0.300$2.50
Gemini 2.5 Flash-Lite$0.100$0.400

Frequently Asked Questions

Common questions about counting Google tokens

Which tokenizer does Google use?
Gemini models use a SentencePiece-based tokenizer that Google has not released for the browser. This counter estimates using OpenAI's cl100k_base encoding. For exact numbers, call the countTokens method in the Gemini API.
Are these Google token counts exact or estimated?
Estimated. Google has not released its tokenizer for browser use, so this tool approximates counts with OpenAI's cl100k_base encoding. Estimates are usually close for English text but can drift for code, JSON, and non-English languages. Estimated counts are marked with a tilde (~).
How is Google API cost calculated?
Cost equals tokens divided by one million, multiplied by the model's per-million-token rate. Each Google model has separate input and output rates, and this page shows both: what your text would cost as a prompt (input) and what the same number of tokens would cost as a response (output).
Why do token counts matter for Google API costs?
Google bills API usage per token, not per word or character. A token is roughly 4 characters or about three quarters of a word in English. Knowing the token count of your prompts lets you predict spend, stay inside context windows, and compare Google models like Gemini 4 Hydrogen, Gemini 4 Carbon and Gemini 4 Argon before you commit.

Related Tools