You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http_response = requests.get(response.data[0].url)
with open("/my_image.png", "wb") as fp:
fp.write(http_response.content)
image = Image.open("/my_image.png")
# Without this conversion, I get an "Invalid input image" error
image = image.convert("RGBA")
response = client.images.edit(image=image.tobytes(), model="dall-e-2", prompt="This character is reading a book")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to generate an image with DALL-e and then use this image as a starting point to generate other images and I'm running into 2 issues:
Creation of the image:
1) First issue
This triggers the following error:
2) Second issue
This triggers the following error:
Beta Was this translation helpful? Give feedback.
All reactions