PHP code example of aisdk / klingai
1. Go to this page and download the library: Download aisdk/klingai 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 / klingai example snippets
$video = Generate::video('A cinematic product reveal')
->model(KlingAi::model('kling-v3-omni'))
->aspectRatio('16:9')
->duration(8)
->providerOptions('klingai', ['sound' => 'on'])
->run(timeout: 600);