Generates multiple videos from the prompt.
Parameters
$candidateCountint|nulloptional- The number of videos to generate.
Default:
null
Source
public function generateVideos(?int $candidateCount = null): array
{
if ($candidateCount !== null) {
$this->usingCandidateCount($candidateCount);
}
return $this->generateVideoResult()->toFiles();
}
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.