gemini-image-gen

Generate and edit images via the Gemini-2.5-flash-image model.

Updated Jul 23, 2025
One-click install
npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill gemini-image-gen-levanminhduc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-image-gen
Source: https://github.com/levanminhduc/LuongHoaThoNew/tree/main/.claude/skills/gemini-image-gen
Command: npx skills add https://github.com/levanminhduc/LuongHoaThoNew --skill gemini-image-gen-levanminhduc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-genai, requests, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill generates images from text prompts, supports image editing, and multi-image composition using Gemini's image model.

Core Features & Use Cases

  • Text-to-image: Generate high-quality images from descriptive prompts.
  • Image editing: Modify existing images with editing prompts.
  • Multi-image composition: Combine up to 3 images into a scene.

Quick Start

Generate a 16:9 landscape image from a prompt and save to docs/assets/.

Frequently Asked Questions about gemini-image-gen

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

FAQPage Schema
How do I generate images from text prompts using Gemini?

Text-to-image generation with Gemini converts descriptive prompts into high-quality images. The Skill accepts natural language descriptions and outputs images at configurable aspect ratios, saved to ./docs/assets. It interfaces with Gemini-2.5-flash-image model via the google-genai SDK.

Can I edit existing images and combine multiple images into one composition?

Image editing and multi-image composition are supported features. You can modify existing images with editing prompts and combine up to three input images into a single scene. Pillow handles image processing while the Gemini model performs the creative transformations.

What safety controls and output options are available?

Configurable safety settings let you control content filtering on generated images. Watermarking is optional, and all outputs save automatically to ./docs/assets. The Skill returns images plus optional text responses from the model for iterative refinement.

How do I refine images through conversation?

Iterative refinement through conversation enables you to request adjustments to generated images by providing follow-up prompts. The Skill maintains context across requests, allowing multi-turn interactions that progressively improve results without regenerating from scratch.

What input formats and aspect ratios does the Skill support?

The Skill accepts text prompts and image files as inputs, supporting flexible aspect ratios for output generation. Image inputs work with standard formats handled by Pillow; the Gemini API processes both text and image data together for composition and editing tasks.

Do I need prior experience with APIs or Python to use this Skill?

Helper scripts abstract API complexity, but the Skill uses the Python SDK and requires basic familiarity with google-genai, requests, and Pillow dependencies. The Core Task Description indicates Advanced implementation depth, reflecting flexible customization capabilities rather than entry difficulty.