struct
AI::Google::ImageProviderOptions
- AI::Google::ImageProviderOptions
- Struct
- Value
- Object
Overview
Provider-specific options for image generation.
Included Modules
- JSON::Serializable
Defined in:
ai/google/google_generative_ai_image_settings.crConstructors
- .new(pull : JSON::PullParser)
- .new(person_generation : String | Nil = nil, aspect_ratio : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#aspect_ratio : String | Nil
Aspect ratio: "1:1", "3:4", "4:3", "9:16", "16:9"
-
#person_generation : String | Nil
Person generation setting: "dont_allow", "allow_adult", "allow_all"
Constructor Detail
Instance Method Detail
def person_generation : String | Nil
#
Person generation setting: "dont_allow", "allow_adult", "allow_all"