Token counter
Paste a prompt and this token counter shows how many tokens it takes on open models from HIPS's catalog, each counted with the model's own tokenizer, and what those tokens cost at HIPS's live per-token rates. It is free and runs in your browser: the text you paste is never sent anywhere, logged or stored.
HIPS's catalog cannot be read right now, so this tool has no models to show. Reload the page in a minute.
Turn on JavaScript to count your own text. The example below was counted with the same files.
Example: one prompt on four models
Summarize this support ticket in two sentences and suggest a reply: the November invoice shows two charges for the same order, and the customer wants one of them refunded.
| Model | Tokens | Input cost at HIPS's rate |
|---|
We are inviting early-access interest while we develop the platform.
How the token counter works
A model never reads letters. It reads tokens: whole words, pieces of words, punctuation and spaces, each one an entry in the model's vocabulary. The tokenizer is the file that splits text into those entries, and each model family has its own.
- The model's own tokenizer. For every model in HIPS's catalog that names its Hugging Face repository, the counter uses the tokenizer file published with the model's weights, at the exact revision HIPS serves.
- Served from hips.com. HIPS copies those files to hips.com, so your browser loads them from HIPS and from no other site.
- Counted on your device. Your browser splits your text with that file and counts the pieces. Nothing is sent to a server to count.
- Priced from the catalog. The count is multiplied by the model's rate per million tokens, read live from HIPS's public catalog, the same source as the Pricing page.
Token calculator: what a prompt costs
As a token calculator, the page turns a count into money with one line of arithmetic:
cost = tokens ÷ 1,000,000 × rate per million tokens
Input and output have separate rates, so a request's cost is its input tokens at the input rate plus its reply tokens at the output rate. Enter the length of the reply you expect and the counter adds it.
Two things change the input side:
- Repeated input. Where HIPS's catalog prices cached input for a model's pool, repeated input is billed at that lower rate, and the counter shows it. Where it does not, repeated input is billed as input. Prompt caching is automatic, and writing to a cache costs nothing.
- Reasoning. A model that reasons writes tokens you may not see in its answer. HIPS's API reference counts them "inside
completion_tokens", so they are billed at the output rate. Leave room for them in the reply length.
To see the same model's price at other companies, open the LLM price table.
An LLM token counter for every open model
The same sentence can take a different number of tokens on two models, because their tokenizers learned different vocabularies. A count made with one model's tokenizer is only an estimate for another, so this LLM token counter counts with each model's own file and shows the difference side by side under "Count on every model".
The models it counts are the language models in HIPS's live catalog that name their Hugging Face repository. A model the catalog lists without one shows in the picker with the reason it is not counted. The list grows with the catalog: a model added to HIPS appears here once its tokenizer file is on hips.com.
Your text stays in your browser
Text you paste is counted in your browser. It is never sent to HIPS or anyone else, never logged and never stored.
- The tokenizer files come from hips.com, so no other site is asked for anything while you count.
- Your text is never put in the page's address, so a link you share carries the model you picked and never what you typed.
- If you accept analytics cookies, they record that the page was viewed, never what you typed.
When you send a prompt to the HIPS API itself, the same rule holds for it: HIPS never trains on, retains or logs your prompt data. Security and Data says how.
What the count does not include
- The chat template. A chat request wraps each message in the model's template: a few tokens that mark who is speaking. The API counts them; a count of the text alone does not.
- Images and files. Only text is counted. Images sent to a model that reads them are counted by the model in its own way.
- Tool definitions. Tools you send with a request are text the model reads, and they add input tokens.
So the number here is a close estimate of the text's own tokens. The number billed is the API's: HIPS's API reference says prompt and completion tokens are "Counted by the serving engine's tokenizer for the pinned model. These are the billable units at the model's separate input and output rates." API reference: usage.
Token counter questions
What is a token?
A token is the unit a language model reads and writes: a whole word, part of a word, a number, a punctuation mark or a space. Models are billed per token, input and output separately, so the count sets both the price of a request and whether it fits the model's context window.
How many tokens is my text?
It depends on the model. Paste the text above and pick a model to see its count; "Count on every model" shows the count on each one. The counter also shows how many characters your text averages per token on that model, which differs between languages and between code and prose.
Is this an OpenAI token calculator?
For OpenAI's open-weight models, yes: gpt oss 120b and gpt oss 20b are in HIPS's catalog, and the counter uses the tokenizer file OpenAI published with their weights. It does not count tokens for OpenAI's API models that are not open-weight, since their files are not among the models HIPS serves.
Why does the same text give different counts on different models?
Each model family trained its own tokenizer, with its own vocabulary. One may store a common word as a single token where another splits it in two, and languages other than English, code and numbers vary the most.
Does the API count the same number?
Close to it, not always exactly. The API counts the full request, including the chat template and any tools, with the serving engine's tokenizer, and that count is the one billed. The counter counts the text you paste with the file the model was published with.
Is my text saved or sent anywhere?
No. Text you paste is counted in your browser. It is never sent to HIPS or anyone else, never logged and never stored.
Which models can I count?
Every language model in HIPS's catalog whose tokenizer file is on hips.com, listed in the picker. Models without one are listed too, each with the reason it is not counted yet.
Run these models with HIPS
Call every model on this page through one API, billed per token at the rates above.