imagegen-by-gpt

Generate and edit raster images via built-in and CLI workflows.

8|3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/KunCheng-He/kk-ai --skill imagegen-by-gpt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen-by-gpt
Source: https://github.com/KunCheng-He/kk-ai/tree/main/skills/shared/imagegen-by-gpt
Command: npx skills add https://github.com/KunCheng-He/kk-ai --skill imagegen-by-gpt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of raster images, such as photos, illustrations, and UI mockups, by providing a unified interface for both built-in generation and advanced CLI-based editing.

Core Features & Use Cases

  • Versatile Generation: Create high-quality images from text prompts for diverse needs like product mockups, UI designs, and marketing assets.
  • Intelligent Editing: Perform precise edits, background removals, and style transfers on existing images while preserving key invariants.
  • Use Case: Use this Skill to generate a hero image for a landing page, or to replace the background of a product photo with a professional studio gradient while keeping the product itself unchanged.

Quick Start

Use the imagegen-by-gpt skill to generate a photorealistic product mockup of a ceramic mug on a stone surface.

Frequently Asked Questions about imagegen-by-gpt

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

FAQPage Schema
How do I generate a UI mockup or product photo from a text prompt?

This Skill generates UI mockups, product photos, and illustrations from text prompts using its built-in generation interface. It creates high-quality raster assets for diverse project needs like marketing materials and landing page hero images.

What is the best way to remove the background from an existing image while keeping the product intact?

The best way to remove backgrounds while preserving product invariants is using this Skill's CLI-based editing workflows. It supports precise edits and chroma-key removal via local Python scripts to isolate subjects cleanly.

Do I need an OpenAI API key to perform advanced image editing tasks?

Yes, you need an OpenAI API integration for advanced CLI fallback modes. Basic generation works without it, but complex tasks like style transfer and batch processing require this API connection.

Can I use Python and Pillow for post-processing generated bitmap assets?

Yes, you can use local Python scripts with the Pillow library for post-processing generated bitmap assets. This allows you to perform custom modifications like chroma-key removal and local image manipulation.

Does this tool support batch processing and style transfer for multiple raster images?

Yes, this tool supports batch processing and style transfer for raster images through its advanced CLI-based workflows. It intelligently edits existing photos and illustrations while preserving key visual invariants.