generate-image

Generate and edit images via Gemini Nano Banana using a CLI script.

3|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/nicobailon/generate-image-skill --skill generate-image-nicobailon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/nicobailon/generate-image-skill/tree/main
Command: npx skills add https://github.com/nicobailon/generate-image-skill --skill generate-image-nicobailon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gemini-webapi, browser-cookie3, and includes scripts (resource) components.

What problem does it solve?

Generates and edits images automatically by interfacing Gemini Nano Banana, reducing manual art creation time and complexity.

Core Features & Use Cases

  • CLI-driven image generation: Create high-quality images from prompts with optional input and aspect hints.
  • Image editing via prompts: Modify existing images by describing changes.
  • Reliability & safety: Handles authentication via Chrome cookies, retries on transient failures, and reports actionable troubleshooting.

Quick Start

Invoke the nano-banana script with your prompt to generate or edit an image.

Frequently Asked Questions about generate-image

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

FAQPage Schema
How do I generate images using Gemini Nano Banana through a CLI tool?

Gemini Nano Banana image generation is automated through a CLI script that sends your text prompt to the web API. It returns high-quality visuals directly from your terminal by interfacing with the browser-based API.

How does browser cookie authentication work for Gemini image generation?

Browser cookie authentication for Gemini image generation works by automatically extracting your active Chrome login session for gemini.google.com. The gemini-webapi uses these cookies to authorize API requests without manual token entry.

Can I edit existing images by describing changes with Gemini Nano Banana?

Yes, you can edit existing images by providing a text prompt describing the desired modifications. The CLI tool accepts an input image and applies your described changes using the Gemini web API.

Do I need to be logged into gemini.google.com in Chrome to use this image generation script?

Yes, you need to be logged into gemini.google.com in Chrome to use this image generation script. The tool relies on the browser-cookie3 dependency to extract your active session cookies for authentication.

What happens if the image generation API request fails during the process?

If the image generation API request fails, the CLI script includes built-in retry logic to handle transient failures. It also provides actionable troubleshooting reports to help resolve authentication or connection issues.

Can I specify aspect ratio hints when generating concept art with this CLI tool?

Yes, you can specify aspect ratio hints when generating concept art with this CLI tool. The script accepts optional aspect ratio parameters to format the generated images according to your project requirements.