Skip to content

Commit 0c44ae4

Browse files
committed
fix tab order
1 parent 0103e78 commit 0c44ae4

File tree

1 file changed

+45
-40
lines changed

1 file changed

+45
-40
lines changed

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

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -161,43 +161,6 @@ When you write prompts, consider that the image generation APIs come with a cont
161161

162162
The following API body parameters are available for image generation models.
163163

164-
#### [DALL-E 3](#tab/dalle-3)
165-
166-
<!--
167-
| Parameter Name | Description | Values |
168-
|------------------|-------------|--------------------------|
169-
| 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`.
201164

202165
#### [GPT-image-1](#tab/gpt-image-1)
203166

@@ -236,6 +199,45 @@ Use the *output_format* parameter to specify the format of the generated image.
236199

237200
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`.
238201

202+
203+
#### [DALL-E 3](#tab/dalle-3)
204+
205+
<!--
206+
| Parameter Name | Description | Values |
207+
|------------------|-------------|--------------------------|
208+
| 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+
239241
---
240242

241243
## Call the Image Edit API
@@ -279,8 +281,6 @@ The following is a sample request body. You specify a number of options, defined
279281
}
280282
```
281283

282-
The `"image"` string can be either a URL to an image file, or base 64-encoded image data.
283-
284284
### Output
285285

286286
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
301301

302302
The following API body parameters are available for image editing models, in addition to the ones available for image generation models.
303303

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+
304309
#### Mask
305310

306311
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.
307312

308313

309314
#### [DALL-E 3](#tab/dalle-3)
310315

311-
The DALL-E models don't support the Image Edit API.
316+
DALL-E models don't support the Image Edit API.
312317

313318
---
314319

0 commit comments

Comments
 (0)