1. Go to this page and download the library: Download hanshs474/saymaker 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/ */
hanshs474 / saymaker example snippets
$sm = new SayMaker\SayMaker(getenv('SAYMAKER_API_KEY'));
$url = $sm->generate('a paper-cut layered mountain range at dusk');
$clip = $sm->generateVideo('a paper boat drifting down a rain gutter, low angle');
$sm->generate('isometric diorama of a ramen shop at night', ['aspect_ratio' => '16:9']);
$sm->generate('product shot of a glass perfume bottle on wet slate', ['model' => 'gpt-image-2-5-flare']);
$sm->generate(
'change the jacket to dark green, keep the face, pose and background exactly as they are',
['image_url' => 'https://example.com/portrait.jpg'],
);
$sm->generateVideo('a fox trotting through fresh snow at dawn, tracking shot', ['duration' => 6]);
$sm->generateVideo('the camera slowly orbits the statue', ['image_url' => 'https://example.com/statue.jpg']);
$sm->generateVideo('a street drummer in the rain', ['model' => 'veo-3-1', 'resolution' => '1080p']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.