See our voice assistant playground using Groq STT, LLM, and TTS

Overview
This plugin allows you to use Groq as an LLM provider for your voice agents. Groq compatibility for Node.js is provided by the OpenAI plugin using the Groq Chat Completions API.
Some Groq models are also available in LiveKit Inference, with billing and integration handled automatically. See the docs for more information.
Quick reference
This section includes a basic usage example and some reference material. For links to more detailed documentation, see Additional resources.
Installation
Install the plugin:
uv add "livekit-agents[groq]~=1.4"
pnpm add @livekit/agents-plugin-openai@1.x
Authentication
The Groq plugin requires a Groq API key.
Set GROQ_API_KEY in your .env file.
Usage
Use a Groq LLM in your AgentSession or as a standalone LLM service. For example, you can use this LLM in the Voice AI quickstart.
from livekit.plugins import groqsession = AgentSession(llm=groq.LLM(model="llama3-8b-8192"),# ... tts, stt, vad, turn_detection, etc.)
import * as openai from '@livekit/agents-plugin-openai';const session = new voice.AgentSession({llm: openai.LLM.withGroq({model: "llama3-8b-8192"}),// ... tts, stt, vad, turn_detection, etc.});
Parameters
This section describes some of the available parameters. For a complete reference of all available parameters, see the plugin reference.
stringOptionalDefault: llama-3.3-70b-versatileName of the LLM model to use. For all options, see the Groq model list.
floatOptionalDefault: 1.0Controls the randomness of the model's output. Higher values, for example 0.8, make the output more random, while lower values, for example 0.2, make it more focused and deterministic.
boolOptionalControls whether the model can make multiple tool calls in parallel. When enabled, the model can make multiple tool calls simultaneously, which can improve performance for complex tasks.
ToolChoice | Literal['auto', 'required', 'none']OptionalDefault: autoControls how the model uses tools. Set to 'auto' to let the model decide, 'required' to force tool usage, or 'none' to disable tool usage.
Additional resources
The following resources provide more information about using Groq with LiveKit Agents.