← All reads
AI·Jun 24, 2024

What a token is in AI and why it affects cost

When you read that an AI service charges "per token", it is easy to be left puzzled. A token is not a word or a letter: it is the unit that artificial intelligence uses to read and write, and understanding it helps you control what you pay.

What a token is in AI and why it affects cost
Imagen: Unsplash

If you have compared artificial-intelligence tools, you have surely run into prices that say things like "three dollars per million tokens". It sounds like another language. And yet, understanding what a token is the only way to know why an assistant costs what it costs, and how to spend less without losing quality.

The good news is that the concept is simple. You do not need to know how to code to grasp it. You just have to swap the idea that AI "reads words" for the idea that AI "reads pieces".

A token is a piece of text

Language models do not read letter by letter or word by word. They split text into pieces called tokens. A token is usually a whole short word, or a fragment of a long word, or even a punctuation mark. In English, the rough rule that OpenAI itself gives is that one token equals about four characters, or three quarters of a word.

To make it concrete: a sentence of about 100 words runs to roughly 130 tokens. The word "house" is probably a single token; a rare or very long word can split into two or three. That is why the count is not exact and varies by language and model.

  • A token is NOT a word: sometimes it is half a word, sometimes a whole word.
  • A token is NOT a letter: it almost always groups several characters together.
  • As a guide: in English, 1 token ≈ 4 characters ≈ 0.75 words.
  • Different models cut text differently, so the same message can have a different count in each one.

Why it is billed per token

Processing text costs money for whoever runs the servers: every token the AI reads or writes consumes computation. That is why almost all providers charge by number of tokens rather than by words or by messages. It is the fairest way to measure the real effort the machine makes.

The token is the currency of artificial intelligence. You do not pay for what you say; you pay for how many pieces it takes to process it and answer it.

Input and output do not cost the same

Here is the detail that surprises people most. Your bill has two parts: input tokens, which are what you send to the AI (your question plus all the background instructions), and output tokens, which are what the AI sends back. And almost always the output costs more than the input, often double or more.

The reason is technical but logical: the AI reads your whole question in a single pass, while to answer it must generate word by word, calculating each piece one after another. Generating is slower and more expensive than reading. The practical consequence for your wallet is clear: longer answers mean higher bills.

How to spend less without losing quality

Once you understand that you pay per token, there are concrete ways to manage the cost without the customer noticing anything wrong:

  • Ask for concise answers. A reply that gets to the point uses fewer output tokens, which are the expensive ones.
  • Do not repeat unnecessary context. Every background instruction you send in each message is also billed as input.
  • Pick the right model for the task. A simpler, cheaper model is enough for frequent questions; save the expensive ones for the complex stuff.
  • Measure one language at a time. The same text can use more tokens in one language than another, so it pays to check your real case.

This matters a lot when an assistant serves your clients all day. An agent like Lidia, which answers and books appointments on WhatsApp, is reading and writing tokens in every conversation. Knowing how the counting works lets you understand the bill and ask for efficient replies instead of endless paragraphs nobody reads.

Language matters too

A detail few people expect: the same message does not consume the same tokens in every language. Because models learned from a huge amount of English text, they tend to cut English into more efficient pieces. Other languages, or accented characters, sometimes split into more tokens to say the same thing. It is not a huge difference, but if you serve thousands of customers a month, it shows up on the bill.

The practical lesson is not to switch languages, but to stop trusting rough mental math. If you are going to hire an AI assistant, ask for an estimate based on your real messages in your real language, not an English example that looks cheaper than it will be. A serious provider will give you that number without fuss, and that way there are no surprises at the end of the month.

Takeaway

A token is a piece of text, roughly four characters in English. AI charges for how many it reads and how many it writes, and what it writes usually costs more than what it reads. With that idea in your head, AI prices stop being a mystery and you start making decisions that protect both the customer experience and your budget.

Sources

  • MindStudio — https://www.mindstudio.ai/blog/token-based-pricing
  • BenchLM — https://benchlm.ai/blog/posts/llm-token-pricing
  • Zen van Riel — https://zenvanriel.com/ai-engineer-blog/understanding-ai-tokens-currency-of-language-models/
  • Silicon Data — https://www.silicondata.com/blog/llm-cost-per-token
Share