How to Get a Free Groq API Key
Get a free Groq API key with no card: create it in GroqCloud, call GPT-OSS or Qwen models, and work within the Free plan rate limits.
- Time
- 5 minutes
- You need
- GroqCloud account (console.groq.com)
- Last checked
Groq runs open-weight models on its own inference hardware and serves them through an API that is mostly compatible with OpenAI's client libraries. Every GroqCloud organization starts on the Free plan: you create a key in the console and call the hosted models within per-model rate limits. A payment method is only needed if you upgrade to the paid Developer plan.
What you get
- Rate-limited access to the models in Groq's Free plan table. As of October 2026 that covers the text models
openai/gpt-oss-120b,openai/gpt-oss-20bandqwen/qwen3.8-27b, the speech-to-text modelswhisper-large-v3andwhisper-large-v3-turbo, the Orpheus text-to-speech models, and the moderation modelsopenai/gpt-oss-safeguard-20band Llama Prompt Guard 2. - Free-plan limits as of October 2026: 30 requests per minute (RPM), 1,000 requests per day (RPD), 8,000 tokens per minute (TPM) and 200,000 tokens per day (TPD) on the GPT-OSS 120B, GPT-OSS 20B and Qwen 3.8 27B models. Whisper allows 20 RPM, 2,000 RPD and 7,200 audio seconds per hour (28,800 per day).
- An OpenAI-compatible endpoint at
https://api.groq.com/openai/v1, plus Groq's own Python and TypeScript SDKs. - Cached prompt tokens don't count toward your rate limits.
- No payment method needed unless you upgrade to the paid Developer plan.
Lineups and limits change, so check the live table on Groq's rate limits page. Full details are on the Groq free tier page.
Steps
- Go to console.groq.com and sign up or log in. Your account starts on the Free plan.
- Open the API Keys page (console.groq.com/keys) and create a key. Copy it somewhere safe.
- Save the key as an environment variable, for example
export GROQ_API_KEY=your_keyin~/.zshrcor~/.bashrc. Groq's SDKs readGROQ_API_KEY. - Install an SDK:
pip install groqfor Python ornpm install --save groq-sdkfor JavaScript. If your code already uses the OpenAI SDK, keep it and set the base URL tohttps://api.groq.com/openai/v1with your Groq key. - Send a test chat completion to a model from the Free plan table, such as
openai/gpt-oss-20boropenai/gpt-oss-120b. Some examples in Groq's docs still usellama-3.3-70b-versatile; Groq's deprecation page lists that model andllama-3.1-8b-instantas shut down for free and Developer usage since August 16, 2026. - Check your organization's exact limits under Settings > Limits (console.groq.com/settings/limits) before you build anything that depends on volume.
Never commit the key to a repository or ship it in client-side code.
Limits and the catch
- Low per-minute token caps. 8,000 TPM on the main text models is enough for testing and light apps, but long prompts or parallel requests hit it quickly. Any limit can trigger first: 30 small requests in a minute block you even if you are far under the token cap.
- Limits are per organization, not per user or per key. Extra keys in the same organization share the same quota.
- Not every model has the same limits. As of October 2026
openai/gpt-oss-safeguard-20bis capped at 3 RPM and 2,000 TPM, and the Orpheus TTS models at 10 RPM and 100 RPD. Groq notes there may be exceptions; your Limits page is authoritative. - Preview models can disappear. Groq labels
qwen/qwen3.8-27band several other models as preview, meant for evaluation and liable to be discontinued at short notice. Production models get a deprecation notice and a replacement, but they are retired too. - Data handling. Groq says it does not retain inference inputs and outputs by default, but may log them for up to 30 days to troubleshoot reliability problems or investigate abuse. Any customer can turn on Zero Data Retention under Settings > Data Controls.
- Upgrading costs money. The Developer plan raises limits and adds Batch and Flex processing, billed pay-as-you-go. It requires a credit card, U.S. bank account or SEPA debit account.
Other free LLM APIs
If Groq's limits or model list don't fit, two other providers offer a free way to call models:
- Mistral: Mistral Studio starts in Free mode with API access enabled and no card required. Usage and rate limits apply per model and are shown on the Limits page of the Mistral Admin Panel. The Free plan has no monthly API credits. See Mistral AI free plan.
- Cerebras: adding a payment method gets a one-time $5 credit that expires 30 days after activation. You are not charged or moved to paid usage automatically, and access pauses when the credit runs out. Free-trial limits are 5 RPM, 30,000 uncached TPM and 1 million tokens per day per model. See Cerebras Inference free trial.
For Google's models, see how to get a free Gemini API key. For a side-by-side view, see the free LLM API comparison.
If it doesn't work
- 429 Too Many Requests: you hit an RPM, RPD, TPM or TPD limit. The
retry-afterheader says how many seconds to wait; add retries with backoff. Thex-ratelimit-remaining-requestsheader tracks your daily requests andx-ratelimit-remaining-tokensyour tokens per minute. - 401 Unauthorized: the key is missing or invalid. Check that
GROQ_API_KEYis set in the shell running your code, or create a new key. - 403 Forbidden on a model: an admin may have restricted models for your organization or project under model permissions.
- Requests to an old model ID fail: the model has been retired. Check Groq's deprecations page for the recommended replacement.
- 400 from OpenAI-style code: Groq rejects
logprobs,logit_bias,top_logprobsandmessages[].name, andnmust be 1. Remove those fields.
Offers in this guide
- Groq Free Tier · Free tier · no card
Free rate-limited Groq API access to hosted open models, no card
- Mistral AI Free Plan · Free tier · no card
Free Vibe agent and rate-limited Studio API access; no monthly API credits
- Cerebras Inference Free Trial · $5 · card
Get started with $5 in free credits to test ultra-fast Cerebras inference
Understand it
A few minutes of play-along, no sign-up.
- Why does the free tier say 429? · Rate limits (RPM, TPM, RPD) · 5 min
- Why does the answer appear word by word? · Streaming, time to first token and tokens per second · 5 min
Frequently asked questions
- Is the Groq API free?
- Yes, on the Free plan every organization starts on. You can call the models in its rate limit table, such as GPT-OSS 120B and Qwen 3.8 27B as of October 2026, without a card. Usage is capped by per-model rate limits.
- What are the Groq free-tier rate limits?
- As of October 2026, the main text models allow 30 requests per minute, 1,000 per day, 8,000 tokens per minute and 200,000 tokens per day. Limits vary by model; your organization's exact limits are on the Limits page in GroqCloud settings.
- Can I use the OpenAI SDK with Groq?
- Yes. Set the base URL to https://api.groq.com/openai/v1 and pass your Groq key. A few fields, such as logprobs and logit_bias, are not supported and return a 400 error.
- Does Groq store my prompts?
- Not by default. Groq may log inputs and outputs for up to 30 days to troubleshoot reliability issues or investigate abuse, and you can turn on Zero Data Retention in Data Controls settings.
Sources
Steps and limits were checked against these official pages.
- console.groq.com/docs/quickstart
- console.groq.com/docs/rate-limits
- console.groq.com/docs/models
- console.groq.com/docs/deprecations
- console.groq.com/docs/openai
- console.groq.com/docs/libraries
- console.groq.com/docs/your-data
- console.groq.com/docs/billing-faqs
- console.groq.com/docs/errors
- console.groq.com/docs/model-permissions
- docs.mistral.ai/getting-started/quickstarts/studio/activate-and-generate-api-key
- mistral.ai/pricing
- cerebras.ai/pricing
- inference-docs.cerebras.ai/support/rate-limits
More guides
- How to Get a Free Gemini API Key
- How Students Can Get ChatGPT Plus Free
- How Students Can Get Google Gemini (AI Pro) Free
- How to Use an AI Coding Agent for Free
- How to Get a Free GPU for AI
- How to Apply for AI Startup Credits
- How to Get Free Claude API Credits
- Free AI Image Generation: In the Browser and by API
- Free OpenAI API Access in 2026: What's Actually Free
- Free Embeddings and Reranking APIs in 2026
- Free Text-to-Speech APIs in 2026
- Free Speech-to-Text APIs in 2026
- Free AI Video Generators in 2026
- Free Image Generation APIs in 2026
- Free Web Search APIs for LLM Agents in 2026
- Free Vector Databases for RAG in 2026
- Free DeepSeek API in 2026: What Is Actually Free
- OpenRouter Free Models: Limits, Credits and API Setup
- Free Hugging Face Inference: Credits, ZeroGPU and Spaces
- Free AI APIs With No Credit Card in 2026
- Track Free-Tier Changes Automatically
- How to Run AI Locally for Free
- Free Vision APIs: Read Images and Screenshots for Free
- Free Reasoning Model APIs: Thinking Models for Free
- Free AI courses