Table of Contents

Class VideoParameters

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Internal representation of the parameters within the Vertex AI payload. Mirrors GenerateVideosConfig but ensures correct JsonPropertyNames for serialization.

public class VideoParameters
Inheritance
VideoParameters
Inherited Members
Extension Methods

Properties

AspectRatio

Gets or sets the aspect ratio for the generated video.

[JsonPropertyName("aspectRatio")]
[JsonConverter(typeof(VideoAspectRatioConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VideoAspectRatio? AspectRatio { get; set; }

Property Value

VideoAspectRatio?

CompressionQuality

Gets or sets the compression quality of the generated video.

[JsonPropertyName("compressionQuality")]
public VideoCompressionQuality? CompressionQuality { get; set; }

Property Value

VideoCompressionQuality?

DurationSeconds

Gets or sets the duration of the generated video in seconds.

[JsonPropertyName("durationSeconds")]
public int? DurationSeconds { get; set; }

Property Value

int?

EnhancePrompt

Gets or sets whether to enhance the prompt for better video generation.

[JsonPropertyName("enhancePrompt")]
public bool? EnhancePrompt { get; set; }

Property Value

bool?

Fps

Gets or sets the frames per second for the generated video.

[JsonPropertyName("fps")]
public int? Fps { get; set; }

Property Value

int?

GenerateAudio

Gets or sets whether to generate audio together with the video.

[JsonPropertyName("generateAudio")]
public bool? GenerateAudio { get; set; }

Property Value

bool?

NegativePrompt

Gets or sets the negative prompt to avoid certain content in the generated video.

[JsonPropertyName("negativePrompt")]
public string? NegativePrompt { get; set; }

Property Value

string

PersonGeneration

Gets or sets the person generation settings for the video.

[JsonPropertyName("personGeneration")]
[JsonConverter(typeof(VideoPersonGenerationConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VideoPersonGeneration? PersonGeneration { get; set; }

Property Value

VideoPersonGeneration?

PubSubTopic

Gets or sets the Pub/Sub topic for receiving generation status updates.

[JsonPropertyName("pubsubTopic")]
public string? PubSubTopic { get; set; }

Property Value

string

Resolution

Gets or sets the resolution for the generated video.

[JsonPropertyName("resolution")]
[JsonConverter(typeof(VideoResolutionConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VideoResolution? Resolution { get; set; }

Property Value

VideoResolution?

SampleCount

Gets or sets the number of video samples to generate.

[JsonPropertyName("sampleCount")]
public int? SampleCount { get; set; }

Property Value

int?

Seed

Gets or sets the random seed for deterministic video generation.

[JsonPropertyName("seed")]
public int? Seed { get; set; }

Property Value

int?

StorageUri

Gets or sets the storage URI where the generated video will be saved.

[JsonPropertyName("storageUri")]
public string? StorageUri { get; set; }

Property Value

string