VideoModelCall
Namespace: Vercel.AI.Operations
public sealed class VideoModelCallArguments shared by generate, start, and status.
Inheritance: object
Constructors
Section titled “Constructors”VideoModelCall(string?, int, string?, string?, double?, int?, double?, VideoModelFile?, IReadOnlyList<VideoFrameFile>?, IReadOnlyList<VideoModelFile>?, bool?, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken, string?, object?)
Section titled “VideoModelCall(string?, int, string?, string?, double?, int?, double?, VideoModelFile?, IReadOnlyList<VideoFrameFile>?, IReadOnlyList<VideoModelFile>?, bool?, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken, string?, object?)”public VideoModelCall(string? prompt, int n, string? aspectRatio, string? resolution, double? duration, int? fps, double? seed, VideoModelFile? image, IReadOnlyList<VideoFrameFile>? frameImages, IReadOnlyList<VideoModelFile>? inputReferences, bool? generateAudio, JsonElement providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken, string? webhookUrl = null, object? operation = null)Creates a call.
Parameters
| Name | Type | Description |
|---|---|---|
prompt |
string | |
n |
int | |
aspectRatio |
string | |
resolution |
string | |
duration |
double? | |
fps |
int? | |
seed |
double? | |
image |
VideoModelFile | |
frameImages |
IReadOnlyList<VideoFrameFile> | |
inputReferences |
IReadOnlyList<VideoModelFile> | |
generateAudio |
bool? | |
providerOptions |
JsonElement | |
headers |
IReadOnlyDictionary<string, string> | |
cancellationToken |
CancellationToken | |
webhookUrl |
string | |
operation |
object |
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; }Aspect ratio.
Value: string
CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Duration
Section titled “Duration”public double? Duration { get; }Duration in seconds.
Value: double?
public int? Fps { get; }Frames per second.
Value: int?
FrameImages
Section titled “FrameImages”public IReadOnlyList<VideoFrameFile>? FrameImages { get; }Normalized frames.
Value: IReadOnlyList<VideoFrameFile>
GenerateAudio
Section titled “GenerateAudio”public bool? GenerateAudio { get; }Whether to generate audio.
Value: bool?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers.
Value: IReadOnlyDictionary<string, string>
public VideoModelFile? Image { get; }Resolved start image.
Value: VideoModelFile
InputReferences
Section titled “InputReferences”public IReadOnlyList<VideoModelFile>? InputReferences { get; }Normalized references. Null when frames were provided.
Value: IReadOnlyList<VideoModelFile>
public int N { get; }Video count for this call.
Value: int
Operation
Section titled “Operation”public object? Operation { get; }Opaque operation for a status call.
Value: object
Prompt
Section titled “Prompt”public string? Prompt { get; }Prompt text.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement ProviderOptions { get; }Provider options.
Value: JsonElement
Resolution
Section titled “Resolution”public string? Resolution { get; }Resolution.
Value: string
public double? Seed { get; }Seed.
Value: double?
WebhookUrl
Section titled “WebhookUrl”public string? WebhookUrl { get; }Webhook URL for a start call.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product