class

OpenAI::CreateImageVariationRequest

Inherits JSON::Serializable < Reference < Object

Constructors

new(image : String = "", model : CreateImageVariationRequestModel | Nil = nil, n : Int64 | Nil = nil, response_format : CreateImageVariationRequestResponseFormat | Nil = nil, size : CreateImageVariationRequestSize | Nil = nil, user : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

image

The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.

Source
image=(image : String)

The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.

Source
model

The model to use for image generation. Only dall-e-2 is supported at this time.

Source
model=(model : CreateImageVariationRequestModel | Nil)

The model to use for image generation. Only dall-e-2 is supported at this time.

Source
n

The number of images to generate. Must be between 1 and 10.

Source
n=(n : Int64 | Nil)

The number of images to generate. Must be between 1 and 10.

Source
response_format

The format in which the generated images are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated.

Source
response_format=(response_format : CreateImageVariationRequestResponseFormat | Nil)

The format in which the generated images are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated.

Source
size

The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.

Source
size=(size : CreateImageVariationRequestSize | Nil)

The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.

Source
user

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.

Source
user=(user : String | Nil)

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.

Source