class OpenAI::ImageRequest
- OpenAI::ImageRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/image.crConstructors
- .new(pull : JSON::PullParser)
- .new(prompt : String, num_images : Int32 = 1, size : OpenAI::ImageSize = :large, response_format : OpenAI::ImageRespFormat = :url, user : Nil | String = nil)
Instance Method Summary
- #num_images : Int32
- #num_images=(num_images : Int32)
-
#prompt : String
A text description of the desired image(s).
-
#prompt=(prompt : String)
A text description of the desired image(s).
-
#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
A text description of the desired image(s). The maximum length is 1000 characters.
A text description of the desired image(s). The maximum length is 1000 characters.
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.