nanobanana-image-edit

Edit existing images via Gemini API with user-provided prompts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/co-r-e/dexcode --skill nanobanana-image-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nanobanana-image-edit
Source: https://github.com/co-r-e/dexcode/tree/main/.claude/skills/nanobanana-image-edit
Command: npx skills add https://github.com/co-r-e/dexcode --skill nanobanana-image-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @google/genai, and includes scripts (resource) components.

What problem does it solve?

AI image editing is simplified by sending the original image and an edit prompt to Gemini API, returning a modified image and optionally updating references.

Core Features & Use Cases

  • AI-driven image editing: apply user-provided edits to existing images.
  • Integrated with deck assets: saves edited images back to decks/<deck>/assets and can update MDX references.
  • Use Case: recolor, remove objects, or refine details in images used in decks.

Quick Start

Run the edit-image.ts script with your image path and a clear edit prompt to apply the edit.

Frequently Asked Questions about nanobanana-image-edit

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

FAQPage Schema
How do I edit existing images with AI prompts using the Gemini API?

To edit images with AI prompts, you run a CLI script that sends your original image and edit instructions to the Gemini API, which returns the modified image and optionally updates your MDX references.

Can I use AI image editing to remove objects or change colors in deck assets?

Yes, AI image editing can remove objects, change colors, and refine details in deck assets by sending the image path and a specific edit prompt to the Gemini API via a command-line script.

Do I need a GEMINI_API_KEY to apply AI image edits to MDX content?

Yes, applying AI image edits requires a GEMINI_API_KEY environment variable to authenticate your requests to the Gemini API when running the image editing CLI script.

How do I specify the output resolution and aspect ratio for AI image editing?

You specify the output resolution and aspect ratio for AI image editing by passing the optional --resolution and --aspect-ratio command-line arguments along with the --image and --prompt parameters.

Does AI image editing automatically update MDX references when saving to deck assets?

AI image editing saves modified images back to decks/<deck>/assets and can optionally update MDX references, keeping your content synchronized with the newly generated visual assets.

What are the limitations of using the Gemini API for AI image editing?

The primary limitation of using the Gemini API for AI image editing is that edits depend strictly on the clarity of your text prompt, and it requires a valid GEMINI_API_KEY for all processing.