What is a token, and why it decides your AI bill

4 min read

A token is a chunk of text a language model, the kind of program behind chatbots that predicts the next piece of text, reads and writes. It is usually part of a word, about three quarters of a word in plain English. Every model charges you by the token, so the number of tokens in your prompt, the text you send in, and your answer is the number on your bill.

New to these terms? Every word is explained in the series glossary.

Think of tokens like Lego bricks. A short word like "cat" is one brick. A longer word like "summarised" is two bricks, "summar" and "ised". The model never sees whole words. It only sees bricks, and it charges you for every brick it reads and every brick it writes.

I ran the same sentence through three real tokenisers, the programs that chop text into tokens, to see the count change. The sentence is "The chatbot summarised my meeting notes in five seconds." It has 9 words.

ModelTokeniserTokens
GPTcl100k_base12
Qwen 2.5Qwen tokenizer12
DeepSeek V3DeepSeek tokenizer11

GPT and Qwen, two families of language models, both split "summarised" into "summar" and "ised", and "chatbot" into "chat" and "bot". DeepSeek keeps "chatbot" as one piece, so it counts one less. Same sentence, same meaning, different bill. That is why you cannot guess a token count. You have to measure it.

Animation: The same 9 word sentence: 12 tokens with the GPT tokeniser, 11 with DeepSeek V3.

Here is the same idea scaled up. I took a plain English passage and counted tokens at four lengths, all with the GPT tokeniser.

Tokens per word count (GPT tokeniser, plain English)
25 words30tokens50 words58tokens100 words115tokens200 words230tokens
Data from the sources listed below.

The rule is simple. In plain English, 100 words is about 115 tokens. So a 1,000 word email is about 1,150 tokens, and a 10,000 word report is about 11,500 tokens.

Now the bill. Say one chat message is 50 input tokens (the text you send) and 30 output tokens (the text the model writes back). That is a short question and a short answer. For 1,000 messages, that is 50,000 input tokens and 30,000 output tokens. Prices below are per million tokens, the way providers quote cost, checked 9 November 2026.

ModelInput priceOutput priceCost for 1,000 messages
GPT-6 Luna$0.10$0.50$0.02
Claude Sonnet 5.5$2.00$10.00$0.40
GPT-6 Astra$10.00$50.00$2.00

Same 1,000 messages, twenty cents on one model and two dollars on another, a hundred times apart. The words never changed. Only the model and its token price changed.

Three things move your bill. First, the model you pick, because the per token price is the biggest lever. Second, how long your prompts are, because every word you paste in gets tokenised and charged. Third, how long the answers are, because output tokens cost five to ten times more than input tokens on most models. Short prompts and short answers are the cheapest habit you can build. The code below counts tokens with tiktoken, OpenAI's free Python library for its tokenisers. Typing pip install tiktoken in a terminal, the text window where you type commands, installs it.

python
import tiktoken
enc = tiktoken.get_encoding("cl100k_base")
text = "The chatbot summarised my meeting notes in five seconds."
print(len(enc.encode(text)), "tokens")
print([enc.decode([t]) for t in enc.encode(text)])

Try this

bash
pip install tiktoken
python3 -c "import tiktoken; e = tiktoken.get_encoding('cl100k_base'); print(len(e.encode('Paste your own prompt here')))"

Counted your tokens? Now estimate your full bill in the LLM API Cost Calculator. It works out the cost for 1,000 chats on the model you actually use.

Sources

  • Token counts measured on this machine, 14 November 2026: tiktoken 0.14.0 (cl100k_base), Qwen2.5 tokenizer, DeepSeek V3 tokenizer.
  • Prices: OpenAI, Anthropic and Google pricing pages, checked 9 November 2026 via published price trackers.