Prerequisites
You need to install thegoogle-genai and Pillow libraries.
GOOGLE_API_KEY environment variable. You can obtain an API key from Google AI Studio.
Example
The following agent will use Nano Banana to generate an image based on a text prompt.nano_banana_tools.py
Toolkit Params
Toolkit Functions
Developer Resources
- View Tools