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-foundry/openai/how-to/dall-e.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,10 @@ Use the *output_format* parameter to specify the format of the generated image.
218
218
219
219
Use the *output_compression* parameter to specify the compression level for the generated image. Input an integer between `0` and `100`, where `0` is no compression and `100` is maximum compression. The default is `100`.
220
220
221
+
#### Streaming
222
+
223
+
Use the *stream* parameter to enable streaming responses. When set to `true`, the API returns partial images as they are generated. This provides faster visual feedback for users and improves perceived latency. Set the *partial_images* parameter to control how many partial images are generated (1-3).
224
+
221
225
222
226
#### [DALL-E 3](#tab/dalle-3)
223
227
@@ -263,11 +267,12 @@ The format in which DALL-E 3 generated images are returned. Must be one of `url`
263
267
264
268
The Image Edit API allows you to modify existing images based on text prompts you provide. The API call is similar to the image generation API call, but you also need to provide an input image.
265
269
266
-
> [!IMPORTANT]
267
-
> The input image must be less than 20 MB in size and must be a PNG or JPG file.
268
270
269
271
#### [GPT-image-1](#tab/gpt-image-1)
270
272
273
+
> [!IMPORTANT]
274
+
> The input image must be less than 50 MB in size and must be a PNG or JPG file.
275
+
271
276
Send a POST request to:
272
277
273
278
```
@@ -326,11 +331,20 @@ The following API body parameters are available for image editing models, in add
326
331
327
332
The *image* value indicates the image file you want to edit.
328
333
334
+
#### Input fidelity
335
+
336
+
The *input_fidelity* parameter controls how much effort the model will exert to match the style and features, especially facial features, of input images
337
+
338
+
This allows you to make subtle edits to an image without altering unrelated areas. When you use high input fidelity, faces are preserved more accurately than in standard mode.
339
+
329
340
330
341
#### Mask
331
342
332
343
The *mask* parameter is the same type as the main *image* input parameter. It defines the area of the image that you want the model to edit, using fully transparent pixels (alpha of zero) in those areas. The mask must be a PNG file and have the same dimensions as the input image.
333
344
345
+
#### Streaming
346
+
347
+
Use the *stream* parameter to enable streaming responses. When set to `true`, the API returns partial images as they are generated. This provides faster visual feedback for users and improves perceived latency. Set the *partial_images* parameter to control how many partial images are generated (1-3).
0 commit comments