Skip to content

Commit cda3df7

Browse files
Merge pull request #6240 from PatrickFarley/imagen
Imagen
2 parents afa5aeb + f688ab7 commit cda3df7

File tree

4 files changed

+119
-84
lines changed

4 files changed

+119
-84
lines changed

articles/ai-foundry/openai/how-to/dall-e.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ Use the *output_format* parameter to specify the format of the generated image.
218218

219219
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`.
220220

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+
221225

222226
#### [DALL-E 3](#tab/dalle-3)
223227

@@ -263,11 +267,12 @@ The format in which DALL-E 3 generated images are returned. Must be one of `url`
263267

264268
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.
265269

266-
> [!IMPORTANT]
267-
> The input image must be less than 20 MB in size and must be a PNG or JPG file.
268270

269271
#### [GPT-image-1](#tab/gpt-image-1)
270272

273+
> [!IMPORTANT]
274+
> The input image must be less than 50 MB in size and must be a PNG or JPG file.
275+
271276
Send a POST request to:
272277

273278
```
@@ -326,11 +331,20 @@ The following API body parameters are available for image editing models, in add
326331

327332
The *image* value indicates the image file you want to edit.
328333

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+
329340

330341
#### Mask
331342

332343
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.
333344

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).
334348

335349
#### [DALL-E 3](#tab/dalle-3)
336350

0 commit comments

Comments
 (0)