OpenAI::ImageGenTool
Inherits JSON::Serializable < Reference < Object
A tool that generates images using a model like gpt-image-1.
Constructors
Instance methods
Background type for the generated image. One of transparent,
opaque, or auto. Default: auto.
Background type for the generated image. One of transparent,
opaque, or auto. Default: auto.
Optional mask for inpainting. Contains image_url
(string, optional) and file_id (string, optional).
Optional mask for inpainting. Contains image_url
(string, optional) and file_id (string, optional).
The image generation model to use. Default: gpt-image-1.
Moderation level for the generated image. Default: auto.
Compression level for the output image. Default: 100.
The output format of the generated image. One of png, webp, or
jpeg. Default: png.
The output format of the generated image. One of png, webp, or
jpeg. Default: png.
Number of partial images to generate in streaming mode, from 0 (default value) to 3.
Number of partial images to generate in streaming mode, from 0 (default value) to 3.
The quality of the generated image. One of low, medium, high,
or auto. Default: auto.
The size of the generated image. One of 1024x1024, 1024x1536,
1536x1024, or auto. Default: auto.
The size of the generated image. One of 1024x1024, 1024x1536,
1536x1024, or auto. Default: auto.
The type of the image generation tool. Always image_generation.