Vertex AI v1 API - Class ImageConfig (3.63.0)

public sealed class ImageConfig : IMessage<ImageConfig>, IEquatable<ImageConfig>, IDeepCloneable<ImageConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1 API class ImageConfig.

Config for image generation features.

Inheritance

object > ImageConfig

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ImageConfig()

public ImageConfig()

ImageConfig(ImageConfig)

public ImageConfig(ImageConfig other)
Parameter
Name Description
other ImageConfig

Properties

AspectRatio

public string AspectRatio { get; set; }

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported:

"1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

Property Value
Type Description
string

HasAspectRatio

public bool HasAspectRatio { get; }

Gets whether the "aspect_ratio" field is set

Property Value
Type Description
bool

HasImageSize

public bool HasImageSize { get; }

Gets whether the "image_size" field is set

Property Value
Type Description
bool

HasPersonGeneration

public bool HasPersonGeneration { get; }

Gets whether the "person_generation" field is set

Property Value
Type Description
bool

ImageOutputOptions

public ImageConfig.Types.ImageOutputOptions ImageOutputOptions { get; set; }

Optional. The image output format for generated images.

Property Value
Type Description
ImageConfigTypesImageOutputOptions

ImageSize

public string ImageSize { get; set; }

Optional. Specifies the size of generated images. Supported values are 1K, 2K, 4K. If not specified, the model will use default value 1K.

Property Value
Type Description
string

PersonGeneration

public ImageConfig.Types.PersonGeneration PersonGeneration { get; set; }

Optional. Controls whether the model can generate people.

Property Value
Type Description
ImageConfigTypesPersonGeneration