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
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ Use this guide to get started calling the Azure OpenAI Service image generation
18
18
19
19
## Prerequisites
20
20
21
-
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
21
+
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/ai-services&preserve-view=true).
22
22
- Access granted to DALL-E in the desired Azure subscription.
23
-
-[Python 3.7.1 or later version](https://www.python.org/).
23
+
-[Python 3.7.1 or later version](https://www.python.org/&preserve-view=true).
24
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).
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&preserve-view=true).
26
26
27
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.
28
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access&preserve-view=true). 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.
29
29
30
30
## Retrieve key and endpoint
31
31
@@ -103,7 +103,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
103
103
```
104
104
105
105
> [!IMPORTANT]
106
-
> Remember to remove the key from your code when you're done, and never post your key publicly. For production, use a secure way of storing and accessing your credentials. For more information, see [Azure Key Vault](../../../key-vault/general/overview.md).
106
+
> Remember to remove the key from your code when you're done, and never post your key publicly. For production, use a secure way of storing and accessing your credentials. For more information, see [Azure Key Vault](../../../key-vault/general/overview.md&preserve-view=true).
107
107
108
108
1. Run the application with the `python` command:
109
109
@@ -117,16 +117,16 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
117
117
118
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.
119
119
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).
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&preserve-view=true).
121
121
122
122
## Clean up resources
123
123
124
124
If you want to clean up and remove an Azure OpenAI resource, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/dall-e-rest.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ Use this guide to get started calling the Azure OpenAI Service image generation
18
18
19
19
## Prerequisites
20
20
21
-
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
21
+
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/ai-services&preserve-view=true).
22
22
- Access granted to DALL-E in the desired Azure subscription.
23
-
-[Python 3.7.1 or later version](https://www.python.org/).
23
+
-[Python 3.7.1 or later version](https://www.python.org/&preserve-view=true).
24
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).
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&preserve-view=true).
26
26
27
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.
28
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access&preserve-view=true). 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.
29
29
30
30
## Retrieve key and endpoint
31
31
@@ -81,7 +81,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
81
81
```
82
82
83
83
> [!IMPORTANT]
84
-
> Remember to remove the key from your code when you're done, and never post your key publicly. For production, use a secure way of storing and accessing your credentials. For more information, see [Azure Key Vault](../../../key-vault/general/overview.md).
84
+
> Remember to remove the key from your code when you're done, and never post your key publicly. For production, use a secure way of storing and accessing your credentials. For more information, see [Azure Key Vault](../../../key-vault/general/overview.md&preserve-view=true).
85
85
86
86
1. Run the application with the `python` command:
87
87
@@ -113,7 +113,7 @@ The output from a successful image generation API call looks like the following
113
113
}
114
114
```
115
115
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).
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&preserve-view=true).
117
117
118
118
The system returns an operation status of `Failed`and the `error.code` value in the message isset to `contentFilter`. Here's an example:
119
119
@@ -156,10 +156,10 @@ It's also possible that the generated image itself is filtered. In this case, th
156
156
157
157
If you want to clean up and remove an Azure OpenAI resource, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
Copy file name to clipboardExpand all lines: articles/ai-services/openai/includes/dall-e-studio.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,16 @@ Use this guide to get started generating images with Azure OpenAI in your browse
18
18
19
19
## Prerequisites
20
20
21
-
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/cognitive-services).
21
+
- An Azure subscription. You can [create a free account](https://azure.microsoft.com/free/ai-services&preserve-view=true).
22
22
- Access granted to DALL-E in the desired Azure subscription.
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).
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&preserve-view=true).
24
24
25
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.
26
+
> Currently, you must submit an application to access Azure OpenAI Service. To apply for access, complete [this form](https://aka.ms/oai/access&preserve-view=true). 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
27
28
28
## Go to Azure OpenAI Studio
29
29
30
-
To access Azure OpenAI Studio, browse to https://oai.azure.com/ and sign in with the credentials associated with your Azure OpenAI resource. During or after the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.
30
+
Browse to [Azure OpenAI Studio](https://oai.azure.com/&preserve-view=true) and sign in with the credentials associated with your Azure OpenAI resource. During or after the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.
31
31
32
32
From the Azure OpenAI Studio landing page, select **DALL·E playground (Preview)** to use the image generation APIs.
33
33
@@ -36,7 +36,7 @@ From the Azure OpenAI Studio landing page, select **DALL·E playground (Preview)
36
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.
37
37
38
38
> [!NOTE]
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).
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&preserve-view=true).
40
40
41
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":::
42
42
@@ -46,10 +46,10 @@ In the **DALL·E playground (Preview)**, you can also view Python and cURL code
46
46
47
47
If you want to clean up and remove an Azure OpenAI resource, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
0 commit comments