TokenRa AI Model Catalog
Free tool · Nothing uploaded · No signup

Token counter and cost per call

Paste a prompt, a document, or a log line. The counter estimates how many tokens it will consume, and prices one call on every model in the live catalog so you can see what a single request costs before you send it.

Your text never leaves the browser. Only the price list is fetched, and it contains no request data.

Paste your text

Estimates use a character-class heuristic: about 4 Latin characters per token, 1.5 CJK characters per token. Treat the result as ±20% and check the exact count in the usage field of a real response.

Characters0
Estimated tokens0
CJK / Latin / other0 / 0 / 0
Cheapest call—

Cost of one call, by model

ModelInput $/1MOutput $/1M One callPer monthFits 1M ctx
Loading live prices…

Per-request models

These are billed per generation, so the token count does not change their price.

ModelInput $/1MOutput $/1M One callPer monthFits 1M ctx
—

Questions about token counting

How accurate is the estimate?

Within about 20% for ordinary prose. The counter splits text into CJK, Latin and other characters and applies a per-class ratio, which matches real tokenizers closely enough for budgeting but not for billing. For an exact number, read the usage field of any real response.

Is my text sent anywhere?

No. Counting happens in your browser with plain JavaScript. The only network request the page makes is for the public price list, which contains model names and rates.

Why does Chinese need a different ratio?

English words average about four characters per token because tokenizers merge common subwords. Chinese characters are mostly one character per token or slightly less, so counting characters and dividing by four would understate a Chinese prompt by a factor of four or more.

What is a token, exactly?

It is the unit models read and bill in: a word, part of a word, or a single CJK character. The same text can tokenize differently across providers, which is why the estimate is approximate.

Does the output count against the same number?

No. Input tokens are what you send. Output tokens are generated separately and are usually billed at the model's completion ratio, which the cost column applies.

Why does one call cost more on some models?

Three multipliers stack: the model ratio, the completion ratio for output, and any cache discount for reused prefixes. The table already applies all of them.

What does "Fits 1M ctx" mean?

It checks the estimated token count against a 1M-token context window, which only some models have. It is a rough filter, not a promise: check the model page for the context length that model actually supports.

Can I paste a whole document?

Yes, but very large pastes are estimated in the browser and may be slow above a few hundred thousand characters. For those, sample a representative section and scale the result.

How many tokens is a page of text?

About 500 for a dense English page of 2,000 characters, and roughly 1,200 to 1,500 for the same page in Chinese.

Do retries and failed calls consume tokens?

A failed call that never reached the model consumes nothing. A call that reached the model and then errored usually consumes what was generated, so budget a small margin.

Where can I see the exact number for a real request?

Every API response returns a usage object with prompt and completion token counts, and the console usage log stores the same numbers per request.

Does using this counter cost anything?

No. Nothing is metered and no account is required.