Table of Contents

Class Video

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents a video resource, which can be referenced via a URI or contained as raw byte data.

public class Video
Inheritance
Video
Inherited Members
Extension Methods

Remarks

This class is typically used for outputting generated video content.

Properties

BytesBase64Encoded

The raw video data as a byte array, Base64 encoded when serialized. May not always be populated, especially for large videos stored at a URI.

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

Property Value

string

MimeType

The MIME type of the video (e.g., "video/mp4").

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

Property Value

string

Uri

The URI (e.g., Google Cloud Storage path) where the video is stored. Path to another storage.

[JsonPropertyName("uri")]
public string? Uri { get; set; }

Property Value

string

VideoBytes

The raw video data as a byte array, Base64 encoded when serialized. May not always be populated, especially for large videos stored at a URI.

[JsonPropertyName("videoBytes")]
public byte[]? VideoBytes { get; set; }

Property Value

byte[]