Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates a minimal Groq chat completion example in TypeScript to verify the SDK setup and API key.
Use this skill ↓83% 91%+9 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
Before attempting to run a hello-world chat completion script with Groq, what setup and authentication skill should have already been executed according to the workflow documentation?
Identifies groq-install-auth as the prerequisite skill
3 of 3 safety checks passed
Build a minimal chat completion with Groq's LPU inference API. Groq uses an OpenAI-compatible endpoint, so the API shape is familiar -- but responses arrive 10-50x faster than GPU-based providers. This skill gets you from an installed SDK to a working, verified request; deeper variants (streaming, Python, model selection) live in references/.
groq-sdk installed (npm install groq-sdk)GROQ_API_KEY environment variable setgroq-install-auth setupUse Write to create the example file, then run it to confirm your key and SDK work. Start with the single basic request below; reach for the reference variants only once this succeeds.
import Groq from "groq-sdk";
const groq = new Groq();
async function main() {
const completion = await groq.chat.completions.create({
model: "llama-3.3-70b-versatile",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "What is Groq's LPU and why is it fast?" },
],
});
console.log(completion.choices[0].message.content);
console.log(`Tokens: ${completion.usage?.total_tokens}`);
}
main().catch(console.error);
Next to this one in the catalogue, plus more from the same author.