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
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,42 @@ The following is a sample request body. You specify a number of options, defined
71
71
}
72
72
```
73
73
74
-
74
+
### Streaming
75
+
76
+
You can stream image generation requests by setting the `stream` parameter to `true`, and setting the `partial_images` parameter to a value between 0 and 3.
77
+
78
+
```python
79
+
from openai import OpenAI
80
+
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