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

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.