response = openai.Image.create(
prompt=”a white siamese cat”,
n=1,
size=”1024×1024″
)
image_url = response[‘data’][0][‘url’]

Exit mobile version