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
- #image=(image : File | Path | String)
- #num_images : Int32
- #num_images=(num_images : Int32)
-
#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
def self.new(image : File | Path | String, num_images : Int32 = 1, size : OpenAI::ImageSize = :large, response_format : OpenAI::ImageRespFormat = :url, user : Nil | String = nil)
#
Instance Method Detail
def response_format=(response_format : ImageRespFormat)
#
The format in which the generated images are returned.
def user : String | Nil
#
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
def user=(user : String | Nil)
#
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.