Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Installs the Groq SDK for TypeScript or Python, then configures API key authentication and verifies the connection.
83% 91%+9 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
Where in the GroqCloud console interface should a user navigate to generate a new API key?
Directs the user to console.groq.com/keys or Settings > API Keys
3 of 3 safety checks passed
The Groq SDK auto-reads GROQ_API_KEY from environment if no apiKey is passed to the constructor. Additional constructor options:
const groq = new Groq({
apiKey: process.env.GROQ_API_KEY, // Optional if env var set
baseURL: "https://api.groq.com/openai/v1", // Default
maxRetries: 2, // Default retry count
timeout: 60_000, // 60 second timeout (ms)
});
Because the base URL is OpenAI-compatible (api.groq.com/openai/v1/), you can
also point the official OpenAI SDK at Groq by overriding its baseURL and
passing your gsk_ key — useful when migrating an existing OpenAI codebase.
| Prefix | Type | Usage |
|---|---|---|
gsk_ | Standard API key | All API endpoints |
Groq uses a single key type. There are no separate read/write scopes -- all keys have full API access. Restrict access through organizational controls in the console.
Add these before you ever write a .env file, so a key can never be committed:
# Groq secrets
.env
.env.local
.env.*.local
Next to this one in the catalogue, plus more from the same author.