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-37Lines changed: 38 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,43 +71,6 @@ The following is a sample request body. You specify a number of options, defined
71
71
}
72
72
```
73
73
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
@@ -182,8 +145,46 @@ The response from a successful image generation API call looks like the followin
182
145
]
183
146
}
184
147
```
148
+
185
149
---
186
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
0 commit comments