LLM Token Counter & Cost Calculator
Paste your prompt or text to instantly see token count and API cost for every major model — Claude, GPT-4o, Gemini, and more.
0
Tokens (est.)
0
Words
0
Characters
API cost by model
Token estimates use ~4 characters/token (GPT-2/4 average). Actual counts may vary slightly by model.
| Model | Provider | Context | Input $/1M | Output $/1M | Cost (this text, input) | Fits? |
|---|
REST API — for agents and scripts
POST your text to get token count and model comparison in JSON:
curl -X POST https://hatchloop.dev/api/tools/tokens \
-H "Content-Type: application/json" \
-d '{"text": "Your prompt here"}'
Hatchloop Pro
Need higher API limits?
10,000 API requests/day · Batch operations · Priority support
Upgrade to Pro — $9/mo →Cancel anytime · Billed via Polar