Definition·
Fundamentals

Token

A unit of text (often a word fragment) that a language model consumes and produces.

Detailed explanation

LLMs do not read words but tokens — roughly ¾ of a word in English, more in French. API pricing and context window size are measured in tokens. Counting tokens helps predict cost and limits.

Examples

The word 'hello' ≈ 1 token
1,000 English words ≈ 1,300 tokens
GPT-4 priced per million tokens

Frequently asked questions

How do I count my tokens?

Use libraries like tiktoken (OpenAI) or the utilities each vendor provides.

Related terms

Last updated: 7/15/2026

Talent AI

Turn theory into practice

Post a mission or join the community of top AI, Data and Machine Learning experts.