The request of DALL-E API returns 'notRunning' status

Ivan Huo 0 Reputation points
2023-06-25T03:40:35.2633333+00:00

I just made a request of the DALL-E api to generate the image, but the API returned as below. How to solve it?

Request:

{
    "prompt":"A beautiful sea in blue",
    "size":"256x256",
    "n":1
}

Response:

{
    "id": "afe7d275-a64d-4d44-84ea-133deacc681a",
    "status": "notRunning"
}
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,098 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oliver Lu 6 Reputation points
    2023-08-05T05:01:16.0933333+00:00

    @Ivan Huo

    1. using DALL-E api to send 1st request and get the status (notRunning) and operation_id.
    2. send 2nd request using this operation_id.

    GET {endpoint}/openai/operations/images/{operation-id}?api-version=2023-06-01-preview -h content-type: xxx -h api-key: xxx

    1. 2nd response will have status (succeeded) and url (image).
    2. replace \u0026 with &
    1 person found this answer helpful.

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.