@standardagents/groq
Groq provider package for Standard Agents using the official groq-sdk
Overview
The @standardagents/groq package provides a Standard Agents provider for Groq's chat completions API. It uses the official groq-sdk, supports streaming, reasoning-capable models, tool calling, and model discovery through Groq's models API.
Key Features
- Official
groq-sdkintegration - Tool calling and structured outputs
- Reasoning support for
gpt-oss-*andqwen/qwen3-32b - Vision input support for Groq multimodal models
- Built-in pricing for documented Groq models in request logs
Installation
pnpm add @standardagents/groqQuick Start
import { defineModel } from '@standardagents/spec';
import { groq } from '@standardagents/groq';
export default defineModel({
name: 'groq-fast',
provider: groq,
model: 'llama-3.1-8b-instant',
providerOptions: {
reasoning_format: 'parsed',
},
});Common Models
llama-3.1-8b-instantllama-3.3-70b-versatilemeta-llama/llama-4-scout-17b-16e-instructmoonshotai/kimi-k2-instructopenai/gpt-oss-120bopenai/gpt-oss-20bqwen/qwen3-32b
Provider Options
Use reasoning_format, reasoning_effort, citation_options, service_tier, disable_tool_validation, search_settings, and documents to access Groq-specific behavior.
Environment Setup
GROQ_API_KEY=...Streaming usage reads the final Groq metadata frame. Token counts include cached input and reasoning output when Groq reports them.