Skip to content

VideoModelCall

Namespace: Vercel.AI.Operations

public sealed class VideoModelCall

Arguments shared by generate, start, and status.

Inheritance: object

View source

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

View source

public string? AspectRatio { get; }

Aspect ratio.

Value: string

View source

public CancellationToken CancellationToken { get; }

Cancellation token.

Value: CancellationToken

View source

public double? Duration { get; }

Duration in seconds.

Value: double?

View source

public int? Fps { get; }

Frames per second.

Value: int?

View source

public IReadOnlyList<VideoFrameFile>? FrameImages { get; }

Normalized frames.

Value: IReadOnlyList<VideoFrameFile>

View source

public bool? GenerateAudio { get; }

Whether to generate audio.

Value: bool?

View source

public IReadOnlyDictionary<string, string> Headers { get; }

Headers.

Value: IReadOnlyDictionary<string, string>

View source

public VideoModelFile? Image { get; }

Resolved start image.

Value: VideoModelFile

View source

public IReadOnlyList<VideoModelFile>? InputReferences { get; }

Normalized references. Null when frames were provided.

Value: IReadOnlyList<VideoModelFile>

View source

public int N { get; }

Video count for this call.

Value: int

View source

public object? Operation { get; }

Opaque operation for a status call.

Value: object

View source

public string? Prompt { get; }

Prompt text.

Value: string

View source

public JsonElement ProviderOptions { get; }

Provider options.

Value: JsonElement

View source

public string? Resolution { get; }

Resolution.

Value: string

View source

public double? Seed { get; }

Seed.

Value: double?

View source

public string? WebhookUrl { get; }

Webhook URL for a start call.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product