Skip to main content
Enable Agno agents to use Google’s Nano Banana (Gemini 2.5 Flash Image) and Nano Banana Pro (Gemini 3 Pro Image) models for generating and edit images via natural language. Supported in Agno v2.3 or higher.

Prerequisites

  • Set your Google API key as environment variable: export GOOGLE_API_KEY="your_api_key"
  • Run uv pip install agno google-genai Pillow to install dependencies

Run the Example

For details, see Nano Banana cookbook.