Skip to main content
[megatools]$
← [cd .. / home]
$megatools --token-counter --client-side

LLM Token Counter & API Cost Estimator

Analyze token density, preview subword BPE boundaries, and calculate real-time API inference costs across OpenAI, Claude, Gemini, and DeepSeek.

500 tokens
GPT-4o (Omni)Flagship
$0.00532
In: $2.5/M · Out: $10/MPrompt: $0.00032 · Gen: $0.00500
GPT-4o miniBudget
$0.00032
In: $0.15/M · Out: $0.6/MPrompt: $0.00002 · Gen: $0.00030
Claude 3.5 SonnetCoding SOTA
$0.00791
In: $3/M · Out: $15/MPrompt: $0.00041 · Gen: $0.00750
Claude 3.5 HaikuUltra Fast
$0.00211
In: $0.8/M · Out: $4/MPrompt: $0.00011 · Gen: $0.00200
Gemini 1.5 Pro2M Context
$0.00266
In: $1.25/M · Out: $5/MPrompt: $0.00016 · Gen: $0.00250
Gemini 1.5 FlashHigh Speed
$0.00016
In: $0.075/M · Out: $0.3/MPrompt: $0.00001 · Gen: $0.00015
DeepSeek V3Ultra Value
$0.00016
In: $0.14/M · Out: $0.28/MPrompt: $0.00002 · Gen: $0.00014
DeepSeek R1Reasoning
$0.00117
In: $0.55/M · Out: $2.19/MPrompt: $0.00007 · Gen: $0.00110
Llama 3.1 70BOpen Weights
$0.00048
In: $0.59/M · Out: $0.79/MPrompt: $0.00008 · Gen: $0.00040
LATENCY:0.0ms|SYNCING...