OpenAI::ImageVariationRequest
Inherits JSON::Serializable / Reference / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(image : File | Path | String, num_images : Int32 = 1, size : OpenAI::ImageSize = :large, response_format : OpenAI::ImageRespFormat = :url, user : Nil | String = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
build_metada(builder : HTTP::FormData::Builder)
Sourceimage
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
image=(image : File | Path | String)
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
response_format=(response_format : ImageRespFormat)
The format in which the generated images are returned.
user
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.