gemini-image-gen

Generate and edit images via Google's Gemini API with style templates and batch processing.

3|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/St3v3a/gemini-image-skill --skill gemini-image-gen-st3v3a
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-image-gen
Source: https://github.com/St3v3a/gemini-image-skill/tree/main
Command: npx skills add https://github.com/St3v3a/gemini-image-skill --skill gemini-image-gen-st3v3a

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-genai, python-dotenv, pillow, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation and editing of professional images using Google's Gemini API, providing consistent results through built-in style templates, reference images, and batch generation.

Core Features & Use Cases

  • Text-to-Image Generation: Create images from descriptive prompts with selectable aspect ratios.
  • Image Editing: Modify existing images via natural language instructions.
  • Style Templates & References: Apply 7 built-in templates and up to 14 reference images for consistent aesthetics across variations.
  • Batch Processing: Generate multiple variations in a single run for scalable asset production.
  • Use Case: Produce a set of branded icons, banners, or product visuals with cohesive style across multiple subjects.

Quick Start

Install uv, obtain a Google API key, and run a sample command: uv run python main.py images/output.png "rocket" --style assets/styles/purple_glass_3d.md

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

You can generate branded visuals by running a Python script with the Gemini API. This skill automates text-to-image generation and editing, applying style templates to produce cohesive assets.

Can I batch process multiple image variations with Gemini?

Yes, batch processing image variations is supported. This skill enables scalable asset production by generating multiple variations across different aspect ratios in a single run.

Do I need the uv package manager to run the Gemini image generation script?

Yes, the uv package manager is required. This solution depends on uv to execute the Python script and manage the google-genai, python-dotenv, and pillow libraries.

How do I apply consistent style templates to Gemini image generation?

Apply consistent styles by using built-in markdown templates. This skill provides 7 style templates and supports up to 14 reference images to maintain cohesive aesthetics across generated variations.

Can I edit existing images using natural language with the Gemini API?

Yes, existing images can be edited using natural language instructions. This skill leverages the Gemini API to modify current images via descriptive text commands alongside standard text-to-image generation.

What are the limitations of using Gemini API for branding and visual design tasks?

Limitations include the strict dependency on the uv package manager and specific Python libraries. Effective batch processing and consistent branding results require predefined style templates and reference images.