TryLLMCost
All 20 Calculators/Provider Calculators
Live Multi-Tokenizer Tool

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.

Reference public API rates (2025–2026) — editable inline
35 tok
69 tok
~270 tok
0%
0–90%
Async Batch API (24h SLA)
Live Token EstimatorEnglish Prose
OpenAI (o200k)
104
Claude (~1.08x)
112
Gemini (~1.03x)
107
Input Words
28
Characters
383
Out Tokens
270
Cheapest Match (1k calls):Llama 3.1 8B Instant (Groq) · $0.03
#Model & ProviderContext / SpeedInput $/1M (edit)Output $/1M (edit)Cached $/1M1 Call1,000 Calls100,000 Callsvs 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.00Baseline
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

English Rule of Thumb
~1.33 Tokens / Word

1,000 English words average ~1,300–1,350 tokens on OpenAI o200k_base and ~1,400–1,450 on Claude.

JSON & Code Penalty
1.5x – 2.2x Denser

Braces, quotes, colons, indentation, and camelCase identifiers split into far more tokens than plain prose.

CJK Token Efficiency
~1.3–1.6 Tok / Char

Chinese, Japanese, and Korean text consumes more tokens per visible character than Latin alphabets.

Focused Models in This Calculator

GPT-4.1OpenAI
Input/1M
$2.00
Output/1M
$8.00
Cached/1M
$0.50
1.0M context~78 tok/s

Coding, 1M-context RAG, instruction following

Claude Sonnet 4Anthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~72 tok/s

Autonomous coding agents, editorial writing, tool use

Gemini 2.5 ProGoogle
Input/1M
$1.25
Output/1M
$10.00
Cached/1M
$0.31
1.0M context~88 tok/s

1M-context repo analysis, PDF/video ingestion, reasoning

GPT-4o miniOpenAI
Input/1M
$0.15
Output/1M
$0.60
Cached/1M
$0.075
128K context~135 tok/s

Support chatbots, summarization, JSON extraction

DeepSeek V3 (Chat)DeepSeek
Input/1M
$0.27
Output/1M
$1.10
Cached/1M
$0.070
128K context~68 tok/s

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.

Transparent SaaS Pricing

Free 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 Signup
$0/ forever

Everything 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
Use Free Calculator Now
Most Popular

Pro

Founders & PMs
$15/ month

Never 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 Guardrails
$39/ month

Connect 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