What Are AI Tokens? Why Words Do Not Predict Usage
A sentence does not have a fixed token count. Different models may split the same sentence differently, so word or character counts cannot be used directly to calculate a bill.

Tokens are the units that the model processes.
A token is a unit of text a language model processes. It might be a word, part of a word, punctuation or a piece that includes a space. Underlining the words in a sentence and counting them will not give you the token count.
Tokenizer splits the text. This process is called Tokenization. Each piece then gets a numeric code, or token ID, from the tokenizer's vocabulary before the model reads it. The Hugging Face lesson on encoding shows the splitting and ID assignment as separate steps.
An ID is not a token count: a high-numbered ID does not mean the text used many tokens. Count the pieces instead, and check whether the counter includes special system tokens.
Here, token means a unit used by a language model, not a digital-asset token. AI plan allowances and quotas depend on the service's own terms, not on the word “token” alone.
Why can one word have multiple tokens?
Different tokenizers have different vocabularies and rules. With Subword Tokenization, a tokenizer can assemble words from pieces, so its vocabulary need not store every word as one unit.
In Hugging Face's subword example the English word tokenization is split into token and ization so a word you read as one word takes two tokens in this illustration.
The image shows one example's split, not a rule for every model. A longer word does not always take more tokens than a shorter one. Hugging Face's documentation describes BPE, Unigram and WordPiece, which do not all split text the same way.
Can Thai token usage be inferred from words or characters?
Thai does not place spaces between every word. Splitting at spaces cannot even count Thai words reliably, much less tokens for a particular model. To find out how many tokens วันนี้อยากเรียนรู้เรื่อง AI uses, choose a counter that supports that model.
Word count measures a piece of writing's length; character count measures the text's length; token count reflects a model's tokenizer. They answer different questions and cannot directly replace one another.
An estimate borrowed from English, such as average characters per token, might help size some tasks. It is not a fixed rate for Thai. Do not use it to calculate an actual bill or claim Thai always takes more tokens than English without specifying and comparing the model and text.
Incoming, Outgoing Tokens and Context Window
Text sent to the model counts as Input Tokens. Text the model generates counts as Output Tokens. Some services report other components, such as internal reasoning or tool use. Check the definitions for the service and model you use.
The input can include more than the question on screen: system instructions, documents and earlier turns may also be sent. Gemini documentation explains how it counts text, history, system instructions and tools. A short question after a long conversation may therefore involve more input than the latest message.
Context Window is the amount of information a model can process together, often measured in tokens. How that space is shared among input, output and other parts depends on the model. For long documents, see the guide to context windows and long documents and check the specific model's limits. A large window does not guarantee accurate answers about every part.
An API may charge by token count, with different rates for input and output and other conditions. Consumer chat apps have their own plan allowances. Do not apply an API pricing formula to a chat subscription.
See how spaces and punctuation affect token counts
Try counting text without personal information. Choose a counter that names its model, and record the model or tokenizer version before starting. These are steps KrobClick suggests trying, not token measurements we have made.
- Count the initial text
วันนี้อยากเรียนรู้เรื่อง AIthen record the displayed count, and segmentation output if available - Change only the punctuation to
วันนี้อยากเรียนรู้เรื่อง AI!then recount with the same model - Return to the initial prompt and change only the final word to
วันนี้อยากเรียนรู้เรื่องปัญญาประดิษฐ์Record results separately from the previous round. - For cross-model comparisons, keep the input text identical character for character and label each result with its model
Compare the counts and the boundaries between pieces. Adding one punctuation mark does not necessarily add exactly one token; it may change neighboring pieces.
Check whether the tool counts plain text only or includes chat structure and special tokens. If the service does not explain the scope, say that comparisons are limited. A number typed by an AI in its answer is not evidence from a tokenizer.
Developers may count input before a request to check its size, then inspect the API's usage report after processing for actual usage. An advance input count does not tell you the answer's token count. See a service-specific example in Gemini's guide to counting tokens before sending and after responding
Write concisely while preserving key information
To reduce input, remove repeated instructions, select relevant document sections and specify the desired answer format. Do not remove conditions or exceptions needed for an accurate answer just to save tokens.
For a hypothetical refund-policy review, you might use this prompt:
Using the attached policy, explain who can request refunds, within how many days, and with which exceptions. Identify supporting sections. If unspecified, say no information was found.
In this case, include both the main policy and relevant exceptions, then check the answer against the original. A shorter request that drops exceptions may lead to a wrong answer. Before sending personal or customer documents, check your permission and the service's data policy.
Sources used for verification
- Hugging Face LLM Course: Tokenizers
- Hugging Face Transformers: Tokenization algorithms
- Google AI for Developers: Understand and count tokens
Sources reviewed October 23, 2026, Thailand time. Segmentation images are Hugging Face examples. Thai exercises and prompts are KrobClick proposals, not model tests or actual API calls. Tokenization, limits, and billing depend on the model and service.