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
-`<your_resource_name>` is the name of your Azure OpenAI resource.
52
52
-`<your_deployment_name>` is the name of your DALL-E 3 model deployment.
53
-
-`<api_version>` is the version of the API you want to use. For example, *2024-02-01*.
53
+
-`<api_version>` is the version of the API you want to use. For example, `2024-02-01`.
54
54
55
55
**Required headers**:
56
56
-`Content-Type`: `application/json`
@@ -119,7 +119,7 @@ GET https://<your_resource_name>.openai.azure.com/openai/operations/images/<oper
119
119
**Replace the following placeholders**:
120
120
-`<your_resource_name>` is the name of your Azure OpenAI resource.
121
121
-`<operation_id>` is the ID of the operation returned in the previous step.
122
-
-`<api_version>` is the version of the API you want to use. For example, *2023-06-01-preview*.
122
+
-`<api_version>` is the version of the API you want to use. For example, `2023-06-01-preview`.
123
123
124
124
**Required headers**:
125
125
-`Content-Type`: `application/json`
@@ -175,7 +175,7 @@ The output from a successful image generation API call looks like the following
175
175
176
176
Prompts and images are filtered based on our content policy, returning an error when a prompt or image is flagged.
177
177
178
-
If your prompt is flagged, the `error.code` value in the message is set to *contentFilter*. Here's an example:
178
+
If your prompt is flagged, the `error.code` value in the message is set to `contentFilter`. Here's an example:
179
179
180
180
#### [DALL-E 3](#tab/dalle3)
181
181
@@ -264,35 +264,35 @@ The following API body parameters are available for DALL-E image generation.
264
264
265
265
### Size
266
266
267
-
Specify the size of the generated images. Must be one of *1024x1024*, *1792x1024*, or *1024x1792* for DALL-E 3 models. Square images are faster to generate.
267
+
Specify the size of the generated images. Must be one of `1024x1024`, `1792x1024`, or `1024x1792` for DALL-E 3 models. Square images are faster to generate.
268
268
269
269
### Style
270
270
271
-
DALL-E 3 introduces two style options: *natural* and *vivid*. The *natural* style is more similar to the DALL-E 2 default style, while the *vivid* style generates more hyper-real and cinematic images.
271
+
DALL-E 3 introduces two style options: `natural` and `vivid`. The natural style is more similar to the DALL-E 2 default style, while the vivid style generates more hyper-real and cinematic images.
272
272
273
-
The *natural* style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic.
273
+
The natural style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic.
274
274
275
-
The default value is *vivid*.
275
+
The default value is `vivid`.
276
276
277
277
### Quality
278
278
279
-
There are two options for image quality: *hd* and *standard*. The *hd* option creates images with finer details and greater consistency across the image. *Standard* images can be generated faster.
279
+
There are two options for image quality: `hd` and `standard`. The hd option creates images with finer details and greater consistency across the image. Standard images can be generated faster.
280
280
281
-
The default value is *standard*.
281
+
The default value is `standard`.
282
282
283
283
### Number
284
284
285
285
With DALL-E 3, you can't generate more than one image in a single API call: the `n` parameter must be set to *1*. If you need to generate multiple images at once, make parallel requests.
286
286
287
287
### Response format
288
288
289
-
The format in which the generated images are returned. Must be one of *url* (a URL pointing to the image) or *b64_json* (the base 64-byte code in JSON format). The default is *url*.
289
+
The format in which the generated images are returned. Must be one of `url` (a URL pointing to the image) or `b64_json` (the base 64-byte code in JSON format). The default is `url`.
290
290
291
291
#### [DALL-E 2 (preview)](#tab/dalle2)
292
292
293
293
### Size
294
294
295
-
Specify the size of the generated images. Must be one of *256x256*, *512x512*, or *1024x1024* for DALL-E 2 models.
295
+
Specify the size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024` for DALL-E 2 models.
0 commit comments