WordPress\AiClient\Providers\Models\VideoGeneration\Contracts

VideoGenerationModelInterface{}interfaceWP 1.3.0

Interface for models that support video generation.

Provides synchronous methods for generating videos from prompts.

No Hooks.

Usage

$VideoGenerationModelInterface = new VideoGenerationModelInterface();
// use class methods

Methods

  1. public generateVideoResult(array $prompt)

Changelog

Since 1.3.0 Introduced.

VideoGenerationModelInterface{} code WP 7.0

interface VideoGenerationModelInterface
{
    /**
     * Generates videos from a prompt.
     *
     * @since 1.3.0
     *
     * @param list<Message> $prompt Array of messages containing the video generation prompt.
     * @return GenerativeAiResult Result containing generated videos.
     */
    public function generateVideoResult(array $prompt): GenerativeAiResult;
}