PHP code example of aisdk / alibaba

1. Go to this page and download the library: Download aisdk/alibaba library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aisdk / alibaba example snippets


$video = Generate::video('A cinematic city at night')
    ->model(Alibaba::model('wan2.7-t2v'))
    ->resolution('1920x1080')
    ->duration(5)
    ->run(timeout: 600);