Interface ImageToVideoRequest

Request payload for image-to-video generation.

Passed to IVideoGenerator.imageToVideo by the high-level orchestration layer. Requires a source image that serves as the first frame (or style reference) for the generated video.

interface ImageToVideoRequest {
    modelId?: string;
    image: Buffer<ArrayBufferLike>;
    prompt: string;
    negativePrompt?: string;
    durationSec?: number;
    aspectRatio?: VideoAspectRatio;
    outputFormat?: VideoOutputFormat;
    fps?: number;
    seed?: number;
    userId?: string;
    providerOptions?: Record<string, unknown>;
}

Properties

modelId?: string

Model identifier to use for generation.

image: Buffer<ArrayBufferLike>

Source image as a raw Buffer.

prompt: string

Text prompt describing the desired motion / narrative.

negativePrompt?: string

Negative prompt describing content to avoid.

durationSec?: number

Desired output duration in seconds.

aspectRatio?: VideoAspectRatio

Desired aspect ratio.

outputFormat?: VideoOutputFormat

Output container format. Defaults to 'mp4'.

fps?: number

Frames per second for the output video.

seed?: number

Seed for reproducible output.

userId?: string

Identifier of the requesting user.

providerOptions?: Record<string, unknown>

Arbitrary provider-specific options.