gemini-imagegen

Generate and edit images via the Gemini API with multi-turn refinement.

24.1k|2.0k|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/EveryInc/compound-engineering-plugin --skill gemini-imagegen-everyinc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/EveryInc/compound-engineering-plugin/tree/main/plugins/compound-engineering/skills/gemini-imagegen
Command: npx skills add https://github.com/EveryInc/compound-engineering-plugin --skill gemini-imagegen-everyinc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generate, edit, and compose images with Gemini API and multi-turn refinement.

Core Features & Use Cases

  • Text-to-image, image editing, multi-turn refinement
  • Support for multiple reference images and aspect/resolution controls
  • Multimodal outputs and easy asset handling

Quick Start

Generate and save an image from a prompt.

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 the Gemini API?

Text-to-image generation with Gemini API converts text prompts into images by configuring the gemini-3-pro-image-preview model with your GEMINI_API_KEY, setting aspect_ratio and image_size in image_config, and submitting prompts through the API. The Skill automates this workflow and handles image asset output directly.

Can I edit existing images and refine them across multiple turns with Gemini?

Yes. Image editing and multi-turn refinement let you modify existing images and iterate on results through sequential prompts. The Skill supports uploading reference images and maintaining context across turns to progressively refine outputs toward your target.

What image formats and configurations does Gemini image generation support?

Gemini image generation supports configurable aspect_ratio and image_size settings through image_config. The Skill returns IMAGE response_modalities alongside TEXT output, and handles multimodal responses natively with built-in asset handling for generated images.

How many reference images can I use in a single composition or prompt?

The Skill supports up to 14 reference images across iterative prompts for multi-image compositions. This enables complex collages, mockups, and product layouts where you provide multiple source assets to guide generation.

What are the limitations when using Gemini for image generation and editing?

Gemini image generation requires a valid GEMINI_API_KEY and depends on the google-genai library and Pillow for image handling. Multi-turn refinement workflows are constrained by API rate limits and model capabilities; complex compositions with many reference images may require careful prompt structuring.

Can I create logos, stickers, and product mockups with Gemini image generation?

Yes. The Skill is purpose-built for logo, sticker creation, and product mockups through text prompts and image editing. Configurable aspect ratios and the ability to reference multiple source images support these specialized design use cases effectively.