ce-gemini-imagegen

Generate and edit images using the Gemini API with Python scripts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill addresses the need for efficient image generation and editing through the Gemini API, offering capabilities for a variety of tasks from text-to-image generation to detailed image editing and style transfers.

Core Features & Use Cases

  • Image Generation: Convert text prompts into detailed images with various options for resolutions and aspect ratios.
  • Image Editing: Enhance, modify, and create images from scratch using the Gemini API's extensive features.
  • Use Case: For designers, artists, or anyone needing high-quality images from text descriptions, this skill provides a streamlined solution to create logos, stickers, product mockups, and more.

Quick Start

Generate an image by running: python generate_image.py "A fantasy landscape with a dragon and mountains" output.png

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?

Text-to-image generation using the Gemini API is done by running a Python script with your text prompt and output filename. This skill converts your text descriptions into detailed images with specified resolutions and aspect ratios.

Can I edit existing images and apply style transfers with the Gemini API?

Yes, image editing and style transfer are supported using the Gemini API. You can enhance, modify, and apply style transfers to existing images by leveraging the API's extensive image manipulation features.

Do I need Pillow and google-genai to run text-to-image generation?

Yes, you need both the 'google-genai' and 'Pillow' dependencies installed. 'google-genai' interfaces with the Gemini API for generation, while 'Pillow' handles the local image processing and manipulation.

What image resolutions and aspect ratios can I specify for image generation?

The skill supports generating images with various high resolution options and multiple aspect ratios. You can specify these parameters within your Python script to tailor the output for logos, stickers, or product mockups.

How does Gemini API image generation compare to other text-to-image tools?

Using the Gemini API for text-to-image generation provides a streamlined programmatic solution within Python environments. It differentiates itself by supporting detailed image editing and style transfer alongside standard generation tasks.

Are there limitations when generating high resolution images with the Gemini API?

Limitations may arise from Gemini API rate limits or constraints when processing high resolution images. While the skill supports various aspect ratios, extremely large outputs might require specific configuration to avoid processing errors.