Token Cost Calculator
Estimate the cost of a call from input/output tokens and per-million pricing, in USD or CNY.
FreeNo sign-up
Text
Tokens
0
Characters
0
Words
0
Total
—
Input price (per 1M tokens)
Input cost
—
Output cost
—
Total
—
Estimated values. Actual usage depends on the model's official tokenizer.
Estimate the cost of a call from input/output tokens and per-million pricing, in USD or CNY.
Large language models bill by token, and tokens aren't characters: English runs roughly 4 characters per token, while Chinese is close to 1 token per character. This tool estimates the token count of your text and turns your own per-million price into a cost figure.
How to use it
- 1Paste the text you want to estimate into the input.
- 2Enter your model's price per million tokens.
- 3The token count, character count and estimated cost update live below.
FAQ
Related tools
- Midjourney Prompt GeneratorPick subject, style and parameters to build a ready-to-paste prompt with --ar and --stylize.
- Prompt FormatterTurn messy tags into a clean comma or line separated list — dedupe, sort and strip weights.
- Prompt CleanerStrip stray blank lines, zero-width characters, Markdown marks and mixed punctuation from copied prompts.
- AI Text CleanerRemove blank lines, double spaces, line numbers, markdown bold and canned AI openers in one pass.
- Prompt Diff CheckerCompare two prompt versions line by line, with added/removed highlights and a similarity score.
- Prompt Length CounterLive character, word, line and token estimates, checked against common model context limits.
- Prompt Variable GeneratorWrite a template with [placeholders] and expand every variable combination into a full prompt list.
- Prompt Library ManagerSave, tag and search your prompts in local storage, with JSON backup.