You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/dall-e-python.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: 'Quickstart: Use Azure OpenAI Service image generation with the Python SDK'
2
+
title: 'Quickstart: Generate images with the Python SDK for Azure OpenAI Service'
3
3
titleSuffix: Azure OpenAI Service
4
-
description: Learn how to get started with Azure OpenAI image generation by using the Python SDK.
4
+
description: Learn how to generate images with Azure OpenAI Service by using the Python SDK and the endpoint and access keys for your Azure OpenAI resource.
5
5
services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: cognitive-services
@@ -20,10 +20,12 @@ Use this guide to get started calling the Azure OpenAI Service image generation
20
20
21
21
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
22
22
- Access granted to DALL-E in the desired Azure subscription.
23
-
Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
24
23
-[Python 3.7.1 or later version](https://www.python.org/).
25
-
- The following Python libraries: os, requests, json.
26
-
- An Azure OpenAI resource created in the East US region. For more information about model deployment, see the [resource deployment guide](../how-to/create-resource.md).
24
+
- The following Python libraries: `os`, `requests`, `json`.
25
+
- An Azure OpenAI resource created in the East US region. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
26
+
27
+
> [!NOTE]
28
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
27
29
28
30
## Retrieve key and endpoint
29
31
@@ -115,7 +117,7 @@ Create a new Python file named **quickstart.py**. Open the new file in your pref
115
117
116
118
Azure OpenAI stores the output image in the **generated_image.png**filein your specified directory. The script also displays the image in your default image viewer.
117
119
118
-
The image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see the [content filter](../concepts/content-filter.md) article.
120
+
The image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md).
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/dall-e-rest.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: 'Quickstart: Use the Azure OpenAI Service image generation REST APIs'
2
+
title: 'Quickstart: Generate images with the REST APIs for Azure OpenAI Service'
3
3
titleSuffix: Azure OpenAI Service
4
-
description: Learn how to get started with Azure OpenAI image generation with the REST API.
4
+
description: Learn how to generate images with Azure OpenAI Service by using the REST APIs and the endpoint and access keys for your Azure OpenAI resource.
5
5
services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: cognitive-services
@@ -20,10 +20,12 @@ Use this guide to get started calling the Azure OpenAI Service image generation
20
20
21
21
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
22
22
- Access granted to DALL-E in the desired Azure subscription.
23
-
Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
24
23
-[Python 3.7.1 or later version](https://www.python.org/).
25
-
- The following Python libraries: os, requests, json.
26
-
- An Azure OpenAI resource created in the East US region. For more information about model deployment, see the [resource deployment guide](../how-to/create-resource.md).
24
+
- The following Python libraries: `os`, `requests`, `json`.
25
+
- An Azure OpenAI resource created in the East US region. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
26
+
27
+
> [!NOTE]
28
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
27
29
28
30
## Retrieve key and endpoint
29
31
@@ -111,7 +113,7 @@ The output from a successful image generation API call looks like the following
111
113
}
112
114
```
113
115
114
-
The image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see the [content filter](../concepts/content-filter.md) article.
116
+
The image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md).
115
117
116
118
The system returns an operation status of `Failed`and the `error.code` value in the message isset to `contentFilter`. Here's an example:
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/dall-e-studio.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: 'Quickstart: Use Azure OpenAI Service image generation in Azure OpenAI Studio'
2
+
title: 'Quickstart: Generate images with Azure OpenAI Service and Azure OpenAI Studio'
3
3
titleSuffix: Azure OpenAI
4
-
description: Learn how to get started with Azure OpenAI image generation in Azure OpenAI Studio.
4
+
description: Learn how to generate images with Azure OpenAI Service in the DALL-E playground (Preview) in Azure OpenAI Studio.
5
5
services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: cognitive-services
@@ -20,8 +20,10 @@ Use this guide to get started generating images with Azure OpenAI in your browse
20
20
21
21
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
22
22
- Access granted to DALL-E in the desired Azure subscription.
23
-
Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
24
-
- An Azure OpenAI resource created in the East US region. For more information about model deployment, see the [resource deployment guide](../how-to/create-resource.md).
23
+
- An Azure OpenAI resource created in the East US region. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
24
+
25
+
> [!NOTE]
26
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access). Existing Azure OpenAI customers need to resubmit the form to receive access to DALL-E. If you need assistance, open an issue on this repo to contact Microsoft.
25
27
26
28
## Go to Azure OpenAI Studio
27
29
@@ -31,14 +33,14 @@ From the Azure OpenAI Studio landing page, select **DALL·E playground (Preview)
31
33
32
34
## Try out image generation
33
35
34
-
Start exploring Azure OpenAI capabilities with a no-code approach through the DALL·E (Preview) playground. Enter your image prompt into the text box and select **Generate**. When the AI-generated image is ready, it appears on the page.
36
+
Start exploring Azure OpenAI capabilities with a no-code approach through the **DALL·E playground (Preview)**. Enter your image prompt into the text box and select **Generate**. When the AI-generated image is ready, it appears on the page.
35
37
36
38
> [!NOTE]
37
-
> The image generation APIs come with a content moderation filter. If Azure OpenAI recognizes your prompt as harmful content, it doesn't return a generated image. For more information, see the [content filter](../concepts/content-filter.md) guide.
39
+
> The image generation APIs come with a content moderation filter. If Azure OpenAI recognizes your prompt as harmful content, it doesn't return a generated image. For more information, see [Content filtering](../concepts/content-filter.md).
38
40
39
-
:::image type="content" source="../media/quickstarts/dall-e-studio.png" alt-text="Screenshot of the Azure OpenAI Studio landing page showing the DALL·E (Preview) playground with generated images of polar bears." lightbox="../media/quickstarts/dall-e-studio.png":::
41
+
:::image type="content" source="../media/quickstarts/dall-e-studio.png" alt-text="Screenshot of the Azure OpenAI Studio landing page showing the DALL-E playground (Preview) with generated images of polar bears." lightbox="../media/quickstarts/dall-e-studio.png":::
40
42
41
-
In the DALL·E (Preview) playground, you can also view Python and cURL code samples, which are prefilled according to your settings. Select **View code** near the top of the page. You can use this code to write an application that completes the same task.
43
+
In the **DALL·E playground (Preview)**, you can also view Python and cURL code samples, which are prefilled according to your settings. Select **View code** near the top of the page. You can use this code to write an application that completes the same task.
0 commit comments