Max tokens

The cap on how long an answer may be, counted in tokens.

Max tokens, common card #134 in The Glitch AI glossary: The cap on how long an answer may be, counted in tokens.
GLS 134 · common

Also called: Output limit.

For: Builders

Why it matters

It stops runaway answers and bills, but too low a cap cuts answers off mid-sentence.

In practice

A summary endpoint caps answers at 300 tokens.

Watch for

A truncated answer can look complete; check the stop reason.

Related terms

Token · Cost per token · Stop sequence

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term