class
OpenAI::ImageVariationRequest
- OpenAI::ImageVariationRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/image.crConstructors
- .new(pull : JSON::PullParser)
- .new(image : File | Path | String, num_images : Int32 = 1, size : OpenAI::ImageSize = :large, response_format : OpenAI::ImageRespFormat = :url, user : Nil | String = nil)
Instance Method Summary
- #build_metada(builder : HTTP::FormData::Builder)
-
#image : File | Path | String
The image to use as the basis for the variation(s).
-
#image=(image : File | Path | String)
The image to use as the basis for the variation(s).
-
#num_images : Int32
The number of images to generate.
-
#num_images=(num_images : Int32)
The number of images to generate.
-
#response_format : ImageRespFormat
The format in which the generated images are returned.
-
#response_format=(response_format : ImageRespFormat)
The format in which the generated images are returned.
-
#size : ImageSize
The size of the generated images
-
#size=(size : ImageSize)
The size of the generated images
-
#user : String | Nil
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
-
#user=(user : String | Nil)
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Constructor Detail
Instance Method Detail
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
The format in which the generated images are returned.
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.