OptionalbackgroundBackground type for the generated image. One of transparent, opaque, or
auto. Default: auto.
Optionalinput_Control how much effort the model will exert to match the style and features,
especially facial features, of input images. This parameter is only supported
for gpt-image-1. Supports high and low. Defaults to low.
Optionalinput_Optional mask for inpainting. Contains image_url (string, optional) and
file_id (string, optional).
OptionalmodelThe image generation model to use. Default: gpt-image-1.
OptionalmoderationModeration level for the generated image. Default: auto.
Optionaloutput_Compression level for the output image. Default: 100.
Optionaloutput_The output format of the generated image. One of png, webp, or jpeg.
Default: png.
Optionalpartial_Number of partial images to generate in streaming mode, from 0 (default value) to 3.
OptionalqualityThe quality of the generated image. One of low, medium, high, or auto.
Default: auto.
OptionalsizeThe 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.