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/how-to/dall-e.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,14 +284,14 @@ The following is a sample request body. You specify a number of options, defined
284
284
285
285
### Output
286
286
287
-
The response from a successful image editing API call looks like the following example. The `url` field contains a URL where you can download the generated image. The URL stays active for 24 hours.
287
+
The response from a successful image editing API call looks like the following example. The `b64_json` field contains the output image data.
288
288
289
289
```json
290
290
{
291
291
"created": 1698116662,
292
292
"data": [
293
293
{
294
-
"url": "<URL_to_generated_image>",
294
+
"b64_json": "<base64 image data>",
295
295
"revised_prompt": "<prompt_that_was_used>"
296
296
}
297
297
]
@@ -304,12 +304,12 @@ The following API body parameters are available for image editing models, in add
304
304
305
305
### Image
306
306
307
-
The *image* value indicates the image file you want to edit. It can be either a URL string to an image file, or base 64-encoded image data.
307
+
The *image* value indicates the image file you want to edit.
308
308
309
309
310
310
#### Mask
311
311
312
-
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 base 64-encoded image. It must be a PNG file and have the same dimensions as the input image.
312
+
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.
0 commit comments