gemini-imagegen

Generate, edit, and compose images via the Gemini API using Python scripts.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill gemini-imagegen-asktinnguyen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/AskTinNguyen/vesper-team-skills/tree/main/gemini-imagegen
Command: npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill gemini-imagegen-asktinnguyen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Gemini image generation kit provides a cohesive set of tools and scripts to generate, edit, and compose images via the Gemini API, simplifying complex media workflows for designers and engineers.

Core Features & Use Cases

  • Generate: Create images from natural language prompts with configurable aspect ratios and resolutions.
  • Edit & Refine: Edit existing images with text prompts and iterative refinements.
  • Compose: Combine multiple reference images into a single output image for composites.
  • Use Case: Design a product mockup by prompting a scene, then refining lighting and composition across iterations.

Quick Start

Run the generate_image.py script with a prompt, output path, and required GEMINI_API_KEY to produce your first image.

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?

To generate images from text prompts using the Gemini API, run the generate_image.py script with your natural language prompt, output path, and GEMINI_API_KEY. This produces images with configurable aspect ratios and resolutions.

Can I edit and refine existing images with text prompts in Gemini?

Yes, you can edit and refine existing images with text prompts in Gemini by applying iterative refinements. This allows you to modify visual elements like lighting and composition across multiple editing cycles for design prototyping.

What's the best way to combine multiple reference images into a single composite?

The best way to combine multiple reference images into a single composite is using the multi-image composition workflows. This merges several input images into one unified output image suitable for media production.

Do I need a GEMINI_API_KEY to run text-to-image generation scripts?

Yes, you need a GEMINI_API_KEY to run text-to-image generation scripts. The key authenticates your access to the Gemini API utilities exposed through the Python scripts and thin library for visual creation.

Does this image generation workflow support Python and Pillow for media production?

Yes, this image generation workflow supports Python and Pillow for media production. It uses the google-genai dependency and Pillow to expose generation, editing, and composition utilities through Python scripts.