What is an AI token?

DEFINITION

In AI, a token is a small chunk of text, such as a word or part of a word, that language models read and write, and that is commonly used to measure usage and cost.

Language models do not process text letter by letter or word by word. They split it into tokens, which are common chunks of characters. A short common word may be one token, while a long or unusual word may be split into several. Punctuation and spaces also count. As a rough rule of thumb for English, a token averages around three-quarters of a word, though this varies by model and language.

Both your input (the prompt, instructions and any documents) and the model's output are measured in tokens.

Why tokens matter for businesses

Tokens affect three practical things. Cost: many AI services charge per token, often with different prices for input and output. Limits: each model can only handle a certain number of tokens at once, known as its context window. Speed: longer outputs take longer to generate. When AI runs inside an automated process thousands of times a day, small differences in token usage add up quickly.

Real-world example

A company summarizes every support ticket with AI. Its first version sent the full ticket history plus a long set of instructions with each request. By trimming the instructions, sending only the latest relevant messages and capping summaries at a few sentences, it cut tokens per request substantially with no drop in summary quality, which lowered its monthly bill proportionally.

Best practices

  • Remove unnecessary text from prompts, such as repeated instructions or irrelevant history.
  • Set a maximum output length that fits the task.
  • Use smaller, cheaper models for simple tasks like classification.
  • Monitor token usage per workflow so cost spikes are caught early.

Common mistakes

  • Sending entire documents when only a few relevant sections are needed.
  • Estimating costs from a quick test without accounting for real production volume.
  • Assuming token counts are the same across languages and models.
Try it free: Word & Character CounterCount words, characters, sentences and paragraphs, see reading time and your most-used keywords as you type. Free online word counter.

Frequently asked questions

How many words are in a token?

It varies by model and language. In English, a token is often a bit less than one word on average, so 1,000 tokens is typically several hundred words. Other languages, code and unusual vocabulary can use more tokens per word. Most providers offer tools to count tokens precisely.

Why do input and output tokens cost different amounts?

Generating new text requires more computation per token than reading input, so many providers charge more for output tokens. This means asking for concise answers can reduce costs, especially in high-volume automated workflows.

What happens if I exceed the token limit?

If a request exceeds the model's context window, it may be rejected or the oldest content may be cut off, depending on the tool. The model then cannot see the missing information, which can lead to incomplete or inaccurate answers.

Need help with this?

IA & automatisation by VYZEON — Mettez l'IA au service de toute votre entreprise.

Fixed packages from $299. Written scope, no surprises.

See IA & automatisation

Related terms

More AI & automation terms