Documentation

Maho_Ai_Model_Platform_VideoProviderInterface
in

Table of Contents

Methods

generateVideo()  : array{runId: string, status: string, cost: float}
Start an async video generation job.
getLastVideoModel()  : string
Get the model used in the last generateVideo() call
getVideoPlatformCode()  : string
Get the platform code (e.g. 'nanogpt')
getVideoStatus()  : array{status: string, videoUrl?: string, error?: string}
Poll for video generation status.

Methods

generateVideo()

Start an async video generation job.

public generateVideo(string $prompt[, array<string, mixed> $options = [] ]) : array{runId: string, status: string, cost: float}
Parameters
$prompt : string
$options : array<string, mixed> = []

Supports: model, duration, aspect_ratio, resolution, imageUrl (for img2video), negative_prompt, seed

Return values
array{runId: string, status: string, cost: float}

getLastVideoModel()

Get the model used in the last generateVideo() call

public getLastVideoModel() : string
Return values
string

getVideoPlatformCode()

Get the platform code (e.g. 'nanogpt')

public getVideoPlatformCode() : string
Return values
string

getVideoStatus()

Poll for video generation status.

public getVideoStatus(string $runId, string $model) : array{status: string, videoUrl?: string, error?: string}
Parameters
$runId : string
$model : string
Return values
array{status: string, videoUrl?: string, error?: string}

status is one of: pending, in_progress, completed, failed

On this page

Search results