Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. LLMs /
  4. What is a Token in AI?
LLMs

What is a Token in AI?

Updated September 21, 2026 Read 3 min

A token is the basic unit of text a large language model reads and generates. A token can be a whole word, part of a word, a punctuation mark or a space. LLM context limits and pricing are measured in tokens.

Contents 12
  1. 01Key takeaways
  2. 02A token explained in simple terms
  3. 03Examples of tokenisation
  4. 04Why tokens matter
  5. 05A worked example: estimating cost
  6. 06Tokens beyond text
  7. 07Tokens in reasoning models
  8. 08How to count tokens
  9. 09Limitations and quirks
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

A token is the basic unit of text that a large language model reads and generates. A token can be a whole word, part of a word, a number, a punctuation mark or a space. Before an LLM processes your prompt, it splits the text into tokens through tokenization. Model limits, speed and pricing are all measured in tokens.

This page explains what tokens are and why they matter in practice. For how text is split into tokens, see What is Tokenization?

Key takeaways

  • Tokens are often word pieces, not whole words.
  • In English, a common rule of thumb is about 4 characters or roughly three quarters of a word per token.
  • Many other languages, including Hindi and other Indian languages, often need more tokens for the same meaning.
  • Context windows and API pricing are measured in tokens.
  • Output tokens are usually priced higher than input tokens.

A token explained in simple terms

Think of tokens as LEGO bricks for text. Common words like “the” or “and” are single bricks. Longer or rarer words are built from several bricks: “unbelievable” might be “un” + “believ” + “able”. The model never sees letters directly; it sees a sequence of brick IDs. Everything it reads and writes is assembled from its fixed set of bricks, called its vocabulary.

Examples of tokenisation

Exact splits vary by model, but a typical English tokenizer might produce:

TextPossible tokensCount
“Hello world”“Hello”, ” world”2
“Tokenization”“Token”, “ization”2
“₹2,50,000”“₹”, “2”, “,”, “50”, “,”, “000”about 6
“QueryFeedz”“Query”, “Fe”, “edz”about 3

Note that spaces are often attached to the start of the next word, and unusual names and numbers split into many tokens.

Why tokens matter

AreaWhy tokens matter
CostAPI providers charge per token, often priced per million tokens, with separate input and output rates
Context limitsThe context window is a token budget for your prompt, documents, history and the response
SpeedModels generate output one token at a time, so longer answers take longer
Output limitsMany APIs cap the maximum tokens in a single response
QualityRare words split into many tokens can be handled less reliably

A worked example: estimating cost

A support team summarises 1,000 customer emails a day. Each email plus instructions is about 600 input tokens, and each summary is about 150 output tokens.

  • Daily input: 1,000 × 600 = 600,000 tokens.
  • Daily output: 1,000 × 150 = 150,000 tokens.

Multiply each by the provider’s per-million-token rates to estimate daily cost. Shortening instructions or summaries directly reduces the bill. Because prices differ widely between models and change often, always check the current pricing page.

Tokens beyond text

Multimodal LLMs also turn images and audio into tokens. An image may be split into patches that each become one or more tokens, so large or detailed images use more of the context window and cost more.

Tokens in reasoning models

Reasoning models generate internal “thinking” tokens before the final answer. These usually count towards output usage and cost, even if you do not see all of them.

How to count tokens

Most providers publish tokenizer tools or libraries, such as OpenAI’s tiktoken, and APIs report token usage with each response. For accurate budgeting, count with the tokenizer for the exact model you use, since different models split text differently.

Limitations and quirks

  • Models can struggle with letter-level tasks, such as counting letters in a word, because they see tokens, not individual letters.
  • Token counts differ between models for the same text.
  • Non-English text is often less token-efficient, raising cost.

Common Use Cases

01

API cost estimation

Estimate and control LLM costs by measuring tokens per request.

02

Context management

Fit documents, chat history and instructions within the context window.

03

Response length control

Set maximum output tokens to control speed and cost.

04

Prompt optimisation

Shorten prompts to reduce tokens without losing important instructions.

05

Chunking documents

Split long documents into token-sized chunks for retrieval systems.

06

Multilingual planning

Budget higher token use for languages that tokenise less efficiently.

Frequently Asked Questions

The basic unit of text an LLM processes, such as a word, part of a word, number or punctuation mark.

In English, a token is roughly three quarters of a word on average, or about four characters. It varies by model and language.

Because computing cost depends on how many tokens the model processes and generates.

Yes. Punctuation is often its own token, and spaces are usually attached to the following word.

Tokenizers are often trained mostly on English text, so other languages and scripts split into more, smaller pieces.

Related Terms

  • Tokenization
  • Context Window
  • Large Language Model
  • Embedding
  • LLM Inference
  • Temperature in LLMs

Related AI Terms

What is an Attention Head?An attention head is a single attention unit inside a transformer layer, with its own query, key and…What is Prefix Tuning?Prefix tuning is a parameter-efficient fine-tuning method that learns trainable vectors inserted into the attention keys and values…What is an Attention Mechanism?An attention mechanism is a technique that lets a neural network focus on the most relevant parts of…What is Self-Attention?Self-attention is a mechanism where each position in a sequence attends to every other position in the same…What is Multi-Head Attention?Multi-head attention runs several attention operations in parallel, each with its own learned projections, so a model can…What is RoPE (Rotary Positional Embedding)?RoPE (rotary positional embedding) encodes a token's position by rotating its query and key vectors by an angle…

Contents

  1. 01Key takeaways
  2. 02A token explained in simple terms
  3. 03Examples of tokenisation
  4. 04Why tokens matter
  5. 05A worked example: estimating cost
  6. 06Tokens beyond text
  7. 07Tokens in reasoning models
  8. 08How to count tokens
  9. 09Limitations and quirks
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

AI Topic

  • LLMs

Related Terms

  • What is an Attention Head?
  • What is Prefix Tuning?
  • What is an Attention Mechanism?
  • What is Self-Attention?
  • What is Multi-Head Attention?
  • What is RoPE (Rotary Positional Embedding)?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 21, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}