Skip to content

Commit 941c2db

Browse files
committed
update types
1 parent 1c3db68 commit 941c2db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ The following is a sample request body. You specify a number of options, defined
284284

285285
### Output
286286

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.
288288

289289
```json
290290
{
291291
"created": 1698116662,
292292
"data": [
293293
{
294-
"url": "<URL_to_generated_image>",
294+
"b64_json": "<base64 image data>",
295295
"revised_prompt": "<prompt_that_was_used>"
296296
}
297297
]
@@ -304,12 +304,12 @@ The following API body parameters are available for image editing models, in add
304304

305305
### Image
306306

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.
308308

309309

310310
#### Mask
311311

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.
313313

314314

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

0 commit comments

Comments
 (0)