PromptBuilder::generateVideos( int|null $candidateCount = null ): WordPressAiClientBuilderslist<File>

In this article

Generates multiple videos from the prompt.

Parameters

$candidateCountint|nulloptional
The number of videos to generate.

Default:null

Return

WordPressAiClientBuilderslist<File> The generated video files.

Source

public function generateVideos(?int $candidateCount = null): array
{
    if ($candidateCount !== null) {
        $this->usingCandidateCount($candidateCount);
    }
    return $this->generateVideoResult()->toFiles();
}

Changelog

VersionDescription
1.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.