Module: OpenAI::Models::ImageEditParams::Image

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/image_edit_params.rb

Overview

The image(s) to edit. Must be a supported image file or an array of images.

For ‘gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less than 25MB. You can provide up to 16 images.

For ‘dall-e-2`, you can only provide one image, and it should be a square `png` file less than 4MB.

Constant Summary collapse

StringArray =
OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::FileInput]

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

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, type_info

Class Method Details

.variantsArray(StringIO, Array<StringIO>)

Returns:

  • (Array(StringIO, Array<StringIO>))


# File 'lib/openai/models/image_edit_params.rb', line 137