Module: OpenAI::Models::ImageGenerateParams::Background
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/openai/models/image_generate_params.rb
Overview
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
.
Constant Summary collapse
- TRANSPARENT =
:transparent
- OPAQUE =
:opaque
- AUTO =
:auto
Method Summary
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info