# Send Groq API Inference to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "groq-api",
    "name": "Groq API Inference",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/groq-api",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/groq-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/groq-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=groq-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "api-patterns.md",
      "memory-template.md",
      "model-selection.md",
      "setup.md",
      "troubleshooting.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "groq-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T00:12:30.279Z",
      "expiresAt": "2026-05-11T00:12:30.279Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=groq-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=groq-api",
        "contentDisposition": "attachment; filename=\"groq-api-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "groq-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/groq-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/groq-api",
    "downloadUrl": "https://openagent3.xyz/downloads/groq-api",
    "agentUrl": "https://openagent3.xyz/skills/groq-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/groq-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/groq-api/agent.md"
  }
}
```
## Documentation

### Setup

On first use, read setup.md for activation preferences, credential verification, and default workflow setup.

### When to Use

User needs to build, integrate, or troubleshoot Groq API inference for chat, tool calling, or speech transcription. Agent handles request shaping, model routing, failure recovery, and safe production patterns.

### Architecture

Memory lives in ~/groq-api/. See memory-template.md for structure.

~/groq-api/
├── memory.md           # Status, activation preference, and defaults
├── requests/           # Reusable payload snippets
├── logs/               # Optional debug snapshots
└── experiments/        # Prompt/model A-B notes

### Quick Reference

Use these files as decision aids, not as static docs: pick the smallest file that resolves the current blocker.

TopicFileSetup processsetup.mdMemory templatememory-template.mdRequest patternsapi-patterns.mdModel routingmodel-selection.mdFailures and recoverytroubleshooting.md

### 1. Verify Auth and Endpoint Before Any Work

Check GROQ_API_KEY first and use Authorization: Bearer $GROQ_API_KEY for every request. Use https://api.groq.com/openai/v1 as the base URL and confirm access with /models.

curl -s https://api.groq.com/openai/v1/models \\
  -H "Authorization: Bearer $GROQ_API_KEY" | jq '.data[0].id'

### 2. Start with a Minimal Deterministic Payload

Begin with small prompts and explicit format instructions. Add complexity only after the baseline call is stable.

### 3. Route by Task, Not by Habit

Use separate model choices for:

Fast interactive chat
High-accuracy reasoning
Speech transcription

Choose from live /models output instead of hardcoding assumptions.

### 4. Design for Retry and Degradation

For 429 and 5xx, retry with exponential backoff and capped attempts. If a model is overloaded, fail over to a compatible backup model and log the swap.

### 5. Validate Output Before Downstream Actions

If output feeds code execution or data writes, enforce JSON schema or strict parsing before acting. Reject malformed output early.

### 6. Treat Speech as a Separate Reliability Path

Speech uploads have different failure modes than chat. Validate input format, check file size, and surface transcription confidence when available.

### 7. Keep Secrets and User Data Scoped

Never store API keys in files. Keep request logs sanitized and avoid persisting full sensitive prompts unless the user explicitly asks.

### Common Traps

Using stale model IDs copied from old examples -> call /models and select available IDs at runtime.
Sending giant prompts without truncation -> latency spikes and timeout risk.
Ignoring 429 backoff guidance -> repeated failures under load.
Mixing chat and transcription assumptions -> wrong endpoint and payload format.
Trusting free-form text for automation -> parse and validate before executing.

### External Endpoints

All network traffic should be limited to these Groq endpoints for explicit inference tasks requested by the user.

EndpointData SentPurposehttps://api.groq.com/openai/v1/modelsNone (GET)Discover available modelshttps://api.groq.com/openai/v1/chat/completionsPrompt messages and optionsChat completionshttps://api.groq.com/openai/v1/audio/transcriptionsAudio file and transcription paramsSpeech-to-text

No other data is sent externally.

### Security & Privacy

Data that leaves your machine:

Prompt content sent to Groq inference endpoints
Audio content sent to Groq transcription endpoint when requested

Data that stays local:

Workflow preferences in ~/groq-api/memory.md
Optional local debug notes in ~/groq-api/logs/

This skill does NOT:

Store GROQ_API_KEY in project files
Access files outside ~/groq-api/ for persistence
Call undeclared third-party endpoints
Modify itself or other skills

### Trust

By using this skill, prompts and optional audio content are sent to Groq.
Only install if you trust Groq with that data.

### Related Skills

Install with clawhub install <slug> if user confirms:

api — reusable REST patterns, auth, and error handling
models — model comparison and selection heuristics
ai — current AI landscape checks before implementation decisions
fine-tuning — adaptation workflows when prompting is not enough
langchain — orchestration patterns for multi-step LLM pipelines

### Feedback

If useful: clawhub star groq-api
Stay updated: clawhub sync
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T00:12:30.279Z
- Expires at: 2026-05-11T00:12:30.279Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/groq-api)
- [Send to Agent page](https://openagent3.xyz/skills/groq-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/groq-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/groq-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/groq-api)