Skip to main content

Nano Banana Extension

This tutorial covers how to add the Nano Banana MCP Server as a goose extension that provides AI image generation and editing capabilities using Google's Gemini Image API.

TLDR

Environment Variable

GEMINI_API_KEY: <YOUR_API_KEY>

Configuration

info

Note that you'll need Node.js installed on your system to run this command, as it uses npx.

  1. Launch the installer
  2. Click Yes to confirm the installation
  3. Get your Gemini API Key and paste it in
  4. Click Add Extension
  5. Click the button in the top-left to open the sidebar
  6. Navigate to the chat

Example Usage

With Nano Banana, you can generate new images and edit existing images in natural language. Simply describe what you want created or modified and goose will turn that into a detailed prompt to provide to Nano Banana.

Image Creation Examples

Create images from scratch by describing what you want:

  • "Create an image of a sunset over mountains"
  • "Generate a logo for a coffee shop called Bean There"
  • "Make a fantasy dragon guarding a treasure hoard"

Image Iteration Examples

After generating or editing an image, you can keep refining it:

  • "Make the sky more purple"
  • "Add a cat in the corner"
  • "Remove the text"
  • "Make it more cartoon-style"

goose Prompt

use nano banana to create an image of a fantasy ice mage crafting ice sculptures in a frozen workshop

goose Output

Desktop

🎨 Image generated with nano-banana (Gemini 2.5 Flash Image)!

Prompt: "A fantasy ice mage crafting ice sculptures in a frozen workshop. The mage wears flowing robes with frost patterns, their hands glowing with blue magical energy as they shape intricate ice sculptures. The workshop is filled with beautiful frozen creations - ice animals, crystalline flowers, and elaborate figurines. Icicles hang from the ceiling, frost covers the stone walls, and magical blue light illuminates the space. Snow gently drifts through the air. Detailed fantasy art style with magical atmosphere."

Done! Here's your fantasy ice mage image!

The image turned out beautifully — it features:

  • The Ice Mage: A hooded figure in elegant deep blue robes with intricate frost and snowflake embroidery, hands glowing with blue magical energy
  • Ice Sculptures: A stunning unicorn being crafted, a pegasus in the background, crystalline rose bouquets, and small knight figurines
  • The Frozen Workshop: A magnificent ice cathedral-like space with dramatic icicles hanging from vaulted ceilings, frost-covered pillars, and geometric ice patterns
  • Magical Atmosphere: Rainbow light refractions, drifting snow particles, and an ethereal blue glow throughout

The image has been saved to: generated_imgs/generated-2025-12-04T04-15-47-907Z-3grhec.png

Would you like me to make any modifications to this image? I can adjust elements like the mage's appearance, add more sculptures, change the lighting, or tweak any other details using the continue_editing feature!