Skip to content

AI and automation

What is a token in a language model?

Definition

Token (in language models): The small pieces a language model splits text into; context size and usage cost are counted in tokens. Unrelated to a Telegram bot token.

Also known as: LLM token, text piece

A large language model does not read and write text letter by letter or word by word, but in pieces called tokens. A token can be a word, part of a word or a punctuation mark. How many tokens the same text takes depends on the model and the language.

Tokens decide two things. The first is how much text the model can read at once: the instructions, the conversation and any added information (the prompt) must fit within that limit. The second is price: many AI services charge by the number of tokens read and written. According to Meta's pricing page, for example, Meta's own AI agent (Meta Business Agent) is charged per token.

The word "token" also means something else on Telegram: a bot's secret key. The two are unrelated; for the bot key, see Telegram bot token.

Meta is a trademark of Meta Platforms, Inc. and its affiliates. Telegram is a trademark of its owner. These names are used here only to describe the service concerned, not as a generic term; UPPU is not an affiliate, partner or agent of these companies.

Example

An agent asks for a summary of a long conversation. It holds hundreds of messages, more than the token limit the model can read at once. So the summary tool takes the newest messages and leaves out the oldest, and the summary describes the latest part accordingly.

Sources

Last checked: 23 November 2026

  1. Meta: Pricing on the WhatsApp Business Platform (Meta Business Agent) (accessed 23 November 2026)

All terms