imagegen

Generate and edit images via OpenAI's API with text prompts and masking.

4|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/cuozg/oh-my-skills --skill imagegen-cuozg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/cuozg/oh-my-skills/tree/main/skills/imagegen
Command: npx skills add https://github.com/cuozg/oh-my-skills --skill imagegen-cuozg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation and modification of images, from concept art to product shots, directly from text prompts or by editing existing visuals.

Core Features & Use Cases

  • Image Generation: Create new images based on detailed text descriptions.
  • Image Editing: Modify existing images through inpainting, masking, style transfer, and background replacement.
  • Batch Processing: Generate or edit multiple images efficiently from a list of prompts.
  • Use Case: Generate a series of social media graphics for a marketing campaign, or edit a product photo to remove the background and place it on a transparent layer.

Quick Start

Use the imagegen skill to generate a picture of a cat wearing a hat.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate images from text prompts using OpenAI?

To generate images from text prompts, this Skill uses OpenAI's API for text-to-image creation, requiring an OPENAI_API_KEY for live operations. You provide detailed text descriptions to create new concept art or product shots.

Can I edit existing images for background replacement and inpainting?

Yes, you can edit existing images for background replacement and inpainting. The Skill modifies visuals through masking and style transfer, allowing you to remove backgrounds or alter specific image regions directly.

Do I need an OPENAI_API_KEY to use the image generation CLI?

Yes, you need an OPENAI_API_KEY to use the image generation CLI. The Skill requires this key for live operations and handles deterministic runs via a bundled CLI script to process your prompts.

What is the best way to batch process multiple image generation prompts?

The best way to batch process multiple image generation prompts is using this Skill's built-in batch processing feature. It efficiently generates or edits multiple images from a provided list of text prompts.

Does this image editing tool work with Pillow for image manipulation?

Yes, this image editing tool works with Pillow for image manipulation. It uses Pillow alongside OpenAI's API to support text-to-image creation, inpainting, masking, and background manipulation tasks.