How to Get a Groq API Key
How do I get a Groq API key?
Sign in to Groq's console, create a new API key, and copy it immediately — it is shown only once. No payment method is required to generate the key itself. Set it as GROQ_API_KEY in your environment; full steps below.
Verified 2026-08-09 — source
Steps
- Sign in at console.groq.com and open API Keys.
- Click "Create API Key", name it, and confirm.
- Copy the key immediately — Groq shows the full value exactly once.
- No payment method is required to start: Groq's free tier covers initial testing under its per-minute and per-day token caps.
- Set it as GROQ_API_KEY in your environment, never committed to source control.
Key facts
| Env var | GROQ_API_KEY |
| Payment required before first call | No |
| Scoped to project/org | No |
| Shown once | Yes |
FAQ
Do I need a credit card to get a Groq API key?
No — you can generate the key without a payment method, though usage limits stay low until you add one.
Can I see my Groq API key again after closing the page?
No — Groq shows the full key value exactly once. If you lose it, revoke it and create a new one.
Is this the same as an All AI Ask API key?
No. This page is about creating an API key with Groq directly, for calling their API yourself. For an All AI Ask key — one key that routes to Groq and every other provider we support — see /api-keys.
