Incorrect Model Reference DALL-E-3 for Image Generation Post-Announcement 06/11

Dear Support Team,

I encountered an issue while attempting to generate an image using the dall-e-3 model as per the latest documentation. After the announcement made on 06/11 regarding image generation capabilities, I tried to use the dall-e-3 model with the OpenAI Python client. However, I received an error indicating that the model does not exist.

Here is the snippet of the code I used:

from openai import OpenAI

client = OpenAI(api_key="XXX")

response = client.images.generate(
  model="dall-e-3",
  prompt="A cute baby sea otter",
  n=1,
  size="1024x1024"
)

TypeError: Images.generate() got an unexpected keyword argument ‘model’

2 Likes

I had the same problem but updating my openai package to 1.1.1 fixed it.

2 Likes

You are awesome thank you

pip install --upgrade openai

Successfully installed openai-1.1.1

1 Like

I had the same problem, but it was resolved.
pip install openai==1.1.1
It was resolved by updating to the latest version.

2 Likes