2190 2190
2191 - `background: optional "transparent" or "opaque" or "auto"`2191 - `background: optional "transparent" or "opaque" or "auto"`
2192 2192
21932193 Background type for the generated image. One of `transparent`, Set the background of the generated image. One of `transparent`,
21942194 `opaque`, or `auto`. Default: `auto`. `opaque`, or `auto`. Transparent backgrounds are available for
2195 supported GPT Image models. For `gpt-image-2` and
2196 `gpt-image-2-2026-04-21`, this support is in preview. When using
2197 `transparent`, set the output format to `png` or `webp`. Default: `auto`.
2195 2198
2196 - `"transparent"`2199 - `"transparent"`
2197 2200
2220 2223
2221 Base64-encoded mask image.2224 Base64-encoded mask image.
2222 2225
22232226 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
2224 2227
22252228 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
2229 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
2230 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
2231 `gpt-image-1`.
2226 2232
2227 - `string`2233 - `string`
2228 2234
22292235 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
2230 2236
22312237 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
2238 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
2239 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
2240 `gpt-image-1`.
2232 2241
2233 - `"gpt-image-1"`2242 - `"gpt-image-1"`
2234 2243
2236 2245
2237 - `"gpt-image-1.5"`2246 - `"gpt-image-1.5"`
2238 2247
2248 - `"gpt-image-2"`
2249
2250 - `"gpt-image-2-2026-04-21"`
2251
2239 - `moderation: optional "auto" or "low"`2252 - `moderation: optional "auto" or "low"`
2240 2253
2241 Moderation level for the generated image. Default: `auto`.2254 Moderation level for the generated image. Default: `auto`.
3353 3366
3354 - `background: optional "transparent" or "opaque" or "auto"`3367 - `background: optional "transparent" or "opaque" or "auto"`
3355 3368
33563369 Background type for the generated image. One of `transparent`, Set the background of the generated image. One of `transparent`,
33573370 `opaque`, or `auto`. Default: `auto`. `opaque`, or `auto`. Transparent backgrounds are available for
3371 supported GPT Image models. For `gpt-image-2` and
3372 `gpt-image-2-2026-04-21`, this support is in preview. When using
3373 `transparent`, set the output format to `png` or `webp`. Default: `auto`.
3358 3374
3359 - `"transparent"`3375 - `"transparent"`
3360 3376
3383 3399
3384 Base64-encoded mask image.3400 Base64-encoded mask image.
3385 3401
33863402 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
3387 3403
33883404 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
3405 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
3406 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
3407 `gpt-image-1`.
3389 3408
3390 - `string`3409 - `string`
3391 3410
33923411 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
3393 3412
33943413 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
3414 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
3415 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
3416 `gpt-image-1`.
3395 3417
3396 - `"gpt-image-1"`3418 - `"gpt-image-1"`
3397 3419
3399 3421
3400 - `"gpt-image-1.5"`3422 - `"gpt-image-1.5"`
3401 3423
3424 - `"gpt-image-2"`
3425
3426 - `"gpt-image-2-2026-04-21"`
3427
3402 - `moderation: optional "auto" or "low"`3428 - `moderation: optional "auto" or "low"`
3403 3429
3404 Moderation level for the generated image. Default: `auto`.3430 Moderation level for the generated image. Default: `auto`.
6678 6704
6679 - `background: optional "transparent" or "opaque" or "auto"`6705 - `background: optional "transparent" or "opaque" or "auto"`
6680 6706
66816707 Background type for the generated image. One of `transparent`, Set the background of the generated image. One of `transparent`,
66826708 `opaque`, or `auto`. Default: `auto`. `opaque`, or `auto`. Transparent backgrounds are available for
6709 supported GPT Image models. For `gpt-image-2` and
6710 `gpt-image-2-2026-04-21`, this support is in preview. When using
6711 `transparent`, set the output format to `png` or `webp`. Default: `auto`.
6683 6712
6684 - `"transparent"`6713 - `"transparent"`
6685 6714
6708 6737
6709 Base64-encoded mask image.6738 Base64-encoded mask image.
6710 6739
67116740 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
6712 6741
67136742 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
6743 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
6744 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
6745 `gpt-image-1`.
6714 6746
6715 - `string`6747 - `string`
6716 6748
67176749 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
6718 6750
67196751 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
6752 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
6753 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
6754 `gpt-image-1`.
6720 6755
6721 - `"gpt-image-1"`6756 - `"gpt-image-1"`
6722 6757
6724 6759
6725 - `"gpt-image-1.5"`6760 - `"gpt-image-1.5"`
6726 6761
6762 - `"gpt-image-2"`
6763
6764 - `"gpt-image-2-2026-04-21"`
6765
6727 - `moderation: optional "auto" or "low"`6766 - `moderation: optional "auto" or "low"`
6728 6767
6729 Moderation level for the generated image. Default: `auto`.6768 Moderation level for the generated image. Default: `auto`.
7719 7758
7720 - `background: optional "transparent" or "opaque" or "auto"`7759 - `background: optional "transparent" or "opaque" or "auto"`
7721 7760
77227761 Background type for the generated image. One of `transparent`, Set the background of the generated image. One of `transparent`,
77237762 `opaque`, or `auto`. Default: `auto`. `opaque`, or `auto`. Transparent backgrounds are available for
7763 supported GPT Image models. For `gpt-image-2` and
7764 `gpt-image-2-2026-04-21`, this support is in preview. When using
7765 `transparent`, set the output format to `png` or `webp`. Default: `auto`.
7724 7766
7725 - `"transparent"`7767 - `"transparent"`
7726 7768
7749 7791
7750 Base64-encoded mask image.7792 Base64-encoded mask image.
7751 7793
77527794 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
7753 7795
77547796 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
7797 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
7798 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
7799 `gpt-image-1`.
7755 7800
7756 - `string`7801 - `string`
7757 7802
77587803 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
7759 7804
77607805 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
7806 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
7807 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
7808 `gpt-image-1`.
7761 7809
7762 - `"gpt-image-1"`7810 - `"gpt-image-1"`
7763 7811
7765 7813
7766 - `"gpt-image-1.5"`7814 - `"gpt-image-1.5"`
7767 7815
7816 - `"gpt-image-2"`
7817
7818 - `"gpt-image-2-2026-04-21"`
7819
7768 - `moderation: optional "auto" or "low"`7820 - `moderation: optional "auto" or "low"`
7769 7821
7770 Moderation level for the generated image. Default: `auto`.7822 Moderation level for the generated image. Default: `auto`.
9879 9931
9880 - `background: optional "transparent" or "opaque" or "auto"`9932 - `background: optional "transparent" or "opaque" or "auto"`
9881 9933
98829934 Background type for the generated image. One of `transparent`, Set the background of the generated image. One of `transparent`,
98839935 `opaque`, or `auto`. Default: `auto`. `opaque`, or `auto`. Transparent backgrounds are available for
9936 supported GPT Image models. For `gpt-image-2` and
9937 `gpt-image-2-2026-04-21`, this support is in preview. When using
9938 `transparent`, set the output format to `png` or `webp`. Default: `auto`.
9884 9939
9885 - `"transparent"`9940 - `"transparent"`
9886 9941
9909 9964
9910 Base64-encoded mask image.9965 Base64-encoded mask image.
9911 9966
99129967 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
9913 9968
99149969 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
9970 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
9971 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
9972 `gpt-image-1`.
9915 9973
9916 - `string`9974 - `string`
9917 9975
99189976 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5"` - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`
9919 9977
99209978 The image generation model to use. Default: `gpt-image-1`. The image generation model to use. One of `gpt-image-1`,
9979 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
9980 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:
9981 `gpt-image-1`.
9921 9982
9922 - `"gpt-image-1"`9983 - `"gpt-image-1"`
9923 9984
9925 9986
9926 - `"gpt-image-1.5"`9987 - `"gpt-image-1.5"`
9927 9988
9989 - `"gpt-image-2"`
9990
9991 - `"gpt-image-2-2026-04-21"`
9992
9928 - `moderation: optional "auto" or "low"`9993 - `moderation: optional "auto" or "low"`
9929 9994
9930 Moderation level for the generated image. Default: `auto`.9995 Moderation level for the generated image. Default: `auto`.