Skip to main content
idapt
AccueilModèles IATarifs
Sign inStart free
All terms

Learn

What is a token in AI?

Last reviewed July 16, 2026

A token is the unit of text an AI model actually reads and writes: a word, part of a word, or a punctuation mark, averaging roughly three-quarters of an English word. Everything about a model is measured in tokens: its context window is a token limit, its price is quoted per million tokens in and out, and its speed is tokens per second. A 1,000-word document is roughly 1,300 tokens.

Why prices are per million tokens

Providers bill input tokens (everything you send: the message, the history, attached files) and output tokens (what the model writes) at separate per-million rates, with output typically several times the input rate. Long conversations resend their history on every message, so the same question costs more in a long thread than in a fresh one. That makes token counts the practical unit of cost control.

Tokens are not words

Tokenizers split text into subword pieces, so counts vary by content and by model family: code, non-English languages, and unusual formatting use more tokens per word than plain English prose. The only reliable way to know a prompt's size is to count it with the model's own tokenizer rather than estimating from word count.

In idapt

idapt shows a cost estimate before a message sends, prices every catalog model per million tokens on its model page, and counts tokens for any prompt in the token counter tool.

Token counterLLM cost calculator

Frequently asked

Related terms

TokenizerContext windowPrompt caching

Multi-Model Chat

GPT, Claude, Gemini, Grok, Llama: pick mid-conversation, cheapest-first.

AI Gateway

OpenAI-, Anthropic-, and OpenRouter-compatible endpoints with routing you control.

See it in practice

The fastest way to understand it is to use it. Start free, no credit card.

Try idapt free
  • Accueil
  • Tarifs
  • Modèles IA
  • Modèles d'image
  • Modèles de voix
  • Modèles vidéo
  • Classements
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Secrets
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • Code Execution
  • Computers
  • Computer Use
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • Blog
  • Cas d'usage
  • Comparisons
  • Best of
  • Learn
  • Free tools
  • Prompts
  • Templates
  • Changelog
  • Centre d'aide
  • FAQ
  • Confidentialité
  • Comparer tous les modèles
  • Support
  • Développeurs
  • Quickstarts
  • Référence API
  • Tarifs API
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]ConditionsPolitique de confidentialitéMentions légalesSignaler un contenu
X (Twitter)