Skip to content

Commit e5dafbb

Browse files
committed
fix output format
1 parent 8c4c5e5 commit e5dafbb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

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

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,25 @@ The following is a sample request body. You specify a number of options, defined
106106

107107
### Output
108108

109+
#### [GPT-image-1](#tab/gpt-image-1)
110+
111+
112+
The response from a successful image generation API call looks like the following example. The `b64_json` field contains the output image data.
113+
114+
```json
115+
{
116+
"created": 1698116662,
117+
"data": [
118+
{
119+
"b64_json": "<base64 image data>"
120+
}
121+
]
122+
}
123+
```
124+
125+
#### [DALL-E 3](#tab/dalle-3)
126+
127+
109128
The response from a successful image generation 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.
110129

111130
```json
@@ -120,6 +139,8 @@ The response from a successful image generation API call looks like the followin
120139
}
121140
```
122141

142+
---
143+
123144
### API call rejection
124145

125146
Prompts and images are filtered based on our content policy, returning an error when a prompt or image is flagged.
@@ -291,8 +312,7 @@ The response from a successful image editing API call looks like the following e
291312
"created": 1698116662,
292313
"data": [
293314
{
294-
"b64_json": "<base64 image data>",
295-
"revised_prompt": "<prompt_that_was_used>"
315+
"b64_json": "<base64 image data>"
296316
}
297317
]
298318
}

0 commit comments

Comments
 (0)