What This Skill Does
Generate and edit images using the OpenAI Image API. Create images from text prompts, edit existing images with inpainting/masking, remove or replace backgrounds, and generate batch variants.
When to Use It
- Generating images from text descriptions
- Editing or inpainting existing images
- Removing or replacing image backgrounds
- Creating product shots or concept art
- Generating multiple variants of an image
Key Features
Image Generation
Create images from detailed text prompts with control over size, style, and quality.Image Editing
Modify specific regions of existing images using masks — fill in areas, replace objects, extend scenes.Background Operations
Remove backgrounds for transparent PNGs, or replace backgrounds with new scenes.Requirements
OPENAI_API_KEYenvironment variable set- Bundled CLI script:
scripts/image_gen.py
Best Practices
- Write detailed, specific prompts for better results
- Use the highest quality setting for final deliverables
- Generate multiple variants and pick the best one
- Keep original images when editing — work on copies