ce-gemini-imagegen

Generate and edit images via the Gemini API with configurable aspect ratio and size.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-gemini-imagegen-diestok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-gemini-imagegen
Source: https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026/tree/main/.agents/skills/compound-engineering/skills/ce-gemini-imagegen
Command: npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-gemini-imagegen-diestok

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate image generation and editing tasks using the Gemini API to accelerate creative workflows from concept to reveal.

Core Features & Use Cases

  • Text-to-image generation: Create visuals from textual prompts with adjustable aspect ratios and resolutions.
  • Image editing & refinement: Modify existing images through targeted prompts and iterative refinements.
  • Composition from multiple references: Merge elements from several inputs to produce cohesive outputs for prototypes.
  • Use Case: Design teams iterating logos and product visuals with rapid feedback.

Quick Start

Run generate_image.py with a prompt and an output file path to generate an image from text.

Frequently Asked Questions about ce-gemini-imagegen

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

FAQPage Schema
How do I generate images from text using the Gemini API?

Yes, you can edit existing images using the Gemini API by providing targeted modification prompts. This supports multi-turn refinement to iteratively adjust and update existing image visuals.

Does the Gemini API support composing images from multiple reference images?

Yes, the Gemini API supports composing images from multiple reference images. You can merge elements from several inputs to produce cohesive outputs for design prototyping and product mockups.

Do I need a Gemini API key to automate image generation and editing?

Yes, you need a Gemini API key to automate image generation and editing. The Skill requires this key along with the google-genai library and Pillow to handle image processing and API requests.

What is the best way to create product mockups with the Gemini API?

The best way to create product mockups with the Gemini API is using text-to-image generation and composition from multiple references. This allows rapid iterative refinement of logos and product visuals through targeted prompts.

Can I configure aspect ratio and image size when generating images via the Gemini API?

Yes, you can configure aspect ratio and image size when generating images via the Gemini API. These adjustable parameters allow you to control the resolution and dimensions of your generated text-to-image outputs.