Method: OpenAI::Models::ImageEditParams#background
- Defined in:
- lib/openai/models/image_edit_params.rb
#background ⇒ Symbol, ...
Allows to set transparency for the background of the generated image(s). This
parameter is only supported for gpt-image-1. Must be one of transparent,
opaque or auto (default value). When auto is used, the model will
automatically determine the best background for the image.
If transparent, the output format needs to support transparency, so it should
be set to either png (default value) or webp.
41 |
# File 'lib/openai/models/image_edit_params.rb', line 41 optional :background, enum: -> { OpenAI::ImageEditParams::Background }, nil?: true |