Token Counter

Estimate tokens and costs for OpenAI, Anthropic, Google, and other LLMs

0 characters 0 words

Token Estimates by Model

Provider Model Tokens Input Cost Output Cost*

* Output cost assumes 1:1 input/output ratio. Actual costs vary by response length.

Quick Stats

Characters 0
Words 0
Lines 0
Est. Tokens (GPT-4) 0

Pricing Reference

GPT-4o $2.50 / 1M
GPT-4o-mini $0.15 / 1M
Claude 3.5 Sonnet $3.00 / 1M
Claude 3 Haiku $0.25 / 1M
Gemini 1.5 Pro $3.50 / 1M
DeepSeek-V3 $0.50 / 1M

Prices per 1M input tokens. Updated May 2026.

How It Works

1. Rule-based estimate: English text β‰ˆ 1 token per 4 characters or 0.75 words.

2. Code & symbols: May use more tokens due to special characters.

3. Non-English: CJK characters β‰ˆ 1-2 tokens each.

4. For accuracy: Use the provider's official tokenizer (tiktoken, etc.).