BACK TO GLOSSARY
AI & LLM Glossary

What is Token?

TokenThe basic unit of text that AI models process. A token is roughly 4 characters or 0.75 words in English.

Definition & Explanation

Tokens are the fundamental units that LLMs use to process text. Rather than processing characters or words directly, models split text into tokens—which can be whole words, parts of words, or punctuation marks. The number of tokens affects both the cost of using an AI model and what fits within its context window. For AI coding tools, tokens are used to measure how much code the model can read and generate in a single session.

AI Tools Using Token

Frequently Asked Questions

What is a token in AI?

A token is the basic unit an AI model uses to process text. Roughly speaking, 1 token ≈ 4 characters ≈ 0.75 words in English. AI models have limits on how many tokens they can process at once.

How do tokens affect AI coding tools?

Tokens determine how much code an AI can read and generate. More tokens = larger context window = the AI can understand more of your codebase. Token limits also affect pricing for API-based tools.

Related Terms

EXPLORE MORE

Browse All AI & LLM Terms

Explore our complete glossary of AI, LLM, and system prompt terminology.

View Full Glossary