gpt-image-2 - Image generation and editing using gpt-image-2 model
Generates, edits, and inpaints images using the gpt-image-2 API via a CLI script.
Tags
Updated: 2026-09-23Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate images from text prompts
- Edit images with targeted changes
- Inpaint masked areas of images
- Generate image variants in parallel
Inputs
- OpenAI image API key
- Base API URL
- Image prompt text
- Input image file
- Mask image file
Outputs
- Generated PNG image files
- Edited PNG image files
Requirements
- Python 3 environment
- gpt_image.py CLI script
- OPENAI_IMAGE_API_KEY environment variable
