Copy
Ask AI
"""
Groq Image Agent
================
Cookbook example for `groq/image_agent.py`.
"""
from agno.agent import Agent
from agno.media import Image
from agno.models.groq import Groq
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(model=Groq(id="meta-llama/llama-4-scout-17b-16e-instruct"))
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,
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
pass
Run the Example
Copy
Ask AI
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/90_models/groq
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
python image_agent.py