TokenCalc
LLM Utils

Free LLM Token Calculator

Accurately calculate the token count and estimate API costs for your text with our free LLM token calculator. Paste your text to see how it's tokenized by leading models from OpenAI (GPT-4, GPT-5), Anthropic (Claude 3), Google (Gemini), and more. Instantly get price estimates for both input and output to better manage your AI development budget.

T

Tokens

0

#

Words

0

CH

Total Characters

0

Model Selection

Model
Provider
Context
Input Price
Output Price
Total Price
o4 Miniopenai200K$1.10$4.40$5.50
GPT-5openai400K$1.25$10.00$11.25
o1openai200K$15.00$60.00$75.00
Claude Opus 4.1anthropic200K$15.00$75.00$90.00
Claude Sonnet 4anthropic1M$3.00$15.00$18.00
Claude 3.5 Haikuanthropic200K$0.80$4.00$4.80
Gemini 2.5 Flashgemini1.05M$0.30$2.50$2.80
Gemini 2.5 Progemini1.05M$1.25$10.00$11.25
Gemini 2.0 Flashgemini1M$0.10$0.40$0.50
Mistral Medium 3.1mistral131K$0.40$2.00$2.40
Codestral 2508mistral256K$0.30$0.90$1.20
Mistral Large 2411mistral128K$2.00$6.00$8.00
Grok 4xai256K$3.00$15.00$18.00
Grok Code Fast 1xai256K$0.20$1.50$1.70
Grok 3 Minixai131K$0.30$0.50$0.80
DeepSeek-R1deepseekN/A$3.00$7.00$10.00
DeepSeek-V3deepseekN/A$1.25$1.25$2.50
Qwen3 235B A22B Instruct 2507alibaba262K$0.08$0.31$0.39
Qwen3 Coder 30B A3B Instructalibaba0$0.05$0.21$0.26
Llama 4 MaverickmetaN/A$0.27$0.85$1.12
Page 1 of 9

What are tokens in LLMs?

Tokens are the basic units that language models process. They can be words, parts of words, or characters. Different models use different tokenization methods, affecting both API costs and model performance.

Supported Models

Calculate tokens for OpenAI GPT-4, Anthropic Claude 3, Google Gemini, and more. Prices updated regularly to reflect current API costs.

Why Token Counting Matters

Understanding token usage helps optimize prompts, reduce API costs, and stay within model context limits. Save money by knowing your token count before making API calls.