Hello, I know this is already an achieved post but I came here while searching for the solution to generate image in “platform.openai.com/playground/” in google.
I tried to use the
curl https://api.openai.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'
and also tried to make the function on my own using the “Generate” button in beta stage
and I also your code function but with all these functions tested, GPT in playground always gives me an image url with “example. com/my requested image.png” which, is an empty image… (no matter what I choose GPT 4o, GPT 4.5)
Could please you guide me how to test the image generation in gpt api playground ?