#How to attach images to Batch generation using edit endpoint

1 messages · Page 1 of 1 (latest)

hazy raptor
#

Hello everyone. I need help with batch image generation API. I cannot find a functional way how to attach images correctly in batch generations I tried 4 different ways and I always get an error.
Is there an example of a correct json batch request with an image in it? (For edits endpoint)
Thanks to whoever would help!

hazy raptor
#

Ok I figured it out. For anyone who has the same question.
"images": [{"file_id": "file-2Ymkxt2WGeD8rx9REbK8wo"}]
The file id is id you get when you upload a file to the openai storage. So you have to first upload the image there, then call edit end point to generate a new image