@@ -14,16 +14,16 @@ class ImageGenerateParamsBase(TypedDict, total=False):
1414 prompt : Required [str ]
1515 """A text description of the desired image(s).
1616
17- The maximum length is 32000 characters for `gpt- image-1` , 1000 characters for
18- `dall-e-2` and 4000 characters for `dall-e-3`.
17+ The maximum length is 32000 characters for the GPT image models , 1000 characters
18+ for `dall-e-2` and 4000 characters for `dall-e-3`.
1919 """
2020
2121 background : Optional [Literal ["transparent" , "opaque" , "auto" ]]
2222 """
2323 Allows to set transparency for the background of the generated image(s). This
24- parameter is only supported for `gpt- image-1` . Must be one of `transparent`,
25- `opaque` or `auto` (default value). When `auto` is used, the model will
26- automatically determine the best background for the image.
24+ parameter is only supported for the GPT image models . Must be one of
25+ `transparent`, ` opaque` or `auto` (default value). When `auto` is used, the
26+ model will automatically determine the best background for the image.
2727
2828 If `transparent`, the output format needs to support transparency, so it should
2929 be set to either `png` (default value) or `webp`.
@@ -32,14 +32,16 @@ class ImageGenerateParamsBase(TypedDict, total=False):
3232 model : Union [str , ImageModel , None ]
3333 """The model to use for image generation.
3434
35- One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a
36- parameter specific to `gpt-image-1` is used.
35+ One of `dall-e-2`, `dall-e-3`, or a GPT image model (`gpt-image-1`,
36+ `gpt-image-1-mini`, `gpt-image-1.5`). Defaults to `dall-e-2` unless a parameter
37+ specific to the GPT image models is used.
3738 """
3839
3940 moderation : Optional [Literal ["low" , "auto" ]]
40- """Control the content-moderation level for images generated by `gpt-image-1`.
41-
42- Must be either `low` for less restrictive filtering or `auto` (default value).
41+ """
42+ Control the content-moderation level for images generated by the GPT image
43+ models. Must be either `low` for less restrictive filtering or `auto` (default
44+ value).
4345 """
4446
4547 n : Optional [int ]
@@ -51,14 +53,14 @@ class ImageGenerateParamsBase(TypedDict, total=False):
5153 output_compression : Optional [int ]
5254 """The compression level (0-100%) for the generated images.
5355
54- This parameter is only supported for `gpt- image-1` with the `webp` or `jpeg`
55- output formats, and defaults to 100.
56+ This parameter is only supported for the GPT image models with the `webp` or
57+ `jpeg` output formats, and defaults to 100.
5658 """
5759
5860 output_format : Optional [Literal ["png" , "jpeg" , "webp" ]]
5961 """The format in which the generated images are returned.
6062
61- This parameter is only supported for `gpt- image-1` . Must be one of `png`,
63+ This parameter is only supported for the GPT image models . Must be one of `png`,
6264 `jpeg`, or `webp`.
6365 """
6466
@@ -78,7 +80,7 @@ class ImageGenerateParamsBase(TypedDict, total=False):
7880
7981 - `auto` (default value) will automatically select the best quality for the
8082 given model.
81- - `high`, `medium` and `low` are supported for `gpt- image-1` .
83+ - `high`, `medium` and `low` are supported for the GPT image models .
8284 - `hd` and `standard` are supported for `dall-e-3`.
8385 - `standard` is the only option for `dall-e-2`.
8486 """
@@ -88,8 +90,8 @@ class ImageGenerateParamsBase(TypedDict, total=False):
8890 returned.
8991
9092 Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the
91- image has been generated. This parameter isn't supported for `gpt-image-1` which
92- will always return base64-encoded images.
93+ image has been generated. This parameter isn't supported for the GPT image
94+ models, which always return base64-encoded images.
9395 """
9496
9597 size : Optional [
@@ -98,7 +100,7 @@ class ImageGenerateParamsBase(TypedDict, total=False):
98100 """The size of the generated images.
99101
100102 Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or
101- `auto` (default value) for `gpt- image-1` , one of `256x256`, `512x512`, or
103+ `auto` (default value) for the GPT image models , one of `256x256`, `512x512`, or
102104 `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792`
103105 for `dall-e-3`.
104106 """
@@ -126,7 +128,7 @@ class ImageGenerateParamsNonStreaming(ImageGenerateParamsBase, total=False):
126128
127129 Defaults to `false`. See the
128130 [Image generation guide](https://platform.openai.com/docs/guides/image-generation)
129- for more information. This parameter is only supported for `gpt- image-1` .
131+ for more information. This parameter is only supported for the GPT image models .
130132 """
131133
132134
@@ -136,7 +138,7 @@ class ImageGenerateParamsStreaming(ImageGenerateParamsBase):
136138
137139 Defaults to `false`. See the
138140 [Image generation guide](https://platform.openai.com/docs/guides/image-generation)
139- for more information. This parameter is only supported for `gpt- image-1` .
141+ for more information. This parameter is only supported for the GPT image models .
140142 """
141143
142144
0 commit comments