gemini-image-editing

Generate and edit images via Gemini multimodal API with Base64 payloads.

23|4|Updated May 7, 2026
One-click install
npx skills add https://github.com/qq5855144/GitHubM --skill gemini-image-editing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-image-editing
Source: https://github.com/qq5855144/GitHubM/tree/main/.skills/gemini-image-editing
Command: npx skills add https://github.com/qq5855144/GitHubM --skill gemini-image-editing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines AI image creation and editing so users can update visuals without manual design work or complex tooling.

Core Features & Use Cases

  • Text-driven editing: Change backgrounds, remove or replace elements, and restyle images from natural-language instructions.
  • Production-friendly output: Returns Base64 image data for immediate use in apps or downstream processing.
  • Use case: A product team can quickly adapt a marketing image for a new campaign by swapping the scene and preserving the original subject.

Quick Start

Use the gemini-image-editing skill to edit the attached image by replacing the background with a clean studio scene while keeping the main subject unchanged.

Frequently Asked Questions about gemini-image-editing

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

FAQPage Schema
How do I edit images from text prompts using the Gemini multimodal API?

Text-driven image editing via the Gemini multimodal API uses Base64-encoded image payloads and natural-language instructions to execute background replacement, element modification, and style transformation. It returns Base64 image data for immediate application use.

Can I replace the background of an image while preserving the original subject?

Yes, you can replace the background of an image while preserving the original subject by providing text instructions that specify a clean studio scene, allowing a product team to quickly adapt marketing visuals for new campaigns.

Do I need Base64 encoding to process image editing requests with Gemini?

Yes, you need Base64 encoding to process image editing requests with Gemini. The workflow requires Base64-encoded image payloads for input multimodal API calls and relies on Base64 response handling to output the newly generated or modified visual data.

What is the best way to handle Base64 image data for web apps and mini programs?

The best way to handle Base64 image data for web apps and mini programs is to process the Base64 response returned by the Gemini API directly within your creative production workflow, ensuring token and error awareness during visual data transmission.

Does Gemini image generation support style transformation for existing image inputs?

Gemini image generation supports style transformation for existing image inputs by accepting Base64-encoded source visuals and applying text-driven modifications, which streamlines AI image creation without requiring manual design work or complex tooling.

What are the limitations of text-driven image editing for production workflows?

Limitations of text-driven image editing for production workflows include the necessity of strict token and error awareness during Base64 response handling, as malformed text instructions or payload encoding issues can disrupt downstream creative workflows.