groq-inference

groq-inference is a skill for Claude Code, Codex from synthetic-sciences/openscience. It costs 77 tokens per session (3,724 once invoked), scanned A, original, Apache-2.0.

A hosted service for running open-weight language models and related AI models through an OpenAI-compatible API. It supports chat, vision, audio transcription and speech, tool calling, JSON output, and streaming, but not model training.

In plain words
What is it for?
Use it for low-latency chat, AI agents, vision features, speech transcription, text-to-speech, and prototypes using open models.
Why use it?
It gives applications access to open models without managing GPUs, while keeping the same general API style used by many OpenAI-based clients.

Skill for Claude CodeCodex

About the project

synthetic-sciences/openscience is an AI workbench that carries out scientific research by reading papers, forming hypotheses, writing and running code, conducting experiments, analyzing results, and preparing reports. Researchers use it for work in machine learning, biology, physics, and chemistry with remote or local models. Catalogue add-ons extend its scientific workflows through skills and instructions.

synthetic-sciences/openscience · 3,473 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/synthetic-sciences/openscience/groq
Any agent
npx skills add synthetic-sciences/openscience --skill groq
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for groq-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthetic-sciences/openscience/groq.svg)](https://agentmods.dev/skills/synthetic-sciences/openscience/groq)
Your own site
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/groq"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/groq.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00077 $0.03724
Opus 5 $0.00039 $0.01862
Sonnet 5 $0.00015 $0.00745
Haiku 4.5 $0.00008 $0.00372

Measured yesterday against content hash 4d2937551123, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

groq-inference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/cli/skills/ml-inference/groq/SKILL.md · 361 lines

How it starts

The opening of the file, as written. The whole thing — 361 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Groq — Ultra-Fast LLM Inference

Groq runs open-weight LLMs on custom LPU (Language Processing Unit) hardware, delivering the lowest inference latency in the industry — up to 1000+ tokens/sec. OpenAI-compatible API, free tier, pay-per-token pricing. Inference only, no training.

When to Use Groq

Use when:

  • You need the fastest possible inference latency (real-time chat, agents, interactive apps)
  • You want open-weight models (Llama, Qwen, DeepSeek) without managing GPUs
  • You need an OpenAI-compatible drop-in replacement with open models
  • You want free-tier access for prototyping
  • You need fast Whisper transcription or vision with Llama 4

Don't use when:

  • You need to fine-tune or train models (inference-only)
  • You need proprietary models (GPT-4o, Claude, Gemini)
  • You need embeddings or image generation APIs (not offered)
Feature Groq Together AI Fireworks Replicate
Hardware Custom LPU NVIDIA GPUs NVIDIA GPUs NVIDIA GPUs
Speed (Llama 70B) ~280 tok/s ~100 tok/s ~100 tok/s ~50 tok/s
Free tier Yes Yes Yes No
Training No Yes Yes Yes

Credential Setup

Credentials are auto-injected by openscience when connected via the dashboard.

# Verify credentials
[ -n "$GROQ_API_KEY" ] && echo "GROQ_API_KEY set" || echo "NOT SET"

If not set: add your Groq key in Customize → Models or export GROQ_API_KEY locally.

Quick Start

pip install groq
export GROQ_API_KEY="gsk_..."   # https://console.groq.com/keys
from groq import Groq

client = Groq()
response = client.chat.completions.create(
    model="llama-3.3-70b-versatile",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Explain quantum computing in one paragraph."}
    ],
    temperature=0.7,
    max_completion_tokens=512,
)
print(response.choices[0].message.content)

Chat Completions

Read the full file on GitHub · 361 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 361 lines · 77 tokens per session scan A 4d2937551123

Subscribe to this mod's changes

groq-inference is a skill published in the GitHub repository synthetic-sciences/openscience (3,473 stars, last pushed today), licensed Apache-2.0. It adds 77 tokens to every session and 3,724 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

Inference

Guides model-serving and runtime-inference decisions across local, remote, and packaged deployment paths.

agentic-in/elephant-agent · 21 tokens

bridgenode

BridgeNode — x402 pay-per-request AI inference. OpenAI-compatible API + MCP server, Solana USDC, gas-free micropayments. No API keys. Free models included. Live prices: bridgenode.cc/v1/models. Use when an agent lacks a provider API key or wants privacy-preserving per-request AI inference pricing.

bridgenode-ai/bridgenode-skill · 0 tokens

sglang-diffusion-performance

Use when choosing the fastest SGLang Diffusion flags for a model, GPU, and VRAM budget.

sgl-project/sglang · 29 tokens

compute-mamba-ratio

Compute the optimal --mamba-full-memory-ratio (or --max-mamba-cache-size pin) for a hybrid attention + linear-attention (Mamba / GDN / KDA) model's two serving memory pools, from the workload and serving config. Use when a user asks what ratio to set, why concurrency is clamped, or how to size the state vs KV pools…

sgl-project/sglang · 88 tokens

tool-prompt-optimization

Optimize the description prompts an AI agent reads to learn its built-in tools (the .md files under prompts/tools/). Two halves: (1) measure how much of a prompt is already inferable from the tool's JSON parameter schema + name, to prune redundancy with evidence; (2) house authoring rules for what belongs in a tool…

can1357/oh-my-pi · 0 tokens

agentic-supply-chain-detection

Detect agentic supply-chain risks: compromised dependencies, malicious plugins/tools/models, and untrusted update sources.

Tencent/AI-Infra-Guard · 0 tokens