PHP code example of aisdk / bytedance

1. Go to this page and download the library: Download aisdk/bytedance 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 / bytedance example snippets


$video = Generate::video('A cinematic sunrise')
    ->model(ByteDance::model('doubao-seedance-1-0-pro-250528'))
    ->aspectRatio('16:9')
    ->duration(5)
    ->run(timeout: 600);