If a reply hits the max_tokens limit, what happens?

Start playing free

  1. It is cut off, maybe mid-sentence
  2. The model rewrites it to fit
  3. The API returns an error and no text

🔒 The answer is for AhaBulb members. Members see the answer, why it's right and the official sources for every card of Stuff Every AI Expert Should Know, plus timed practice exams.

The first 50 cards of every test are free to play.

Play the free cards See membership

Like this card?
Play the game

References

  1. Claude API Docs: Reducing latency platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game