Skip to content

Commit 4d7fcd9

Browse files
Merge pull request #6012 from nkgami/patch-4
[Azure OpenAI] Clarify Response_Format for gpt-image-1
2 parents 219a800 + a35c6d1 commit 4d7fcd9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 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+
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+
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
@@ -119,6 +138,7 @@ The response from a successful image generation API call looks like the followin
119138
]
120139
}
121140
```
141+
---
122142

123143
### API call rejection
124144

0 commit comments

Comments
 (0)