Home / Tools / LLM Token Counter
AI / RAG
LLM Token Counter
Count tokens and estimate cost for GPT, Claude, and Gemini.
About $1 per 2,000 unique texts.
Counts tokens offline for OpenAI models and estimates Claude and Gemini. Uses public list prices. No API key. Paste text or add file links.
What it does
- Exact OpenAI token counts with tiktoken.
- Claude and Gemini counts marked as estimates.
- Shows dated public list prices for cost estimates.
Before and after
Texts and models
texts:
Hello tokens
Hello tokens (repeat, not charged again)
A second text
models: gpt-4o, claude-sonnet-5.5
What you get back (from the Actor test)
"Hello tokens" gpt-4o: exact token count + input cost
claude-sonnet-5.5: estimate, marked as estimate
"A second text" same models, billed once
Repeats and blank lines are free.
From token-counter-apify/tests/test_actor.py.
Get it
Pay per use · Apify · $0.0005 per unique text
FAQ
What does this tool do?
Count tokens and estimate cost for GPT, Claude, and Gemini. Counts tokens offline for OpenAI models and estimates Claude and Gemini. Uses public list prices. No API key. Paste text or add file links.
What does it cost?
Pay per use on Apify costs $0.0005 per unique text.
Will you see my files?
The download tools run on your computer, so those files stay with you. The Apify tools run in your own Apify account. This website does not take uploads.