Skip to content

VideoPrompt

Namespace: Vercel.AI.Operations

public sealed class VideoPrompt

Text prompt or a prompt with a start image.

Inheritance: object

View source

public VideoPrompt(string? text)

Creates a text prompt.

Parameters

Name Type Description
text string

View source

public VideoPrompt(string? text, object? image)

Creates a prompt with an image.

Parameters

Name Type Description
text string
image object

View source

public bool HasImage { get; }

True when the object form was used.

Value: bool

View source

public object? Image { get; }

Start image.

Value: object

View source

public string? Text { get; }

Prompt text.

Value: string

View source

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