Heavy traffic jam on a busy city street, like API requests queuing up after a Groq 429 rate limit error
Photo by Wavie Hu on Unsplash · source · credits

Groq API 429 Error: How to Find the Limit You Hit and Fix It

Also available in Hindi: यह लेख हिंदी में पढ़ें

Your Groq-powered app works in testing, then real users arrive and calls start failing with 429 Too Many Requests. Blind retries can make it worse. First find out which limit you hit, because each one has a different fix.

Which limit did you hit?

Groq measures several limits at once, and you are blocked by whichever runs out first:

Limits are set per model and apply to your whole organization, not to each user of your app. For example, the rate-limits page lists openai/gpt-oss-120b at 30 RPM, 1K RPD, 8K TPM and 200K TPD. Your exact numbers are on the Limits page in your Groq account settings. Cached tokens do not count toward the limits.

Read the headers

Groq rate-limit headers and what each one measures
From GroqDocs: Rate Limits. Illustration, not a screenshot.

Every response carries x-ratelimit-* headers. Note the mix: the requests headers are per day (RPD), while the tokens headers are per minute (TPM). retry-after, in seconds, appears only on a 429.

Retry the right way

For per-minute limits, wait and retry with a little random jitter, so parallel workers do not all retry in the same second:

import os, time, random
from openai import OpenAI, RateLimitError

client = OpenAI(base_url="https://api.groq.com/openai/v1",
                api_key=os.environ["GROQ_API_KEY"])

def chat(messages, tries=4):
    for n in range(tries):
        try:
            return client.chat.completions.create(
                model="openai/gpt-oss-120b", messages=messages)
        except RateLimitError as e:
            wait = float(e.response.headers.get("retry-after", 2 ** n))
            time.sleep(wait + random.random())
    raise RuntimeError("Still rate limited")

If you hit a daily limit, retrying will not help until that window resets.

Fixes for daily limits

Decision flow for fixing a Groq 429 error
From GroqDocs (Rate Limits, Flex Processing, Errors). Illustration, not a screenshot.

Building a public app? Also limit each of your own users, as in our Upstash rate-limit guide. See how much an AI API costs, our OpenRouter guide for a backup provider, or the Groq tool page.

Sources

FAQ

Why do I still get 429 after waiting a minute?

You probably hit a daily limit (RPD or TPD). Check the reset headers.

Are Groq limits per user or per account?

Per organization, with separate limits for each model.

Does retry-after appear on every response?

No. It is only set on a 429. The x-ratelimit headers are on every response.

What is error 498?

Flex tier capacity was full. Retry later with backoff.

About the author

Suraj Kumar builds and edits AIUseFlow, a directory of AI tools for vibe coders, agent builders and creators. Guides like this one walk through a practical workflow with cited sources — not a news wire rewrite. How we rank tools.

Get the weekly stack

Rank movers and new AI tools for builders, once a week. Free, no spam, unsubscribe anytime.