I tried to run the template from the official cookbook.
When I try to run this:
result_edit = client.images.edit(
model=“gpt-image-1”,
image=[img1,img2],
prompt=prompt_edit,
# size=“1024x1536”
)
I got:
RuntimeError: Expected entry at
image
to be bytes, an io.IOBase instance, PathLike or a tuple but received <class ‘list’> instead.
Then how you suppose to input multiple images?