Skip to main content
Factory function to create a Groq model instance. Groq provides ultra-fast inference for open-source models through an OpenAI-compatible API.

Signature

Parameters

str
required
The Groq model identifier (e.g., “llama-3.3-70b-versatile”, “mixtral-8x7b-32768”).
str
Groq API key. Falls back to GROQ_API_KEY environment variable.

Returns

A LanguageModel instance configured for Groq.

Environment

Requires GROQ_API_KEY environment variable.

Available Models

Example

Provider Options