gemini-imagegen

Generate, edit, and compose images from prompts using the Gemini API.

3|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/hirefrank/claude-plugins --skill gemini-imagegen-hirefrank
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/hirefrank/claude-plugins/tree/main/plugins/edge-stack/skills/gemini-imagegen
Command: npx skills add https://github.com/hirefrank/claude-plugins --skill gemini-imagegen-hirefrank

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate the creation, editing, and composition of AI-generated images to accelerate visual content workflows, reducing manual design time and enabling rapid prototyping.

Core Features & Use Cases

  • Generate Images: Create visuals from text prompts for marketing, UI mockups, or concept art.
  • Edit Images: Transform styles or modify elements within an existing image.
  • Compose Images: Combine multiple images into layouts or collages for presentation-ready assets.

Quick Start

Use Gemini ImageGen to generate an image from a prompt and save it to an output path, e.g. generate a sunset over mountains to 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 AI?

Generate images from text prompts by providing a description to the Skill, which uses the Gemini API to create visuals. Specify dimensions, output format (PNG or JPEG), and the Skill saves the generated image to your local disk for immediate use in marketing, UI mockups, or concept art.

Can I edit existing images with AI to change styles or elements?

Yes, image editing transforms styles or modifies elements within existing images using AI. Upload a source image and describe the changes you want; the Skill applies those edits and saves the result locally, enabling rapid iteration on design concepts.

What do I need to set up before using AI image generation?

You need a Gemini API key (set as GEMINI_API_KEY environment variable) to authenticate requests. The Skill uses the gemini-2.0-flash-exp model by default and requires the @google/generative-ai dependency, handling all setup so you can start generating images immediately.

How do I combine multiple images into layouts or collages?

Compose images by combining multiple source images into layouts or collages using the Skill's composition feature. Define your layout preferences, and the Skill generates presentation-ready composite assets saved as PNG or JPEG files to your specified output path.

Can I automate image creation for rapid prototyping workflows?

Yes, automate image generation, editing, and composition to accelerate visual content workflows and reduce manual design time. The Skill integrates into local design workflows, enabling rapid prototyping of marketing visuals, UI mockups, and concept art without switching tools.

What output formats and customization options are available?

The Skill produces PNG or JPEG outputs and accepts options for custom width and height dimensions. Save results to any local path, and configure the Gemini model parameters to match your quality and performance needs for different asset types.