NAME
OpenAI::API::Resource::Image::Generation - generates images from a prompt
DESCRIPTION
Creates an image given a prompt.
METHODS
new()
prompt
A text description of the desired image(s).
n [optional]
The number of images to generate. Must be between 1 and 10. Defaults to 1.
size [optional]
The size of the generated images. Must be one of
256x256
,512x512
, or1024x1024
. Defaults to1024x1024
.response_format [optional]
The format in which the generated images are returned. Must be one of
url
orb64_json
. Defaults tourl
.user [optional]
A unique identifier representing your end-user.
SEE ALSO
OpenAI API Documentation: Models