We are trying something very abstract here.
So we gave a prompt to chat.openai.com ChatGPT4 to generate an image. It gave us the right response, the image is below
We then sent the same prompt through the API, using the code below
>
> # Create an image from a text prompt
> prompt="""Create an HIGH definition animated image of a Fox wearing a red colored jersey with number 37 on it"""
> print(prompt)
> response = openai.Image.create(
> prompt=prompt,
> n=1, # Number of images to generate
> size="1024x1024" # Size of the image
> )
How can we get similar output from the API, from our code.