Open-source CLI

artokعرتوك

See how much more Arabic costs across 18 LLM tokenizers. Benchmark scores, diacritics analysis, dialect comparison, and more.

5x
more tokens for Arabic
on Claude vs English
$ pip install artok
The Problem
Arabic speakers pay more for AI.
Most tokenizers are trained on English. Arabic characters get split into byte fragments. Same meaning, wildly different cost.
Arabic
الذكاء الاصطناعي يغير العالم
25
tokens on Claude
vs
English
AI is changing the world
5
tokens on Claude
In Action
One command. Full picture.
artok terminal demo
Capabilities
Built for Arabic-first analysis.
18 tokenizers. 22 flags. Everything you need.
🔢

18 Tokenizers

GPT-4.1, Claude 4.6, Gemini, DeepSeek, Llama 4, Qwen 3.5, Mistral, Grok, Cohere, AI21.

📊

Benchmark

Arabic friendliness score 0-100 across 8 text categories.

🔤

Tashkeel

How diacritics inflate tokens. Unique to Arabic.

🗺️

Dialects

MSA vs Egyptian vs Gulf vs Levantine vs Moroccan.

🏆

Leaderboard

Rank by efficiency + cost + value. Medals for top 3.

🌡️

Heatmap

Color each word by token cost. See where the tax hits.

💰

Cost Calculator

Estimate monthly costs at scale with English comparison.

🔄

Switch-from

Savings from switching providers, adjusted for token ratios.

🌍

Compare Languages

Arabic vs English vs French vs Chinese per tokenizer.

📡

Auto-update

Pricing from GitHub, cached 24h. --update to refresh.

🖼️

Export SVG

Share results as images. --export out.svg

⌨️

Live Mode

Type Arabic, see counts live. --watch

Supported Models
18 tokenizers. 10 providers.
Pricing as of March 2026. Updates via artok --update.
TokenizerProviderInput $/1MOutput $/1M
GPT-4.1OpenAI$2.00$8.00
GPT-4.1 miniOpenAI$0.40$1.60
GPT-4.1 nanoOpenAI$0.10$0.40
GPT-4oOpenAI$2.50$10.00
GPT-4o miniOpenAI$0.15$0.60
Claude Opus 4.6Anthropic$5.00$25.00
Claude Sonnet 4.6Anthropic$3.00$15.00
Claude Haiku 4.5Anthropic$1.00$5.00
Llama 4Meta$0.18$0.18
Qwen 3.5Alibaba$0.10$0.40
Mistral Large 3Mistral$0.50$1.50
Mistral SmallMistral$0.10$0.30
Gemini 2.5 ProGoogle$1.25$10.00
Gemini 3 FlashGoogle$0.50$3.00
DeepSeek V3.2DeepSeek$0.27$1.10
Grok 2xAI$2.00$10.00
Command R+Cohere$2.50$10.00
Jamba 1.5AI21$0.20$0.40
Get Started
Three commands.
# Install $ git clone https://github.com/Moshe-ship/artok.git $ cd artok && pip install -e ".[all]" # See the tax $ artok "الذكاء الاصطناعي يغير العالم" -e "AI is changing the world" # Run the benchmark $ artok --benchmark # Compare dialects $ artok --dialects # Diacritics analysis $ artok "بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ" --tashkeel # Keep pricing fresh $ artok --update