struct

AI::Provider::ImageModel::CallOptions

Inherits JSON::Serializable < Struct < Value < Object

Options for the doGenerate call.

Constructors

new(prompt : String | Nil, n : Int32, provider_options : Shared::ProviderOptions, size : String | Nil = nil, aspect_ratio : String | Nil = nil, seed : Int32 | Nil = nil, files : Array(File) | Nil = nil, mask : File | Nil = nil, headers : Shared::Headers | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

aspect_ratio

Aspect ratio of the images to generate (format: "{width}:{height}").

Source
files

Array of images for image editing or variation generation.

Source
headers

Additional HTTP headers to be sent with the request.

Source
mask

Mask image for inpainting operations.

Source
n

Number of images to generate.

Source
prompt

Prompt for the image generation. Some operations, like upscaling, may not require a prompt.

Source
provider_options

Additional provider-specific options.

Source
seed

Seed for the image generation.

Source
size

Size of the images to generate (format: "{width}x{height}").

Source