$ pip install mothertoken
$ mothertoken rank ar
model idchars/tokencost vs english
gpt-4o3.1321.56x ← most efficient
qwen2.52.5851.84x
gpt-41.4143.43x
mistral1.1043.85x
# aliases work too: arabic, spanish, thai, eng_Latn
$ mothertoken list
idnameexample modelscounter source
gpt-4oOpenAI o200k_baseGPT-4o, GPT-4.1tiktoken / o200k_base
qwen2.5Qwen 2.5 tokenizerQwen 2.5Hugging Face / Qwen/Qwen2.5-7B
mistralMistral 7B tokenizerMistral 7BHugging Face / mistralai/Mistral-7B-v0.1
gemma2Gemma 2 tokenizerGemma 2Hugging Face / google/gemma-2-9b
# these are starter aliases, not a complete model compatibility map
# local counters run on your machine
$ mothertoken compare "Travesura realizada" --model gpt-4o --model Qwen/Qwen3-0.6B --model mistralai/Mistral-7B-v0.1
$ mothertoken compare --file prompt.txt --model mistralai/Mistral-7B-v0.1 --model deepseek-ai/DeepSeek-V4-Pro
modelsourcetokenschars/token
OpenAI o200k_baseo200k_base44.750
Qwen/Qwen3-0.6BQwen/Qwen3-0.6B53.800
Mistral 7Bmistralai/Mistral-7B-v0.163.167
# use aliases from mothertoken list or a Hugging Face model path
# unknown one-word ids fail fast so typos do not become network lookups
$ mothertoken tokenize "مرحبا بالعالم" --language ar --model gpt-4o
ModelTokensChars/TokenEnglish Est.Vs English
GPT-4o52.60031.56x
$ mothertoken tokenize "Hello" --model Qwen/Qwen3-0.6B
$ mothertoken tokenize --file prompt.txt
$ mothertoken tokenize --file prompt.ar.txt --language ar --english-file prompt.en.txt
# local aliases and Hugging Face model paths are supported
# --language adds benchmark English-equivalent estimates
# --english-text or --english-file adds a paired translation comparison
$ mothertoken benchmark
$ mothertoken benchmark run --dry-run
$ mothertoken benchmark run --languages arb_Arab,spa_Latn --models gpt-4o,qwen2.5
$ mothertoken benchmark status
# benchmark shows help; benchmark run creates data
# without --output, run writes to the user config benchmark and makes it active
# benchmark aliases and Hugging Face model paths are both supported