Groq Rate Limit Counts Declared Max Tokens, Not Actual Output, Tripping Developers
Groq's free tier enforces an 8,000 tokens-per-minute (TPM) limit based on the max_tokens value declared in a request, not the tokens the model actually generates, meaning a 20-token prompt with max_tokens set to 8,192 will be rejected even though nothing was produced. A developer testing 14 Groq-hosted models found that four of them returned a 413 error solely due to the declared ceiling exceeding the TPM cap. The rate limit operates as a rolling window shared across all models, so a model that passes one request may fail an identical one minutes later as the shared budget depletes. This behavior poses a particular risk for AI agents, where tool schemas already consume significant prompt tokens and most frameworks default to high max_tokens values. Developers are advised to set max_tokens to only what is realistically needed — around 1,500 — to avoid requests being blocked before the model processes them.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in