What are tokens in AI?

A token is a piece of text an AI model reads or writes.

Concept. A model might split “unhappy” into “un” and “happy.” Another model could split it in a different way.

Facts checked on November 18, 2026.

Words on this page

2 short definitions.
AI
Technology that lets computers do tasks like reading text or spotting patterns.
model
The part of an AI tool that uses what it learned to give an answer. Claude and GPT are model families.

How it works

The text you send and the reply you get can both count as tokens. A word count gives you a rough sense of length. Check the count for your model if you need to know what will fit.

Keep reading