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
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,8 +71,6 @@ The following is a sample request body. You specify a number of options, defined
71
71
}
72
72
```
73
73
74
-
75
-
76
74
#### [DALL-E 3](#tab/dalle-3)
77
75
78
76
Send a POST request to:
@@ -147,8 +145,46 @@ The response from a successful image generation API call looks like the followin
147
145
]
148
146
}
149
147
```
148
+
150
149
---
151
150
151
+
### Streaming
152
+
153
+
You can stream image generation requests to `gpt-image-1` by setting the `stream` parameter to `true`, and setting the `partial_images` parameter to a value between 0 and 3.
154
+
155
+
```python
156
+
from openai import OpenAI
157
+
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
Copy file name to clipboardExpand all lines: articles/ai-foundry/openai/how-to/responses.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1265,14 +1265,9 @@ Compared to the standalone Image API, the Responses API offers several advantage
1265
1265
***Flexible inputs**: Accept image File IDs as inputs, in addition to raw image bytes.
1266
1266
1267
1267
> [!NOTE]
1268
-
> The image generation tool in the Responses APIis only supported by the `gpt-image-1` model. You can however call this model from this list of supported models -`gpt-4o`, `gpt-4o-mini`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `o3`.
1268
+
> The image generation tool in the Responses APIis only supported by the `gpt-image-1` model. You can however call this model from this list of supported models -`gpt-4o`, `gpt-4o-mini`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `o3`, and`gpt-5` series models.<br><br>The Responses API image generation tool does not currently support streaming mode. To use streaming mode and generate partial images, call the [image generation API](./dall-e.md) directly outside of the Responses API.
0 commit comments