Live AI Token Counter for OpenAI, Claude & Gemini Prompts
Paste any prompt, JSON schema, source code file, or CJK text to count tokens live across OpenAI, Anthropic Claude, and Google Gemini — with instant 25-model pricing.
| # | Model & Provider | Context / Speed | Input $/1M (edit) | Output $/1M (edit) | Cached $/1M | 1 Call | 1,000 Calls | 100,000 Calls | vs GPT-4o |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Llama 3.1 8B Instant (Groq) Meta (Groq)·Fast / Budget | 128K ctx 560 tok/s | N/A | $0.000028 | $0.03 | $2.82 | -99% | ||
| 2 | Gemini 2.0 Flash-Lite Google·Fast / Budget | 1.0M ctx 210 tok/s | $0.019 | $0.000091 | $0.09 | $9.14 | -97% | ||
| 3 | Mistral Small 3.1 Mistral·Fast / Budget | 128K ctx 150 tok/s | N/A | $0.000099 | $0.10 | $9.95 | -97% | ||
| 4 | Llama 4 Scout 17B (Groq) Meta (Groq)·Fast / Budget | 131K ctx 460 tok/s | N/A | $0.0001 | $0.11 | $10.74 | -96% | ||
| 5 | GPT-4.1 nano OpenAI·Fast / Budget | 1.0M ctx 170 tok/s | $0.025 | $0.0001 | $0.12 | $11.84 | -96% | ||
| 6 | Grok 3 Mini xAI·Reasoning | 131K ctx 155 tok/s | $0.075 | $0.0002 | $0.17 | $16.93 | -94% | ||
| 7 | GPT-4o miniFocus OpenAI·Fast / Budget | 128K ctx 135 tok/s | $0.075 | $0.0002 | $0.18 | $17.76 | -94% | ||
| 8 | Gemini 2.5 Flash Google·Balanced | 1.0M ctx 165 tok/s | $0.037 | $0.0002 | $0.18 | $18.29 | -94% | ||
| 9 | Llama 4 Maverick (Together) Meta (Together)·Balanced | 1M ctx 140 tok/s | N/A | $0.0003 | $0.27 | $26.80 | -91% | ||
| 10 | Llama 3.3 70B (Groq) Meta (Groq)·Balanced | 128K ctx 280 tok/s | N/A | $0.0003 | $0.29 | $28.87 | -90% | ||
| 11 | DeepSeek V3 (Chat)Focus DeepSeek·Balanced | 128K ctx 68 tok/s | $0.070 | $0.0003 | $0.33 | $33.11 | -89% | ||
| 12 | GPT-4.1 mini OpenAI·Fast / Budget | 1.0M ctx 115 tok/s | $0.10 | $0.0005 | $0.47 | $47.36 | -84% | ||
| 13 | DeepSeek R1 DeepSeek·Reasoning | 128K ctx 54 tok/s | $0.14 | $0.0007 | $0.66 | $66.05 | -78% | ||
| 14 | Amazon Nova Pro (Bedrock) Amazon·Balanced | 300K ctx 98 tok/s | $0.20 | $0.0010 | $0.99 | $98.56 | -67% | ||
| 15 | Claude 3.5 Haiku Anthropic·Fast / Budget | 200K ctx 120 tok/s | $0.080 | $0.0013 | $1.26 | $125.76 | -58% | ||
| 16 | OpenAI o4-mini OpenAI·Reasoning | 200K ctx 95 tok/s | $0.28 | $0.0013 | $1.30 | $130.24 | -56% | ||
| 17 | Mistral Large 2 Mistral·Frontier | 128K ctx 65 tok/s | N/A | $0.0020 | $1.99 | $199.00 | -33% | ||
| 18 | GPT-4.1Focus OpenAI·Frontier | 1.0M ctx 78 tok/s | $0.50 | $0.0024 | $2.37 | $236.80 | -20% | ||
| 19 | OpenAI o3 OpenAI·Reasoning | 200K ctx 52 tok/s | $0.50 | $0.0024 | $2.37 | $236.80 | -20% | ||
| 20 | Gemini 2.5 ProFocus Google·Reasoning | 1.0M ctx 88 tok/s | $0.31 | $0.0029 | $2.91 | $291.38 | -2% | ||
| 21 | GPT-4o OpenAI·Frontier | 128K ctx 85 tok/s | $1.25 | $0.0030 | $2.96 | $296.00 | Baseline | ||
| 22 | Grok 3 xAI·Frontier | 131K ctx 74 tok/s | $0.75 | $0.0044 | $4.44 | $444.30 | +50% | ||
| 23 | Claude Sonnet 4Focus Anthropic·Frontier | 200K ctx 72 tok/s | $0.30 | $0.0047 | $4.72 | $471.60 | +59% | ||
| 24 | Claude 3.7 Sonnet Anthropic·Frontier | 200K ctx 75 tok/s | $0.30 | $0.0047 | $4.72 | $471.60 | +59% | ||
| 25 | Claude Opus 4 Anthropic·Frontier | 200K ctx 42 tok/s | $1.50 | $0.02 | $23.58 | $2,358.00 | +697% |
Tip: Click any Input or Output $/1M cell to test custom enterprise discounts, Bedrock/Vertex tiers, or Gemini 2.5 Pro >200k long-context rates inline.
Key Cost Benchmarks & Pricing Dynamics
1,000 English words average ~1,300–1,350 tokens on OpenAI o200k_base and ~1,400–1,450 on Claude.
Braces, quotes, colons, indentation, and camelCase identifiers split into far more tokens than plain prose.
Chinese, Japanese, and Korean text consumes more tokens per visible character than Latin alphabets.
Focused Models in This Calculator
Coding, 1M-context RAG, instruction following
Autonomous coding agents, editorial writing, tool use
1M-context repo analysis, PDF/video ingestion, reasoning
Support chatbots, summarization, JSON extraction
Frontier-adjacent quality at 90% lower cost
Production FinOps Optimization Playbook
Minify Whitespace in Large JSON Tool Payloads
Stripping pretty-printed indentation and null fields from injected JSON context routinely cuts input token counts by 20%–35% with zero loss in LLM accuracy.
Use Compact CSV/Markdown Tables Over Verbose JSON Arrays
Repeating identical JSON keys across 100 rows wastes hundreds of tokens. Switching structured tables to TSV/Markdown slashes input tokens by up to 45%.
Check Context Limits Before Packing Multi-File Prompts
Use the Context column in our table to ensure your estimated prompt + expected output fits cleanly inside 128k, 200k, or 1M model limits.
Frequently Asked Questions
How many words is 1,000 tokens?
For standard English prose, 1,000 tokens equals roughly 750 words (about 1.5–2 single-spaced pages). For dense source code or JSON, 1,000 tokens can be as little as 350–500 words.
Why do OpenAI, Claude, and Gemini report slightly different token counts?
Each lab trains a distinct Byte-Pair Encoding (BPE) / SentencePiece vocabulary. OpenAI's 200k-entry o200k_base vocabulary typically packs English and code ~3%–8% tighter than smaller vocabularies.
Is my pasted prompt sent to any server when using this token counter?
No. Token estimation and cost math run 100% client-side in your browser—your proprietary prompts, code, and customer payloads never leave your machine.
How accurate is TryLLMCost's token estimator?
Our multi-script heuristic accounts for word lengths, code/JSON punctuation density, and CJK ideographs—typically landing within +/-5% of provider billing endpoints for fast budgeting.
Related LLM Cost Calculators
OpenAI API Cost Calculator (GPT-4.1, GPT-4o, o3 & o4-mini)
Open calculator Anthropic Claude PricingClaude API Cost Calculator (Sonnet 4, Opus 4 & Haiku 3.5)
Open calculator Google Gemini API PricingGoogle Gemini API Cost Calculator (2.5 Pro, 2.5 Flash & Flash-Lite)
Open calculator Document Processing CostPDF Summarizer & Long-Document LLM Cost Calculator
Open calculatorFree Forever Calculator. Upgrade When Spend Scales.
Model 25 LLMs with zero login today. Upgrade to Pro or Team for automated API price-drop alerts, saved CFO scenarios, and live usage overrun guards.
Free
No SignupEverything you need for architecture sizing, prompt tokenization, and SaaS margin checks.
- Unlimited comparisons across 25+ models
- Live client-side prompt token counter (EN/Code/CJK)
- Prompt caching (0–90%) & Batch API 50% toggles
- AI Agent & SaaS Gross Margin Simulator
- 80/20 Model Routing Optimizer + inline rate edits
- Unlimited CSV financial exports
Pro
Founders & PMsNever get blindsided by provider price changes or margin erosion across investor reviews.
- Everything in Free, plus cloud-saved scenarios
- Compare multiple multi-agent architecture versions
- Weekly API price-drop & new-model email alerts
- 1-click branded CFO / Board Deck PDF export
- Custom enterprise discount profiles (AWS/Vertex/OpenAI)
- Historical token price tracker & depreciation notices
Team
Live GuardrailsConnect real production token telemetry and catch runaway agent loops before the bill lands.
- Everything in Pro for up to 10 team seats
- Zero-latency live usage telemetry proxy endpoint
- Real-time Slack & webhook budget overrun alerts
- Per-customer / per-tenant gross margin leaderboard
- Automatic anomaly detection on infinite agent loops
- Scheduled weekly FinOps digest to #ai-infra