Skip to main content
For free and developer tiers, Groq will shut down meta-llama/llama-4-scout-17b-16e-instruct on July 17, 2026. Replace it with the vision-capable qwen/qwen3.6-27b before that date. See Groq deprecations.
image_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your Groq API key

4

Replace Llama 4 Scout

Replace meta-llama/llama-4-scout-17b-16e-instruct with qwen/qwen3.6-27b in the saved file.
5

Run the example

Save the code above as image_agent.py, then run:
Full source: cookbook/90_models/groq/image_agent.py