Skip to content
Back to skills

Groq

ASecurity

Groq delivers real-time AI inference at hundreds of tokens per second using Language Processing Units (LPUs). Ideal for conversational agents, real-time voice loops, and streaming applications.

  • 13 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 21, 2026
ai-agentstypescriptbashsqlnodeapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 21, 2026

npx -y skills add ashish7802/awesome-api-skills --skill groq --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Groq?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Groq
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-groq/badge)](https://www.skillsdirectory.com/skills/ashish7802-groq)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Groq API Skill

## Overview
Groq delivers real-time AI inference at hundreds of tokens per second using Language Processing Units (LPUs). Ideal for conversational agents, real-time voice loops, and streaming applications.

## Installation
```bash
npm install groq-sdk
pip install groq
```

## Authentication & Setup
```typescript
import Groq from 'groq-sdk';

const groq = new Groq({
  apiKey: process.env.GROQ_API_KEY,
});
```

## Core API Operations

### 1. High-Speed Chat Completion Streaming
```typescript
const stream = await groq.chat.completions.create({
  model: 'llama-3.3-70b-versatile',
  messages: [
    { role: 'system', content: 'You are a responsive assistant.' },
    { role: 'user', content: 'Generate a short poem about distributed systems.' },
  ],
  stream: true,
  temperature: 0.5,
  max_tokens: 1024,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || '');
}
```

### 2. JSON Mode Structured Generation
```typescript
const response = await groq.chat.completions.create({
  model: 'llama-3.3-70b-versatile',
  messages: [
    { role: 'system', content: 'You must respond with valid JSON.' },
    { role: 'user', content: 'Extract skills: "Node.js, PostgreSQL, Redis"' },
  ],
  response_format: { type: 'json_object' },
});

const data = JSON.parse(response.choices[0].message.content || '{}');
```

### 3. Audio Transcription (Whisper LPU)
```typescript
import fs from 'fs';

const transcription = await groq.audio.transcriptions.create({
  file: fs.createReadStream('audio.mp3'),
  model: 'whisper-large-v3-turbo',
  response_format: 'verbose_json',
});

console.log(transcription.text);
```

## AI Pitfalls & Anti-Hallucination Guidelines
- **Model Deprecations**: Groq retires preview checkpoints frequently. Use standard aliases such as `llama-3.3-70b-versatile` or `mixtral-8x7b-32768`.
- **Rate Limits on Free Tier**: The free tier has strict RPM/TPM limits. Implement retry queues with exponential backoff on 429 status codes.

## Production Verification Checklist
- [ ] Streaming connection handled with client abort signals
- [ ] Audio files stay under the 25MB request limit
- [ ] Fallback models configured in case of provider rate-limiting

---
> **Last Verified:** 2026-07-03

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.