gemini-imagegen

Generate and edit images using the Gemini API from text prompts and references.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/yxc023/agent-config-studio --skill gemini-imagegen-yxc023
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/yxc023/agent-config-studio/tree/main/.opencode/skills/gemini-imagegen
Command: npx skills add https://github.com/yxc023/agent-config-studio --skill gemini-imagegen-yxc023

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generate and edit images using the Gemini API to streamline the creation, editing, and refinement of visuals from text prompts and multiple reference images.

Core Features & Use Cases

  • Generate images from text prompts, edit existing images, and perform style transfers.
  • Create logos, stickers, product mockups, and other visual assets with multi-turn refinement from multiple references.
  • Compose outputs by combining elements from several inputs and export final images for design workflows.

Quick Start

Prompt Gemini to generate an image from a description and save it as output.png.

Frequently Asked Questions about gemini-imagegen

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

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

You can generate images from text prompts using Gemini by providing a descriptive prompt to the Gemini API, which processes the text and outputs the corresponding visual asset.

Can I edit existing images and perform style transfers with the Gemini API?

Yes, you can edit existing images and perform style transfers with the Gemini API by sending the original image and modification instructions to refine the visual output.

What's the best way to compose outputs from multiple reference images?

The best way to compose outputs from multiple reference images is to supply several input references to the Gemini API, which combines elements from these inputs to generate a single refined visual asset.

Do I need Gemini API credentials and Pillow for image generation?

Yes, you need Gemini API credentials and the Pillow library for image generation. The credentials authenticate your requests to the Gemini API, while Pillow handles image processing and exporting final outputs.

Does Gemini work well for creating logos, stickers, and product mockups?

Yes, Gemini works well for creating logos, stickers, and product mockups. It supports multi-turn refinement, allowing you to iteratively adjust visual assets until you achieve the desired design output.

Why does multi-turn refinement matter for AI-art generation?

Multi-turn refinement matters for AI-art generation because it allows you to iteratively adjust and compose elements from multiple references, progressively refining the output to meet specific design requirements.