struct
AI::Provider::ImageModel::CallOptions
- AI::Provider::ImageModel::CallOptions
- Struct
- Value
- Object
Overview
Options for the doGenerate call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/image_model/image_model.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#aspect_ratio : String | Nil
Aspect ratio of the images to generate (format: "{width}:{height}").
-
#files : Array(File) | Nil
Array of images for image editing or variation generation.
-
#headers : Shared::Headers | Nil
Additional HTTP headers to be sent with the request.
-
#mask : File | Nil
Mask image for inpainting operations.
-
#n : Int32
Number of images to generate.
-
#prompt : String | Nil
Prompt for the image generation.
-
#provider_options : Shared::ProviderOptions
Additional provider-specific options.
-
#seed : Int32 | Nil
Seed for the image generation.
-
#size : String | Nil
Size of the images to generate (format: "{width}x{height}").
Constructor Detail
Instance Method Detail
def aspect_ratio : String | Nil
#
Aspect ratio of the images to generate (format: "{width}:{height}").
Array of images for image editing or variation generation.
def prompt : String | Nil
#
Prompt for the image generation. Some operations, like upscaling, may not require a prompt.