gpt-image-2-edit API Usage Guide
Overview
gpt-image-2-edit uses OpenAI’s GPT Image 2 model to edit or transform an existing image based on a text prompt. It supports two modes:- Image Edit: Modify an image according to a prompt (e.g. change background, style transfer)
- Inpainting: Edit a specific region of an image using a mask (white pixels are edited, black pixels are preserved)