GR

groq-common-errors

Provides diagnostic procedures for Groq API errors, focusing on status codes and structured error responses.

Install

mkdir -p .claude/skills/groq-common-errors && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5419" && unzip -o skill.zip -d .claude/skills/groq-common-errors && rm skill.zip

Installs to .claude/skills/groq-common-errors

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Diagnose and fix Groq API errors with real error codes and solutions.
69 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Capture failing HTTP status and body
  • Confirm API key validity
  • Confirm model existence and deprecation status
  • Map HTTP status to a fix
  • Handle SDK-level typed exception classes
  • Diagnose Groq API errors

How it works

The skill analyzes Groq API error responses by examining HTTP status codes and structured error bodies. It provides steps to verify API keys, check model availability, and map specific error types to documented solutions.

Inputs & outputs

You give it
Groq API error responses, including HTTP status and error body
You get back
Diagnosis of error class, root cause, and concrete fix

When to use groq-common-errors

  • Validate API keys and models
  • Debug rate limit exceeded errors
  • Interpret structured error payloads
  • Verify service connection health

About this skill

Groq Common Errors

Overview

Comprehensive reference for Groq API error codes, their root causes, and proven fixes. Groq returns standard HTTP status codes with structured error bodies and rate-limit headers. This skill walks the diagnosis from raw error string to fix, then hands off to the full per-status reference for depth.

Every Groq error body follows one shape — read the code and type first:

{
  "error": {
    "message": "Rate limit reached for model `llama-3.3-70b-versatile`...",
    "type": "tokens",
    "code": "rate_limit_exceeded"
  }
}

Prerequisites

  • GROQ_API_KEY exported in the environment (keys start with gsk_).
  • curl and jq available for the diagnostic probes below.
  • For SDK-level handling: groq-sdk (TypeScript) or groq (Python) installed.

Instructions

  1. Capture the failing status and body. Read the raw error response — the HTTP status plus the code/type fields determine the whole diagnosis path.

  2. Confirm the key works before assuming anything deeper:

    set -euo pipefail
    # Verify API key is valid — expect a model count, not an auth error
    curl -s https://api.groq.com/openai/v1/models \
      -H "Authorization: Bearer $GROQ_API_KEY" | jq '.data | length'
    
  3. Confirm the model still exists. Many 400s are deprecated model IDs — list the live models and Grep your codebase for any stale ID:

    curl -s https://api.groq.com/openai/v1/models \
      -H "Authorization: Bearer $GROQ_API_KEY" | jq '.data[].id' | sort
    
  4. Map the status to a fix using the table below, then drill into references/error-reference.md for the exact error string, causes, and copy-paste fix.

  5. For SDK integrations, branch on the typed exception classes — see references/sdk-error-handling.md.

Output

A diagnosis that names the error class, the root cause, and the concrete fix — for example: "429 on TPM: token budget exhausted; add the single-retry handleRateLimit wrapper and honor retry-after," or "400: mixtral-8x7b-32768 is deprecated; switch to llama-3.3-70b-versatile." When run against real code, the output is the edited call site plus a verification curl that returns 200.

Error Handling

Map the HTTP status to its cause; full error strings, rate-limit headers, and fixes live in references/error-reference.md.

StatusMeaningFirst move
401Invalid / missing keyConfirm GROQ_API_KEY starts with gsk_; test with /models
429RPM / TPM / RPD limit hitRead retry-after; back off and single-retry
400Deprecated model or bad paramsList live models; replace stale IDs
413Request over context windowTrim prompt (Llama models cap at 128K tokens)
500 / 503Groq-side outage or overloadRetry with backoff; fall back model; check status page

When the failure is transient (429/500/503), retry with backoff and honor retry-after rather than hammering. When it is structural (401/400/413), fix the request — retrying will not help.

Examples

Minimal end-to-end probe that isolates auth vs. model vs. payload problems:

# A 200 here means key + model + payload are all valid; a non-200 status
# tells you which layer failed.
curl -s -o /dev/null -w "%{http_code}" \
  https://api.groq.com/openai/v1/chat/completions \
  -H "Authorization: Bearer $GROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"llama-3.1-8b-instant","messages":[{"role":"user","content":"ping"}],"max_tokens":5}'

Resources

When not to use it

  • When debugging non-Groq API errors
  • When the issue is not related to API communication
  • When Groq integration is not active

Prerequisites

GROQ_API_KEY exported in the environmentcurl and jq available for diagnostic probesFor SDK-level handling: groq-sdk (TypeScript) or groq (Python) installed

Limitations

  • Retrying will not help for structural errors like 401, 400, or 413
  • Llama models cap at 128K tokens for request over context window
  • Transient errors (429/500/503) require backoff and honoring retry-after

How it compares

This skill provides a systematic diagnostic path for Groq API errors, including specific commands and SDK handling, which is different from general error troubleshooting.

Compared to similar skills

groq-common-errors side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
groq-common-errors (this skill)125dReviewIntermediate
apollo-common-errors125dCautionIntermediate
mcp-builder1363moReviewAdvanced
telegram-bot-builder1066moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

apollo-common-errors

jeremylongshore

Diagnose and fix common Apollo.io API errors. Use when encountering Apollo API errors, debugging integration issues, or troubleshooting failed requests. Trigger with phrases like "apollo error", "apollo api error", "debug apollo", "apollo 401", "apollo 429", "apollo troubleshoot".

10

mcp-builder

anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

136215

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

stripe-integration

wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

48165

langchain-architecture

wshobson

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

899

copilot-sdk

github

Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.

763

Search skills

Search the agent skills registry