/images/editsCreate an image edit
Creates edited or extended images from one or more source images and a text prompt. Send multipart form data with image and prompt, or send JSON with images and prompt when using GPT image models. Configure the model, output format, size, quality, background, and streaming behavior as needed.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Image editing input supplied as multipart form data or JSON. Multipart requests require image and prompt; JSON requests require images and prompt.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
prompt and either multipart image or JSON images are required. n must be between 1 and 10, partial_images must be between 0 and 3, and output_format must be png, jpeg, or webp when provided. A 429 is returned when the request rate exceeds the limit, and a 503 is returned when the requested model is temporarily overloaded.