Code

cookbook/models/groq/image_agent.py
from agno.agent import Agent
from agno.media import Image
from agno.models.groq import Groq

agent = Agent(model=Groq(id="llama-3.2-90b-vision-preview"))

agent.print_response(
    "Tell me about this image",
    images=[
        Image(url="https://upload.wikimedia.org/wikipedia/commons/f/f2/LPU-v1-die.jpg"),
    ],
    stream=True,
)

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Set your API key

export GROQ_API_KEY=xxx
3

Install libraries

pip install -U groq agno
4

Run Agent