I’m experimenting with OpenAI’s new image edit endpoint and running into a bit of trouble. I’d like to send multiple images as input, but I haven’t figured out the correct way to pass them through the API connector.
Has anyone successfully implemented this or have any tips on how to structure the request properly?
As of now (May 2025), OpenAI’s image editing API (v1/images/edits) does NOT support multiple images in a single request. Each request handles one base image with an optional mask image and a prompt.
@lucas.casadevito This worked for me, though I must have missed the part where you use multiple images in the docs, I will give that a try later on today. Here’s whats working for me so far. Hope this helps.
@kipme001 Thanks for sharing, it worked! I’ve added all the parameters you have, even though some of them are not “Required” according to the API docs, and the call went through. I was able to send multiple images using image[0], image[1]…
@lucas.casadevito Glad to hear it worked. Are you able to send more than one image? I see you have Image[0] and Image[1], does this allow you to send multiple images dynamically? If so, how are you uploading multiple images, e.g. 3/4 images at a time.