VideoModelFile
Namespace: Vercel.AI.Operations
public sealed class VideoModelFileA file or URL passed to a video model.
Inheritance: object
Properties
Section titled “Properties”public byte[]? Data { get; }Bytes.
Value: byte[]
MediaType
Section titled “MediaType”public string? MediaType { get; }Media type.
Value: string
public string Type { get; }url or file.
Value: string
public string? Url { get; }URL.
Value: string
Methods
Section titled “Methods”FromFile(byte[], string)
Section titled “FromFile(byte[], string)”public static VideoModelFile FromFile(byte[] data, string mediaType)Creates a binary file.
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | |
mediaType |
string |
Returns: VideoModelFile
FromUrl(string, string?)
Section titled “FromUrl(string, string?)”public static VideoModelFile FromUrl(string url, string? mediaType = null)Creates a URL file.
Parameters
| Name | Type | Description |
|---|---|---|
url |
string | |
mediaType |
string |
Returns: VideoModelFile
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product