nanobanana-skill

Generate or edit images via nanobanana using prompts, aspect ratios, and models.

322|45|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/Microck/ordinary-claude-skills --skill nanobanana-skill-microck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nanobanana-skill
Source: https://github.com/Microck/ordinary-claude-skills/tree/main/skills_all/nanobanana-skill
Command: npx skills add https://github.com/Microck/ordinary-claude-skills --skill nanobanana-skill-microck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill generates or edits images using the Google Gemini API via the nanobanana tool.

Core Features & Use Cases

  • Prompt-based image generation
  • Image editing with input images
  • Support for aspect ratios, models, and outputs

Quick Start

Generate an image with the prompt "Futuristic city skyline" and save as output.png.

Frequently Asked Questions about nanobanana-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images using the Gemini API?

Image generation with Gemini API uses prompt-based requests to create visuals. This Skill generates images by accepting text prompts, aspect ratios, and model parameters, then returns generated images saved as output files. You need a GEMINI_API_KEY, Python 3 with google-genai and Pillow installed, and the nanobanana tool.

Can I edit existing images with AI, or only generate new ones?

Both image editing and generation are supported. This Skill accepts input images for editing tasks alongside prompt-based generation. You provide an existing image file, a prompt describing edits, and output specifications like aspect ratio and resolution.

What setup do I need before using AI image generation with Gemini?

Prerequisites include configuring GEMINI_API_KEY in ~/.nanobanana.env or as an environment variable, installing Python 3 with google-genai, Pillow, and python-dotenv packages, and having the nanobanana.py executable available in your path.

Does Gemini image generation support custom aspect ratios and resolutions?

Yes, aspect ratios and custom resolutions are configurable parameters. You specify these alongside your prompt and model choice when generating or editing images, giving control over output dimensions.

What image formats and outputs does Gemini image generation produce?

Generated and edited images are output as PNG files by default. The Skill handles format conversion and file saving through Pillow, so you receive ready-to-use image files without manual format handling.

Can I choose different Gemini models for image generation tasks?

Model selection is a configurable parameter in this Skill. Different Gemini models may produce varying results; you specify the model alongside your prompt, aspect ratio, and resolution for each generation or editing task.