Skip to content

VideoModelFile

Namespace: Vercel.AI.Operations

public sealed class VideoModelFile

A file or URL passed to a video model.

Inheritance: object

View source

public byte[]? Data { get; }

Bytes.

Value: byte[]

View source

public string? MediaType { get; }

Media type.

Value: string

View source

public string Type { get; }

url or file.

Value: string

View source

public string? Url { get; }

URL.

Value: string

View source

public static VideoModelFile FromFile(byte[] data, string mediaType)

Creates a binary file.

Parameters

Name Type Description
data byte[]
mediaType string

Returns: VideoModelFile

View source

public static VideoModelFile FromUrl(string url, string? mediaType = null)

Creates a URL file.

Parameters

Name Type Description
url string
mediaType string

Returns: VideoModelFile

View source

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