sc-gemini-imagegen

Automate image generation and editing using the Gemini API.

105|14|Updated Jul 6, 2025
One-click install
npx skills add https://github.com/kylesnowschwartz/SimpleClaude --skill sc-gemini-imagegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-gemini-imagegen
Source: https://github.com/kylesnowschwartz/SimpleClaude/tree/main/plugins/sc-skills/skills/sc-gemini-imagegen
Command: npx skills add https://github.com/kylesnowschwartz/SimpleClaude --skill sc-gemini-imagegen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables generation and editing of images using Google's Gemini API. The environment variable GEMINI_API_KEY must be set.

Core Features & Use Cases

  • Text-to-image generation (1K-4K resolution) with configurable prompts.
  • Image editing and multi-turn refinement to iterate on visuals.
  • Composition from multiple references for complex outputs.

Quick Start

  • Generate a simple image using the included script: python scripts/generate_image.py --prompt "A sunset over mountains"

Frequently Asked Questions about sc-gemini-imagegen

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

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

Text-to-image generation with Gemini converts your written descriptions into images at 1K-4K resolution. Set your GEMINI_API_KEY environment variable, then use the included script with a prompt like `python scripts/generate_image.py --prompt "A sunset over mountains"` to create images directly from text.

Can I edit and refine images iteratively with Gemini?

Image editing with Gemini supports multi-turn refinement, letting you iteratively modify and improve visuals in a single workflow. You can adjust compositions, regenerate sections, and refine outputs across multiple rounds without restarting.

What image sizes and aspect ratios does Gemini image generation support?

Gemini image generation offers selectable image sizes and aspect ratios through configurable parameters. The gemini-3-pro-image-preview model handles these options, letting you specify dimensions suited to your design needs like logos, stickers, or product mockups.

Can I create images by composing multiple reference images together?

Composition from multiple reference images is supported, enabling you to blend or combine separate visual inputs into complex outputs like logos, stickers, and product mockups within a single generation task.

Do I need to install dependencies beyond the Gemini API to generate images?

Image generation requires google-genai for API access and Pillow for image processing and manipulation. Both dependencies are included with the Skill and handle generation, editing, and output formatting automatically.

What format do generated images return in for saving or further processing?

Generated images return as inline image data alongside text output, making them immediately ready to save to disk or pass into downstream image processing and editing workflows without format conversion.