Skip to content

Commit 8a6a2ea

Browse files
authored
[Azure OpenAI] Clarify Response_Format for gpt-image-1
As discussed in MicrosoftDocs/azure-ai-docs-pr#4365, Response_Format is not supported for gpt-image-1. But current documentation is still confusing and needs more clarification for output to explain response_format parameter is not supported for GPT-image-1 which always returns base64-encoded images.
1 parent 73b3774 commit 8a6a2ea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 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

0 commit comments

Comments
 (0)