- We recommend using
llama-3.3-70b-versatile
for general use - We recommend
llama-3.1-8b-instant
for a faster result. - We recommend using
llama-3.2-90b-vision-preview
for image understanding.
Multimodal Support
With Groq we supportImage
as input
Authentication
Set yourGROQ_API_KEY
environment variable. Get your key from here.
Example
UseGroq
with your Agent
:
View more examples here.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "llama-3.3-70b-versatile" | The id of the Groq model to use |
name | str | "Groq" | The name of the model |
provider | str | "Groq" | The provider of the model |
api_key | Optional[str] | None | The API key for Groq (defaults to GROQ_API_KEY env var) |
base_url | str | "https://api.groq.com/openai/v1" | The base URL for the Groq API |
Groq
extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.