Skip to main content

Code

cookbook/models/google/gemini/imagen_tool_advanced.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Set up Vertex AI authentication

Follow the authentication guide to set up Vertex AI credentials.
3

Set your API keys

4

Install libraries

5

Run Agent