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
| Size | Specifies the size of generated images. Square images generate faster. | `1024x1024` (default), `1792x1024`, `1024x1792` |
170
-
| Style | DALL-E 3 offers two style options. The natural style is more similar to the default style of older models, while the vivid style generates more hyper-real and cinematic images. </br></br>The natural style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic. | `natural`, `vivid` (default) |
171
-
| Quality | Controls image quality. `hd` has finer details and better consistency; `standard` is faster. | `hd`, `standard` (default) |
172
-
| Number (`n`) | Must be set to 1 for DALL-E 3. To get multiple images, make parallel requests. | `1` |
173
-
| Response format | Format for the returned images. Default is `url`. | `url`, `b64_json`|
174
-
-->
175
-
176
-
#### Size
177
-
178
-
Specify the size of the generated images. Must be one of `1024x1024`, `1792x1024`, or `1024x1792` for DALL-E 3 models. Square images are faster to generate.
179
-
180
-
#### Style
181
-
182
-
DALL-E 3 offers two style options: `natural` and `vivid`. The natural style is more similar to the default style of older models, while the vivid style generates more hyper-real and cinematic images.
183
-
184
-
The natural style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic.
185
-
186
-
The default value is `vivid`.
187
-
188
-
#### Quality
189
-
190
-
There are two options for image quality: `hd` and `standard`. The hd option creates images with finer details and greater consistency across the image. Standard images can be generated faster.
191
-
192
-
The default value is `standard`.
193
-
194
-
#### Number
195
-
196
-
With DALL-E 3, you can't generate more than one image in a single API call: the `n` parameter must be set to *1*. If you need to generate multiple images at once, make parallel requests.
197
-
198
-
#### Response format
199
-
200
-
The format in which the generated images are returned. Must be one of `url` (a URL pointing to the image) or `b64_json` (the base 64-byte code in JSON format). The default is `url`.
201
164
202
165
#### [GPT-image-1](#tab/gpt-image-1)
203
166
@@ -236,6 +199,45 @@ Use the *output_format* parameter to specify the format of the generated image.
236
199
237
200
Use the *output_compression* parameter to specify the compression level for the generated image. Input an integer between `0` and `100`, where `0` is no compression and `100` is maximum compression. The default is `100`.
| Size | Specifies the size of generated images. Square images generate faster. | `1024x1024` (default), `1792x1024`, `1024x1792` |
209
+
| Style | DALL-E 3 offers two style options. The natural style is more similar to the default style of older models, while the vivid style generates more hyper-real and cinematic images. </br></br>The natural style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic. | `natural`, `vivid` (default) |
210
+
| Quality | Controls image quality. `hd` has finer details and better consistency; `standard` is faster. | `hd`, `standard` (default) |
211
+
| Number (`n`) | Must be set to 1 for DALL-E 3. To get multiple images, make parallel requests. | `1` |
212
+
| Response format | Format for the returned images. Default is `url`. | `url`, `b64_json`|
213
+
-->
214
+
215
+
#### Size
216
+
217
+
Specify the size of the generated images. Must be one of `1024x1024`, `1792x1024`, or `1024x1792` for DALL-E 3 models. Square images are faster to generate.
218
+
219
+
#### Style
220
+
221
+
DALL-E 3 offers two style options: `natural` and `vivid`. The natural style is more similar to the default style of older models, while the vivid style generates more hyper-real and cinematic images.
222
+
223
+
The natural style is useful in cases where DALL-E 3 over-exaggerates or confuses a subject that's meant to be more simple, subdued, or realistic.
224
+
225
+
The default value is `vivid`.
226
+
227
+
#### Quality
228
+
229
+
There are two options for image quality: `hd` and `standard`. The hd option creates images with finer details and greater consistency across the image. Standard images can be generated faster.
230
+
231
+
The default value is `standard`.
232
+
233
+
#### Number
234
+
235
+
With DALL-E 3, you can't generate more than one image in a single API call: the `n` parameter must be set to *1*. If you need to generate multiple images at once, make parallel requests.
236
+
237
+
#### Response format
238
+
239
+
The format in which the generated images are returned. Must be one of `url` (a URL pointing to the image) or `b64_json` (the base 64-byte code in JSON format). The default is `url`.
240
+
239
241
---
240
242
241
243
## Call the Image Edit API
@@ -279,8 +281,6 @@ The following is a sample request body. You specify a number of options, defined
279
281
}
280
282
```
281
283
282
-
The `"image"` string can be either a URL to an image file, or base 64-encoded image data.
283
-
284
284
### Output
285
285
286
286
The response from a successful image editing 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.
@@ -301,14 +301,19 @@ The response from a successful image editing API call looks like the following e
301
301
302
302
The following API body parameters are available for image editing models, in addition to the ones available for image generation models.
303
303
304
+
### Image
305
+
306
+
The *image* value indicates the image file you want to edit. It can be either a URL string to an image file, or base 64-encoded image data.
307
+
308
+
304
309
#### Mask
305
310
306
311
The *mask* parameter is the same type as the main *image* input parameter. It defines the area of the image that you want the model to change, using fully transparent pixels (alpha of zero) in those areas. The mask can be a URL or base 64-encoded image data. It must be a PNG file and have the same dimensions as the image.
307
312
308
313
309
314
#### [DALL-E 3](#tab/dalle-3)
310
315
311
-
The DALL-E models don't support the Image Edit API.
0 commit comments