OpenAI Create image edit Endpoint

Hi everyone,

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?

Thanks in advance!

API Reference - OpenAI API



Hi, check this out:

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.

1 Like

Looks like they do support multiple image input from their documentation (https://platform.openai.com/docs/api-reference/images/createEdit?lang=curl)

Any ideais on why the error status_message in the API response might be “Issue Getting File For Call” with a single image input?

Yes, they don’t for APIs.

For the error, there’s a few things to checklist.
Would you like to go through the checklist.

1. File format - Use .png, under 4MB
  1. Upload method| - Use multipart/form-data|
  2. Field name|- Must be image|
  3. No URLs| - Don’t send URLs or base64|
  4. API tool - Use Postman or Bubble with proper config|
  5. Logs| - Check for file upload errors or size mismatches|

@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.

1 Like

@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]…

Cheers!

@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.

Kind regards