Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Why Your AI Assistant Abruptly Stops Writing: The Max Tokens Limit Explained

sourcecode 1 min read

Ever asked an AI to write a long piece only to have it stop mid-sentence? It's not because the AI got tired. The culprit is a setting called max tokens—a hard limit on how long a response can be.

When the AI generates text, it counts tokens (roughly pieces of words or characters). Once the token count hits the max, the response stops immediately—whether it's in the middle of a word, sentence, or thought.

For example, ask ChatGPT to write a long story. You'll get great paragraphs, then suddenly the answer cuts off. The model didn't run out of ideas; it hit the pre-set max tokens limit.

Here's the twist: max tokens isn't determined by the AI itself. It's set by the developer of the app you're using. The same underlying model may give long answers in one app and short ones in another.

Your AI isn't lazy—it's on a leash, and max tokens is the length of that leash.

React