Table of Contents

Class ImageData

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents the image data, which can be either base64 encoded or a Cloud Storage URI.

public class ImageData
Inheritance
ImageData
Inherited Members
Extension Methods

Properties

BytesBase64Encoded

Gets or sets the base64 encoded image string.

[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

MimeType

Gets or sets the MIME type of the image.

[JsonPropertyName("mimeType")]
public string? MimeType { get; set; }

Property Value

string

See Also