Optional
backgroundBackground type for the generated image. One of transparent
, opaque
, or
auto
. Default: auto
.
Optional
input_Optional mask for inpainting. Contains image_url
(string, optional) and
file_id
(string, optional).
Optional
modelThe image generation model to use. Default: gpt-image-1
.
Optional
moderationModeration level for the generated image. Default: auto
.
Optional
output_Compression level for the output image. Default: 100.
Optional
output_The output format of the generated image. One of png
, webp
, or jpeg
.
Default: png
.
Optional
partial_Number of partial images to generate in streaming mode, from 0 (default value) to 3.
Optional
qualityThe quality of the generated image. One of low
, medium
, high
, or auto
.
Default: auto
.
Optional
sizeThe size of the generated image. One of 1024x1024
, 1024x1536
, 1536x1024
,
or auto
. Default: auto
.
The type of the image generation tool. Always image_generation
.
A tool that generates images using a model like
gpt-image-1
.