GenerateVideoRequest
Namespace: Vercel.AI.Operations
public class GenerateVideoRequest : OperationRequestOptions shared by generate and start.
Inheritance: object → OperationRequest
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Aspect ratio.
Value: string
public Func<int, CancellationToken, Task>? Delay { get; set; }Custom delay. Defaults to CancellationToken).
Value: Func<int, CancellationToken, Task>
Download
Section titled “Download”public Func<string, CancellationToken, Task<DownloadedMedia>>? Download { get; set; }Downloads URL videos and reference bytes are already local.
Value: Func<string, CancellationToken, Task<DownloadedMedia>>
Duration
Section titled “Duration”public double? Duration { get; set; }Duration in seconds.
Value: double?
public int? Fps { get; set; }Frames per second.
Value: int?
FrameImages
Section titled “FrameImages”public IReadOnlyList<VideoFrameImage>? FrameImages { get; set; }Frame images.
Value: IReadOnlyList<VideoFrameImage>
GenerateAudio
Section titled “GenerateAudio”public bool? GenerateAudio { get; set; }Whether to generate audio.
Value: bool?
GenerateId
Section titled “GenerateId”public Func<string>? GenerateId { get; set; }Supplies idempotency suffixes. Default is a guid.
Value: Func<string>
InputReferences
Section titled “InputReferences”public IReadOnlyList<VideoReference>? InputReferences { get; set; }Input references.
Value: IReadOnlyList<VideoReference>
MaxVideosPerCall
Section titled “MaxVideosPerCall”public int? MaxVideosPerCall { get; set; }Overrides the model limit.
Value: int?
public IVideoCaller? Model { get; set; }Video model.
Value: IVideoCaller
public double N { get; set; }Number of videos. Default 1.
Value: double
public bool Poll { get; set; }True when polling was requested.
Value: bool
PollIntervalMs
Section titled “PollIntervalMs”public int? PollIntervalMs { get; set; }Poll interval. Default 5000.
Value: int?
PollTimeoutMs
Section titled “PollTimeoutMs”public int? PollTimeoutMs { get; set; }Poll or webhook timeout. Default 600000.
Value: int?
Prompt
Section titled “Prompt”public VideoPrompt? Prompt { get; set; }Prompt.
Value: VideoPrompt
Resolution
Section titled “Resolution”public string? Resolution { get; set; }Resolution.
Value: string
public double? Seed { get; set; }Seed.
Value: double?
Webhook
Section titled “Webhook”public Func<Task<VideoWebhook>>? Webhook { get; set; }Webhook factory.
Value: Func<Task<VideoWebhook>>
WebhookUrl
Section titled “WebhookUrl”public string? WebhookUrl { get; set; }Webhook URL forwarded by StartVideo.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product