OpenAI::ImageRequest
Inherits JSON::Serializable / Reference / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(prompt : 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
prompt=(prompt : String)
A text description of the desired image(s). The maximum length is 1000 characters.
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.