Groq from Scratch: a Key in a Minute, Hundreds of Tokens per Second

Groq is the platform that reset expectations for speed: LPU inference delivers hundreds of tokens per second where ordinary clouds manage dozens. A free tier with no card required and 1000 requests per day on chat models — this is the starting layer of any free pipeline. A step-by-step start, the model line-up and the nature of its limits.

A Key in a Minute

console.groq.com → sign up by email (no card needed) → the API Keys section → Create API Key → pick the key’s name and lifetime → copy it. That’s it. A check with a single request:

curl https://api.groq.com/openai/v1/chat/completions \
  -H "Authorization: Bearer gsk_ВАШ_КЛЮЧ" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-oss-120b",
       "messages": [{"role": "user", "content": "Ответь одним словом: работает?"}]}'

The Python SDK is the standard OpenAI client with base_url swapped to https://api.groq.com/openai/v1. Any OpenAI-compatible tool picks up Groq with three lines of configuration.

The Model Line-up and Rotation

Groq hosts open models on its LPUs: GPT-OSS 120B/20B, Kimi K2, Qwen variants, the Llama line and its own composite grok/compound routes. Rotation is active: models are retired and added regularly (example: the Qwen variant changed on September 14, the compound routes on the 21st). The rule of thumb: before wiring a model into a pipeline, check the current line-up in the playground, and after wiring it in — keep a fallback route.

The speed profile is the main argument: hundreds of tokens per second on generation make Groq the only sensible choice for voice bots and interactive chats in the free segment. Time to the first token is the lowest among free providers.

Limits in Numbers

LimitValue (free chat models)Comment
RPM30Per model
RPD1000Enough for a single-user bot
TPM8000Long prompts — cut them down
TPD200,000Daily token volume

Organization limits are shown in the account limits section — they may differ from the table. Platforms of the Groq type behave in a predictable way: 429s with Retry-After headers; the handling patterns are described in the piece on limit errors.

Groq’s Role in the Pipeline

The first layer of “fast routine”: classification, short answers, voice interfaces, the first steps of agent chains. Combined with a code layer (GLM Flash) and an analytical one (Gemini/Nemotron), Groq covers the day’s volume: 1000 requests is hundreds of conversations. The distribution scheme is in the piece on the limit pie; the entry points of the other layers are in the provider directory.

Frequently Asked Questions

Why is Groq fast? Specialized LPU chips instead of GPUs: inference on open models is their direct specialization. Compilation targeted at the hardware gives constant speed.

Are there large models there? Yes, including GPT-OSS-120B and Kimi K2 — the speed is decent for their size, and the quality matches their open nature.

Is the data private? Standard cloud policy — prompts pass through Groq’s infrastructure; for sensitive material, local models.

What happens when the RPD is exhausted? A 429 with Retry-After until the next day (UTC). Discipline: heavy work goes to the UTC morning, routine gets spread out.

How does Groq differ from aggregators like OpenRouter? Groq hosts the models itself on its own LPUs, so generation speed and time to the first token are noticeably better, while the catalog is narrower. An aggregator offers breadth of choice and rotation across many providers; Groq offers predictable speed and an honest 1000 requests per day on chat models.

Which model should you start with? With openai/gpt-oss-120b from the example above — a universal open model with decent speed. For short classifications take the smaller versions of the line, for long reasoning — Kimi K2; check the current line-up in the playground before wiring anything into code.

What should you do if the 8000 TPM limit is exceeded? You will get a 429 with a Retry-After header: trim the prompts, move the conversation history into separate storage and send only the delta. The daily allowance of 200,000 tokens burns faster with long system prompts — count them into the budget of every request.

Does code written for the OpenAI SDK need to be rewritten? No: you change base_url to the Groq address and plug in your key — the rest of the code stays as it is. The same principle works for popular frameworks and wrappers: any OpenAI-compatible tool connects with three lines of configuration.

A Practical Case: Sorting Incoming Requests

A typical routine where Groq shows what it can do from the first minute: sorting incoming email into categories. The task is short, the prompt fits within the TPM limit, and the generation speed makes batch processing invisible to the user. This is exactly the “first layer of routine” profile discussed above. The skeleton of a Python script:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.groq.com/openai/v1",
    api_key="gsk_ВАШ_КЛЮЧ",
)

def classify(text):
    resp = client.chat.completions.create(
        model="openai/gpt-oss-120b",
        messages=[
            {"role": "system", "content": "Ответь одним словом: bug, sales или spam."},
            {"role": "user", "content": text[:2000]},
        ],
    )
    return resp.choices[0].message.content.strip()

Three settings worth keeping in mind. First: trimming the input to a couple of thousand characters protects you from going over TPM — process long attachments in a separate step or summarize them before classification. Second: for labeling, set a low temperature — the answer must be predictable, not creative, otherwise the categories will drift from one email to the next.

Third: on a 429 with Retry-After, repeat the request after the indicated pause instead of hammering away — that way you stay within 30 RPM and preserve the rest of the daily quota for other tasks. Split a large batch into parts and fit within 30 requests per minute. Such a pipeline calmly gets through the day without paid routes, and if the model line-up changes, you swap the model name in one line and move on. For a voice bot the same template shortens the answer to a single sentence: time to the first token is minimal, and the dialog stays alive.

The case transfers easily to neighboring routines: summarizing correspondence in a ticket tracker, extracting fields from a form, routing the first step of an agent chain. Everywhere keep the same frame — a narrow system prompt, trimmed input, low temperature and a retry with Retry-After. When the daily quota is used up, the same script moves to a fallback route by swapping base_url, and the next UTC morning continues the work without losses: the token allowance has refreshed and the 1000 requests are back on the counter.

Groq is the “speedometer” of a free pipeline: a minute for the key, hundreds of tokens per second, predictable limits. Put it as the first layer of routine — and interactivity will stop feeling like waiting. Figures are as of autumn 2026.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: