Skip to main content
Enable Agno agents to generate images with Google’s Nano Banana (gemini-2.5-flash-image) model. 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.