Skip to main content
Similar to providing image inputs, you can also get image outputs from an agent.

Image Output Modality

The following example demonstrates how some models can directly generate images as part of their response.
image_agent.py
You can find all generated images in the RunOutput.images list.

Usage

1

Set up your virtual environment

2

Install dependencies

3

Export your Google API key

4

Run Agent

Developer Resources