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
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,25 @@ The following is a sample request body. You specify a number of options, defined
106
106
107
107
### Output
108
108
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
+
109
128
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.
110
129
111
130
```json
@@ -120,6 +139,8 @@ The response from a successful image generation API call looks like the followin
120
139
}
121
140
```
122
141
142
+
---
143
+
123
144
### API call rejection
124
145
125
146
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
0 commit comments