How to access dall-e model using the new openai api

bharath 0 Reputation points
2023-12-04T07:59:53.5133333+00:00

While using the new OpenAI library version 1.3.7 and AzureOpenAI object what should be passed for the model name in the request below? Dall-E is already deployed by Azure OpenAI .Did that change?

response = client.images.generate(
    model="dalle3",
    prompt="Programmer on the moon",
    n=3,
    size="1024x1024",
)
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2023-12-04T13:02:24.87+00:00

    bharath Greetings & Welcome to Microsoft Q&A forum!

    While using the new OpenAI library version 1.3.7 and AzureOpenAI object what should be passed for the model name in the request below? Dall-E is already deployed by Azure OpenAI .Did that change?

    You need to use the deployment name you chose when you deployed the DALL-E 3 model.
    Glad to hear that you have found An Azure OpenAI resource should be created in the SwedenCentral region.

    Same has been mentioned in the Prerequisites as well.

    User's image

    is EDIT image supported from APIs?

    Please note that DALL-E does not support inpainting/editing at this time. Currently, we only support the image generations API. Also, we do not have any exact ETA to share at this time.

    Thanks for understanding.

    Hope this helps. Do let me know if you have any further queries.


    If the response helped, please do click Accept Answer and Yes for was this answer helpful.

    Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.