AiCostCompare

Token counter

Paste text to count tokens with OpenAI's o200k_base (GPT-4o and newer) and cl100k_base (GPT-4/3.5 era) encodings, see how it splits into tokens, and estimate the cost of sending it to any model. Your text never leaves the browser.

165

characters

29

words · ~1.21 tokens/word

Token visualization (o200k_base)

The quick brown fox jumps over the lazy dog. Tokenizers split text into subword units common words are usually one token, while rarer words get broken into pieces.

What this prompt costs to send

using 35 input tokens (o200k_base)
ModelCost / requestCost / 1K requests
Auto Router (Beta)OpenRouter$-5.35e+2$-5.35e+5
FusionOpenRouter$-5.35e+2$-5.35e+5
Pareto Code RouterOpenRouter$-5.35e+2$-5.35e+5
Body Builder (beta)OpenRouter$-5.35e+2$-5.35e+5
Auto RouterOpenRouter$-5.35e+2$-5.35e+5
Ling-2.6-flashInclusionai$1.54e-5$0.0154
Mistral NemoMistral$1.57e-5$0.0157
Llama 3 8B LunarisSao10k$2.64e-5$0.0264
MythoMax 13BGryphe$3.21e-5$0.0321
Llama 3.1 8B InstructMeta$4.18e-5$0.0418
Mistral Small 3Mistral$4.18e-5$0.0418
Nex-N2-MiniNex Agi$5.09e-5$0.0509
Qwen2.5 7B InstructAlibaba (Qwen)$5.14e-5$0.0514
Gemma 3 4BGoogle$5.17e-5$0.0517
Granite 4.1 8BIbm Granite$5.17e-5$0.0517
Ministral 3 3B 2512Mistral$5.35e-5$0.0535
Reka EdgeRekaai$5.35e-5$0.0535
Granite 4.0 MicroIbm Granite$5.66e-5$0.0566
Laguna XS 2.1Poolside$6.21e-5$0.0621
Gemma 3n 4BGoogle$6.21e-5$0.0621
gpt-oss-20bOpenAI$6.61e-5$0.0661
Nova Micro 1.0Amazon$7.12e-5$0.0712
Phi 4Microsoft$7.25e-5$0.0725
Command R7B (12-2024)Cohere$7.63e-5$0.0763
Gemma 3 12BGoogle$7.67e-5$0.0767
Qwen3.5-9BAlibaba (Qwen)$7.85e-5$0.0785
Ministral 3 8B 2512Mistral$8.02e-5$0.0803
gpt-oss-120bOpenAI$8.63e-5$0.0863
Llama Guard 4 12BMeta$9.63e-5$0.0963
DeepSeek V4 FlashDeepSeek$9.71e-5$0.0971

Showing the 30 cheapest matching paid models. Note: non-OpenAI models use their own tokenizers, so actual token counts may differ slightly.