ce-gemini-imagegen

Generate and edit images using Google's Gemini API.

Updated May 4, 2026
One-click install
npx skills add https://github.com/IAmKongHai/compound-engineering-plugin-zh --skill ce-gemini-imagegen-iamkonghai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-gemini-imagegen
Source: https://github.com/IAmKongHai/compound-engineering-plugin-zh/tree/main/3.4.2/skills/ce-gemini-imagegen
Command: npx skills add https://github.com/IAmKongHai/compound-engineering-plugin-zh --skill ce-gemini-imagegen-iamkonghai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the need for generating and editing images with precision and efficiency, leveraging Google's Gemini API for high-quality results.

Core Features & Use Cases

  • Image Generation: Create images from text prompts using advanced AI models.
  • Image Editing: Edit existing images with text instructions, applying styles, filters, and more.
  • Use Case: A designer can quickly generate a logo with specific text and style, or a photographer can enhance a photo with a sunset effect described in natural language.

Quick Start

Generate an image of a futuristic cityscape with "a modern cityscape at dusk, neon lights, skyscrapers, and a vibrant atmosphere" and save it as 'cityscape.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 prompts using the Gemini API?

To generate images from text prompts using the Gemini API, the Skill processes your descriptive instructions to create high-quality AI art. It supports various aspect ratios and resolutions tailored for professional and creative projects.

Can I edit existing images with text instructions in Python?

Yes, you can edit existing images with text instructions in Python by sending the image and natural language descriptions to the Gemini API. The Skill manipulates the image by applying styles, filters, and effects based on your text.

Do I need a specific Python environment to use the Gemini API for image generation?

Yes, you need a configured Python environment with the google-genai and Pillow libraries installed to use the Gemini API for image generation. A valid Gemini API key is also required to authenticate the text-to-image and image manipulation requests.

What is the best way to apply style transfers to photos using AI?

The best way to apply style transfers to photos using AI is by leveraging the Gemini API to process natural language text instructions. This method enables precise image manipulation, allowing you to apply specific visual styles and filters to existing photos programmatically.

Does the Gemini API support different aspect ratios for AI art generation?

Yes, the Gemini API supports different aspect ratios and resolutions for AI art generation. This allows you to tailor the output dimensions of your text-to-image creations to fit specific creative or professional design layout requirements.