Claupt
🔢 Token Counter
🔢

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.

Prompt cost calculator

Paste text below for an estimate, or enter token counts from your provider for more precise budgeting. All costs are in USD.

Input cost: $0 · Output cost: $0

Estimated period cost: $0 for 900 calls.

Standard input/output calculation only. Enter full billable output tokens, including reasoning where applicable. Caching discounts and separate tool, image, or audio charges are not modeled.

Check current rates at your provider before budgeting. Google Gemini pricing. Gemini 2.5 Flash standard text rates checked September 6, 2026: $0.30 input / $2.50 output per million tokens. Other presets remain historical examples.

📥 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

Illustrative text chunks only. These chips are not a model's actual tokens.

ℹ️ Text counts are rough estimates and can differ substantially from provider usage, especially for code, non-English text, and emoji. For budgeting with known usage, select “Use token counts” above. No accuracy percentage is guaranteed.
✂️

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.

AI token calculator: 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.

Token Counter & Cost Estimator: common questions

Is Claupt an exact tokenizer?

Claupt estimates tokens using a heuristic. Use the target model’s tokenizer or reported API usage when you need an exact count. Code, languages, emoji, message formatting, and non-text inputs can change the result.

How do I estimate the cost of an AI prompt?

Enter input tokens, expected output tokens, and the current price per million tokens for each. Cost per call equals input tokens × input price / 1,000,000 plus output tokens × output price / 1,000,000. Claupt also multiplies this by your chosen call volume.

Are the model prices live?

No. Presets are historical examples. Enter current provider prices and context limits before budgeting. A token estimate does not guarantee that a prompt fits a model’s context window.

Claupt tools are free to use without an account. Working text is processed in your browser. Site analytics and advertising follow your privacy choices.

How much room should I leave for the answer?

Subtract your expected output and any system messages, conversation history, and tool results from the model’s usable context allowance. For example, a hypothetical 16,000-token allowance minus 2,000 output tokens and 1,000 tokens of other messages leaves 13,000 for the source text. Check the provider’s separate output limits and allow a margin for estimation error.

Guides and next steps