Skip to content

Commit fa67521

Browse files
chore(api): update image-model documentation (#4198)
## Summary Corrects image-edit input documentation to reflect the supported model guidance. ## Changes - Remove GPT Image 1 from supported image-edit model guidance. - Clarify that chatgpt-image-latest uses the same input constraints as GPT image models. - Align shared input-fidelity guidance with the retired model notice. Co-authored-by: jbeckwith-oai <269036200+jbeckwith-oai@users.noreply.github.com>
1 parent 8ecb487 commit fa67521

13 files changed

Lines changed: 95 additions & 95 deletions

‎.castiron.stats.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: 1
2-
generation_id: 66c33b8f-b104-40d5-882f-9e511b4c0f84
3-
openapi_spec_hash: 2c78c708cab402e8904f555026c78020
4-
openapi_transformed_spec_hash: 078e0a8b0fbf06b663d2a310567695ce
5-
config_hash: e901e1843aa6ac7c3816ad65338289ac
6-
codegen_sha: 3f98cde2ae19fc412a1425b432a34c789a42f3cc
7-
codegen_hash: 1408cfa777ed0a695f6a9a7585f15457a30078e5a4518b18e7589f59e81153a2
2+
generation_id: 118ddabe-fe6b-4298-945e-8c6620ca6518
3+
openapi_spec_hash: ef2dda1aa7b22009e708e923f2d16671
4+
openapi_transformed_spec_hash: 9c2476b34fc1bd1f07ca1c9353122b55
5+
config_hash: 0e042fd083471fc089bcbfe7011a7d01
6+
codegen_sha: 9296df390e1dc6119238e97fd60cd3b5cf6a86ac
7+
codegen_hash: 97a6b18a5145df17893b2cb178d490c1fa4f075cd46b022e8439b29a6df3c979

‎api_reference/openapi.transformed.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44052,12 +44052,12 @@ components:
4405244052
description: |
4405344053
The image(s) to edit. Must be a supported image file or an array of images.
4405444054

44055-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
44055+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`,
4405644056
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
44057-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
44058-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image
44059-
should be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to
44060-
16 images.
44057+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
44058+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or `jpg`
44059+
file less than 50MB. You can provide up to 16 images. `chatgpt-image-latest`
44060+
follows the same input constraints as GPT image models.
4406144061
x-oaiMeta:
4406244062
exampleFilePath: otter.png
4406344063
prompt:
@@ -76160,7 +76160,7 @@ components:
7616076160
enum:
7616176161
- high
7616276162
- low
76163-
description: Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
76163+
description: Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
7616476164
LocalShellToolParam:
7616576165
properties:
7616676166
type:
@@ -98940,7 +98940,7 @@ components:
9894098940
enum:
9894198941
- high
9894298942
- low
98943-
description: Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
98943+
description: Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
9894498944
BetaProgrammaticToolCallingParam:
9894598945
properties:
9894698946
type:

‎scripts/castiron/generated-files.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@
543543
},
544544
"src/openai/resources/images.py": {
545545
"mode": "100644",
546-
"sha256": "d823e781dc30e74f363760c90a245ba75ae28293514495087239774ecace40c3"
546+
"sha256": "51249a721473cb85820b9818ab9bc86db6a67dafec38c37d5fff937914738acf"
547547
},
548548
"src/openai/resources/live/__init__.py": {
549549
"mode": "100644",
@@ -3043,11 +3043,11 @@
30433043
},
30443044
"src/openai/types/beta/beta_response_tool_search_output_item_param.py": {
30453045
"mode": "100644",
3046-
"sha256": "626950ea43730bce9543c96bebce1718fd3ccdf303c77f31a4672673fa13121a"
3046+
"sha256": "42877c73a1ea330066a250a6956d4ffd0aa852552ccb443b5c3027fd6857aa13"
30473047
},
30483048
"src/openai/types/beta/beta_response_tool_search_output_item_param_param.py": {
30493049
"mode": "100644",
3050-
"sha256": "7920227dd83b05caaed0b1722cdb602c1c446ba9089d8ca8628f2afacb1b6b3a"
3050+
"sha256": "a112f6bc0d8ad99ffd4446574867e7b80562b274e9b3eb9fce37ba93df3114d7"
30513051
},
30523052
"src/openai/types/beta/beta_response_usage.py": {
30533053
"mode": "100644",
@@ -3091,7 +3091,7 @@
30913091
},
30923092
"src/openai/types/beta/beta_tool.py": {
30933093
"mode": "100644",
3094-
"sha256": "b2113bfb482d18476f20a1634735a99a7cdbeecd621737920445041ce1d8d0d4"
3094+
"sha256": "72db599a0dbee47b7db58d1d3644af3a831e0745b88eb2690a1ad08b727e1977"
30953095
},
30963096
"src/openai/types/beta/beta_tool_choice_allowed.py": {
30973097
"mode": "100644",
@@ -3155,7 +3155,7 @@
31553155
},
31563156
"src/openai/types/beta/beta_tool_param.py": {
31573157
"mode": "100644",
3158-
"sha256": "516583a14fda3b95fea765a4defb65a40ba9ba2499844dab226c49c552bf9ca7"
3158+
"sha256": "68150a4b840dbcdbe5c4efe018d446930dff904a57c07caf0f04f1d398caf2ec"
31593159
},
31603160
"src/openai/types/beta/beta_tool_search_output_namespace_tool.py": {
31613161
"mode": "100644",
@@ -4523,7 +4523,7 @@
45234523
},
45244524
"src/openai/types/image_edit_params.py": {
45254525
"mode": "100644",
4526-
"sha256": "e6c495ae0269889e18ad6d44bec3855a640ef9d8f916a94cfe4b0967a7b8a739"
4526+
"sha256": "1468e16c7f7bd5bb5827fdfeb7ca5e3906392993dba59abc0d7b5d60751456f0"
45274527
},
45284528
"src/openai/types/image_edit_partial_image_event.py": {
45294529
"mode": "100644",
@@ -6691,11 +6691,11 @@
66916691
},
66926692
"src/openai/types/responses/response_tool_search_output_item_param.py": {
66936693
"mode": "100644",
6694-
"sha256": "d25d614693ca86602106515b1e12f26f55f82282c8ef085a5712ec6d18c4f4cb"
6694+
"sha256": "1b65a676c27102006b69afa0c2d4419280cc018856fdfd7e204419654238dc03"
66956695
},
66966696
"src/openai/types/responses/response_tool_search_output_item_param_param.py": {
66976697
"mode": "100644",
6698-
"sha256": "a1b20bcb2ccb1e074d2a68a4630c424df7a782063f098ab82cb673e3c877f976"
6698+
"sha256": "ee6784cfe2dd285c8ee880e25d50396088d3f1f72c7511ea61d9e92ca1d5cbf7"
66996699
},
67006700
"src/openai/types/responses/response_usage.py": {
67016701
"mode": "100644",
@@ -6739,7 +6739,7 @@
67396739
},
67406740
"src/openai/types/responses/tool.py": {
67416741
"mode": "100644",
6742-
"sha256": "ace9a6241d641f12f1a2461713f542b68109cf2a74f050e2dc0211cc2c5de8b8"
6742+
"sha256": "07beb87f933d61c9288cbdf08cdc3d2c9d5e6ebd34c8da1a46ba1186f7ba6b29"
67436743
},
67446744
"src/openai/types/responses/tool_choice_allowed.py": {
67456745
"mode": "100644",
@@ -6803,7 +6803,7 @@
68036803
},
68046804
"src/openai/types/responses/tool_param.py": {
68056805
"mode": "100644",
6806-
"sha256": "abfa0b97b8b47844cc51c6400c0eab3086c2eba8aa1673e0f78abcd889a24b27"
6806+
"sha256": "96beeed6e6fbe90f379fc05bf1a090cf9fcc02aaca50194b37d70b490713085f"
68076807
},
68086808
"src/openai/types/responses/tool_search_output_namespace_tool.py": {
68096809
"mode": "100644",

‎src/openai/resources/images.py‎

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ def edit(
165165
Args:
166166
image: The image(s) to edit. Must be a supported image file or an array of images.
167167
168-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
169-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
170-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
171-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
172-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
173-
images.
168+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
169+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
170+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
171+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
172+
`jpg` file less than 50MB. You can provide up to 16 images.
173+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
174174
175175
prompt: A text description of the desired image(s). The maximum length is 32000
176176
characters for the GPT image models.
@@ -187,8 +187,8 @@ def edit(
187187
188188
input_fidelity: Control how much effort the model will exert to match the style and features,
189189
especially facial features, of input images. Supports `high` and `low` on
190-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
191-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
190+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
191+
this parameter. Defaults to `low` on supported models.
192192
193193
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
194194
indicate where `image` should be edited. If there are multiple images provided,
@@ -303,12 +303,12 @@ def edit(
303303
Args:
304304
image: The image(s) to edit. Must be a supported image file or an array of images.
305305
306-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
307-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
308-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
309-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
310-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
311-
images.
306+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
307+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
308+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
309+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
310+
`jpg` file less than 50MB. You can provide up to 16 images.
311+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
312312
313313
prompt: A text description of the desired image(s). The maximum length is 32000
314314
characters for the GPT image models.
@@ -329,8 +329,8 @@ def edit(
329329
330330
input_fidelity: Control how much effort the model will exert to match the style and features,
331331
especially facial features, of input images. Supports `high` and `low` on
332-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
333-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
332+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
333+
this parameter. Defaults to `low` on supported models.
334334
335335
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
336336
indicate where `image` should be edited. If there are multiple images provided,
@@ -441,12 +441,12 @@ def edit(
441441
Args:
442442
image: The image(s) to edit. Must be a supported image file or an array of images.
443443
444-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
445-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
446-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
447-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
448-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
449-
images.
444+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
445+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
446+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
447+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
448+
`jpg` file less than 50MB. You can provide up to 16 images.
449+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
450450
451451
prompt: A text description of the desired image(s). The maximum length is 32000
452452
characters for the GPT image models.
@@ -467,8 +467,8 @@ def edit(
467467
468468
input_fidelity: Control how much effort the model will exert to match the style and features,
469469
especially facial features, of input images. Supports `high` and `low` on
470-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
471-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
470+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
471+
this parameter. Defaults to `low` on supported models.
472472
473473
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
474474
indicate where `image` should be edited. If there are multiple images provided,
@@ -1210,12 +1210,12 @@ async def edit(
12101210
Args:
12111211
image: The image(s) to edit. Must be a supported image file or an array of images.
12121212
1213-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
1214-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1215-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
1216-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
1217-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
1218-
images.
1213+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
1214+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1215+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
1216+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
1217+
`jpg` file less than 50MB. You can provide up to 16 images.
1218+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
12191219
12201220
prompt: A text description of the desired image(s). The maximum length is 32000
12211221
characters for the GPT image models.
@@ -1232,8 +1232,8 @@ async def edit(
12321232
12331233
input_fidelity: Control how much effort the model will exert to match the style and features,
12341234
especially facial features, of input images. Supports `high` and `low` on
1235-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
1236-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
1235+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
1236+
this parameter. Defaults to `low` on supported models.
12371237
12381238
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
12391239
indicate where `image` should be edited. If there are multiple images provided,
@@ -1348,12 +1348,12 @@ async def edit(
13481348
Args:
13491349
image: The image(s) to edit. Must be a supported image file or an array of images.
13501350
1351-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
1352-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1353-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
1354-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
1355-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
1356-
images.
1351+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
1352+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1353+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
1354+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
1355+
`jpg` file less than 50MB. You can provide up to 16 images.
1356+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
13571357
13581358
prompt: A text description of the desired image(s). The maximum length is 32000
13591359
characters for the GPT image models.
@@ -1374,8 +1374,8 @@ async def edit(
13741374
13751375
input_fidelity: Control how much effort the model will exert to match the style and features,
13761376
especially facial features, of input images. Supports `high` and `low` on
1377-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
1378-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
1377+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
1378+
this parameter. Defaults to `low` on supported models.
13791379
13801380
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
13811381
indicate where `image` should be edited. If there are multiple images provided,
@@ -1486,12 +1486,12 @@ async def edit(
14861486
Args:
14871487
image: The image(s) to edit. Must be a supported image file or an array of images.
14881488
1489-
For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
1490-
`gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1491-
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
1492-
`gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
1493-
be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
1494-
images.
1489+
For the GPT image models (`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
1490+
`gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
1491+
`gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
1492+
`gpt-image-2.5-flare-2026-09-08`), each image should be a `png`, `webp`, or
1493+
`jpg` file less than 50MB. You can provide up to 16 images.
1494+
`chatgpt-image-latest` follows the same input constraints as GPT image models.
14951495
14961496
prompt: A text description of the desired image(s). The maximum length is 32000
14971497
characters for the GPT image models.
@@ -1512,8 +1512,8 @@ async def edit(
15121512
15131513
input_fidelity: Control how much effort the model will exert to match the style and features,
15141514
especially facial features, of input images. Supports `high` and `low` on
1515-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
1516-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
1515+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
1516+
this parameter. Defaults to `low` on supported models.
15171517
15181518
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
15191519
indicate where `image` should be edited. If there are multiple images provided,

‎src/openai/types/beta/beta_response_tool_search_output_item_param.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ class ToolImageGeneration(BaseModel):
284284
"""
285285
Control how much effort the model will exert to match the style and features,
286286
especially facial features, of input images. Supports `high` and `low` on
287-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
288-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
287+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
288+
this parameter. Defaults to `low` on supported models.
289289
"""
290290

291291
input_image_mask: Optional[ToolImageGenerationInputImageMask] = None

‎src/openai/types/beta/beta_response_tool_search_output_item_param_param.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ class ToolImageGeneration(TypedDict, total=False):
283283
"""
284284
Control how much effort the model will exert to match the style and features,
285285
especially facial features, of input images. Supports `high` and `low` on
286-
`gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
287-
`gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
286+
`gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit
287+
this parameter. Defaults to `low` on supported models.
288288
"""
289289

290290
input_image_mask: ToolImageGenerationInputImageMask

0 commit comments

Comments
 (0)