ce-gemini-imagegen

Automate Gemini image generation and editing via Python API calls.

2|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/thisisryanswift/zellij-agent-tools --skill ce-gemini-imagegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-gemini-imagegen
Source: https://github.com/thisisryanswift/zellij-agent-tools/tree/main/.opencode/skills/ce-gemini-imagegen
Command: npx skills add https://github.com/thisisryanswift/zellij-agent-tools --skill ce-gemini-imagegen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates Gemini image generation and editing by interfacing with Gemini's API through Python, enabling quick creation and modification of visuals without manual API calls.

Core Features & Use Cases

  • Text-to-image generation from prompts for prototypes, branding, and concept art.
  • Image editing and style transfer by supplying prompts and reference images for iterative refinement.
  • Image composition from multiple references to build complex scenes, product mockups, or creative composites.

Quick Start

Run the generate_image.py script with a prompt and an output path after setting GEMINI_API_KEY.

Frequently Asked Questions about ce-gemini-imagegen

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

FAQPage Schema
How do I automate Gemini image generation and editing using Python?

Automate Gemini image generation by running the generate_image.py script with your text prompt and output path, which requires setting the GEMINI_API_KEY environment variable. This Python automation handles creating new images and editing existing ones without manual API calls.

Can I compose a complex image from multiple reference images with the Gemini API?

Composing complex scenes from multiple reference images is supported by providing reference images alongside your text prompt. This enables iterative multi-turn refinement to build product mockups, style transfers, or creative composites through the Gemini API.

Do I need a specific API key or environment setup to generate images with Gemini?

Generating images with Gemini requires a valid GEMINI_API_KEY and the google-genai Python dependency installed. The system validates your API key and input images before processing text-to-image generation or editing tasks.

Which Gemini models are supported for text-to-image generation and style transfer?

Text-to-image generation and style transfer support the gemini-3-pro-image-preview and gemini-2.5-flash-image models. These models process your prompts and reference images to output modified or newly generated visual assets.

What are the limitations when using Python for Gemini image editing?

Limitations include dependencies on the Pillow library for image processing and strict input validation for both the GEMINI_API_KEY and supplied reference images. Complex multi-turn refinement requires maintaining context across iterative API calls.