Token Counter & Cost Estimator
Estimate tokens and API costs before you hit send. Uses a rough character-based estimate, not a model tokenizer. Model presets are historical examples; enter current provider prices and context limits before budgeting.
🤖 Model & pricing
Presets are not live quotes. Prices may vary by input length, caching, reasoning and hosting provider.
📥 System + User Prompt
0 chars · ~0 tokens
📤 Expected Output (estimate for cost math)
Input tokens
0
~0 words
Output tokens
500
estimated response
Cost per call
$0.00
input + output
Context usage
0%
💰 If you run this prompt repeatedly
| Volume | Total tokens | Total cost |
|---|
🔍 Tokenization preview
Approximate visual: each colored chip ≈ 1 token (real BPE varies slightly per tokenizer).
Cut input costs
Use the TOON compressor & HTML stripper to remove unnecessary formatting.
Cache friendly
Provider caching may reduce charges for repeated input. Check your provider’s current rules.
Batch check
Table shows 10× / 1k× / monthly volumes — budget before you scale.
Estimate prompt size and cost
Paste a prompt and optionally an expected answer. Otherwise use the output slider. Enter current input and output prices in US dollars per million tokens, and your model’s context limit.
Example: 1,000 input tokens at $2 per million plus 500 output tokens at $8 per million costs $0.006 per call. Thirty calls per day over thirty days means 900 calls, or $5.40.
This tool is a heuristic, not an exact tokenizer. Non-English text, code, emoji, message wrappers, images and reasoning can change billed usage. Presets are historical examples, not verified live prices. Truncation below uses the same estimate and cannot guarantee acceptance by a model.
Trim a prompt to an estimated budget
Trimming changes the prompt above. Keep a copy of important content.