struct AI::Google::ImageProviderOptions

Overview

Provider-specific options for image generation.

Included Modules

Defined in:

ai/google/google_generative_ai_image_settings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(person_generation : String | Nil = nil, aspect_ratio : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def aspect_ratio : String | Nil #

Aspect ratio: "1:1", "3:4", "4:3", "9:16", "16:9"


[View source]
def person_generation : String | Nil #

Person generation setting: "dont_allow", "allow_adult", "allow_all"


[View source]