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
+20Lines changed: 20 additions & 0 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
+
The response from a successful image generation API call looks like the following example. The `b64_json` field contains the output image data.
112
+
113
+
```json
114
+
{
115
+
"created": 1698116662,
116
+
"data": [
117
+
{
118
+
"b64_json": "<base64 image data>"
119
+
}
120
+
]
121
+
}
122
+
```
123
+
> [!NOTE]
124
+
> `response_format` parameter is not supported for GPT-image-1 which always returns base64-encoded images.
125
+
126
+
#### [DALL-E 3](#tab/dalle-3)
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
@@ -119,6 +138,7 @@ The response from a successful image generation API call looks like the followin
0 commit comments