# Max tokens

Canonical page: https://www.theglitch.ai/ai-glossary/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.](https://www.theglitch.ai/images/cards/glossary/max-tokens.png?v=c4481e461279b5e3)

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](https://www.theglitch.ai/ai-glossary/token) · [Cost per token](https://www.theglitch.ai/ai-glossary/cost-per-token) · [Stop sequence](https://www.theglitch.ai/ai-glossary/stop-sequence)

## Sources

- [Anthropic docs: Messages API](https://docs.anthropic.com/en/api/messages)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
