Class GenerateVideosRequest
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents the parameters sent when requesting video generation.
public class GenerateVideosRequest
- Inheritance
-
GenerateVideosRequest
- Inherited Members
- Extension Methods
Remarks
This class encapsulates the model identifier, prompt, optional input image, and configuration settings for initiating a video generation task.
Properties
Config
Optional. Configuration settings for the video generation process. Includes parameters like FPS, duration, resolution, aspect ratio, etc.
[JsonPropertyName("config")]
public GenerateVideosConfig? Config { get; set; }
Property Value
Image
Optional. An input image to use as a basis for video generation (image-to-video). Required if Prompt is not provided for image-to-video tasks.
[JsonPropertyName("image")]
public ImageSample? Image { get; set; }
Property Value
Model
Required. The identifier of the model to use for video generation. For a list of available models, refer to the Google AI documentation. Example: a Veo model ID such as "veo-3.1-generate-001" (Vertex AI).
[JsonPropertyName("model")]
public string? Model { get; set; }
Property Value
Prompt
Optional. The text prompt describing the desired video content. This is typically required unless an input Image is provided for image-to-video tasks.
[JsonPropertyName("prompt")]
public string? Prompt { get; set; }