Generate an API Key
Generate a new API key from the console. Each key starts with the gsk_ prefix. A free Groq account is enough and needs no credit card.
Open the API keys page
Sign in to the Groq console and open API Keys.
- Click Create API Key.
Configure and Copy the Key
1. Give the key a descriptive name (e.g. “StackOne Integration”).
2. Click “Submit”.
- The full key value (
gsk_...) is shown ONCE — copy it immediately. - Store it in a secure password manager.
- If lost, revoke the key and mint a new one.
API Key Best Practices
Follow these security practices to protect your Groq API key.
Security Recommendations
Implement these measures to protect your API key.
- Never expose the key in client-side code or public repositories.
- Use environment variables in deployment (e.g.
GROQ_API_KEY). - Create separate keys for separate environments (dev, staging, prod).
- Rotate keys regularly and revoke compromised keys immediately.
Rate limits and usage
Be aware of Groq’s per-organization rate limits and monitor your usage.
- Free tier limits are listed on the rate limits page.
- Rate limits are enforced at the organization level — all keys under one org share the same budget.
- Both Requests Per Minute (RPM) and Tokens Per Minute (TPM) ceilings trigger 429.
- Respect the
retry-afterheader on 429 responses. - Upgrade to the Developer tier (card required, no minimum spend) for ~10x higher limits.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Groq API Key
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account on your Accounts page.