struct

AI::Google::ResponseImageConfig

Inherits JSON::Serializable < Struct < Value < Object

Image configuration for response generation (used in language model provider options).

Constructors

new(aspect_ratio : String | Nil = nil, image_size : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

aspect_ratio

Aspect ratio for generated images.

Source
image_size

Image size: 1K, 2K, 4K.

Source