Table of Contents

Class ImageSource

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents the image source, either as base64 encoded bytes or a Cloud Storage URI.

public class ImageSource
Inheritance
ImageSource
Inherited Members
Extension Methods

Properties

BytesBase64Encoded

Gets or sets the base64 encoded image bytes.

[JsonPropertyName("bytesBase64Encoded")]
public string? BytesBase64Encoded { get; set; }

Property Value

string

GcsUri

Gets or sets the Cloud Storage URI of the image.

[JsonPropertyName("gcsUri")]
public string? GcsUri { get; set; }

Property Value

string

See Also