Class GenerateVideosConfig
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Configuration settings for a video generation request.
public class GenerateVideosConfig
- Inheritance
-
GenerateVideosConfig
- Inherited Members
- Extension Methods
Properties
AspectRatio
Optional. The desired aspect ratio for the generated video (e.g., "16:9", "9:16").
[JsonPropertyName("aspectRatio")]
[JsonConverter(typeof(VideoAspectRatioConverter))]
public VideoAspectRatio? AspectRatio { get; set; }
Property Value
CompressionQuality
Optional. Compression quality of the generated videos.
[JsonPropertyName("compressionQuality")]
public VideoCompressionQuality? CompressionQuality { get; set; }
Property Value
DurationSeconds
Optional. The desired duration of the generated video clip in seconds.
[JsonPropertyName("durationSeconds")]
public int? DurationSeconds { get; set; }
Property Value
- int?
EnhancePrompt
Optional. Whether to enable internal prompt enhancement logic to potentially improve results.
[JsonPropertyName("enhancePrompt")]
public bool? EnhancePrompt { get; set; }
Property Value
- bool?
Fps
Optional. The desired frames per second (FPS) for the generated video.
[JsonPropertyName("fps")]
public int? Fps { get; set; }
Property Value
- int?
GenerateAudio
Optional. Whether to generate audio for the video.
[JsonPropertyName("generateAudio")]
public bool? GenerateAudio { get; set; }
Property Value
- bool?
LastFrame
Optional. The last frame image to use for video generation.
[JsonPropertyName("lastFrame")]
public ImageSample? LastFrame { get; set; }
Property Value
Mask
Optional. Mask for video generation.
[JsonPropertyName("mask")]
public VideoGenerationMask? Mask { get; set; }
Property Value
NegativePrompt
Optional. A text prompt describing elements or styles to avoid in the generated video.
[JsonPropertyName("negativePrompt")]
public string? NegativePrompt { get; set; }
Property Value
NumberOfVideos
Optional. The number of video variations to generate.
[JsonPropertyName("numberOfVideos")]
public int? NumberOfVideos { get; set; }
Property Value
- int?
OutputGcsUri
Optional. The Google Cloud Storage URI where the generated videos should be saved. Example: "gs://your-bucket/output-folder/".
[JsonPropertyName("outputGcsUri")]
public string? OutputGcsUri { get; set; }
Property Value
PersonGeneration
Optional. Controls whether videos featuring people can be generated and restricts generation based on age representation. Supported values might include "dontAllow", "allowAdult". Check API documentation for exact values.
[JsonPropertyName("personGeneration")]
[JsonConverter(typeof(VideoPersonGenerationConverter))]
public VideoPersonGeneration? PersonGeneration { get; set; }
Property Value
PubsubTopic
Optional. A Google Cloud Pub/Sub topic where notifications about the video generation progress will be published.
[JsonPropertyName("pubsubTopic")]
public string? PubsubTopic { get; set; }
Property Value
ReferenceImages
Optional. Reference images for video generation.
[JsonPropertyName("referenceImages")]
public List<VideoGenerationReferenceImage>? ReferenceImages { get; set; }
Property Value
Resolution
Optional. The desired resolution for the generated video (e.g., "1280x720", "1920x1080").
[JsonPropertyName("resolution")]
[JsonConverter(typeof(VideoResolutionConverter))]
public VideoResolution? Resolution { get; set; }
Property Value
Seed
Optional. A seed value for the random number generator to ensure reproducibility. If the seed is the same for identical inputs, the results should be consistent. Otherwise, a random seed is used.
[JsonPropertyName("seed")]
public int? Seed { get; set; }
Property Value
- int?