struct
OpenRouter::ImageConfig
- OpenRouter::ImageConfig
- Struct
- Value
- Object
Overview
Configuration for image generation requests.
Used with CompletionRequest#image_config when requesting image output
from models that support the image modality.
Included Modules
- JSON::Serializable
Defined in:
openrouter/types/image_config.crConstructors
- .new(pull : JSON::PullParser)
- .new(aspect_ratio : String | Nil = nil, image_size : String | Nil = nil)
Instance Method Summary
-
#aspect_ratio : String | Nil
Aspect ratio of the generated image, e.g.
-
#aspect_ratio=(aspect_ratio : String | Nil)
Aspect ratio of the generated image, e.g.
-
#image_size : String | Nil
Resolution of the generated image: "0.5K", "1K", "2K", or "4K"
-
#image_size=(image_size : String | Nil)
Resolution of the generated image: "0.5K", "1K", "2K", or "4K"
Constructor Detail
Instance Method Detail
def aspect_ratio=(aspect_ratio : String | Nil)
#
Aspect ratio of the generated image, e.g. "1:1", "16:9", "21:9"
def image_size=(image_size : String | Nil)
#
Resolution of the generated image: "0.5K", "1K", "2K", or "4K"