AI systemstokenstokens per minuteTPMtokenizertokeniser

Token (LLM)

Definition

A token is a piece of text, often a word fragment, produced by the model's tokeniser; models consume input tokens, produce output tokens and are billed and rate-limited per token.

In practice

Tokens drive cost, latency and capacity. Input tokens set prefill time and price, output tokens set generation time, and providers enforce quotas in both requests per minute and tokens per minute (TPM). In practice the TPM quota is often the first limit an LLM application hits, long before CPU or memory.

Token counts vary by model and language, so estimate with the provider's tokeniser rather than word counts. Retries cannot buy capacity: a request rejected for exceeding the TPM quota consumes budget again when retried. Agents and long chats re-send their growing history on every call, so input tokens grow with each turn.

Example

A deployment with a 300,000 TPM quota and requests averaging 2,500 input plus 500 output tokens can serve at most 100 requests per minute, however many servers call it.