PHP code example of r11baka / deepai

1. Go to this page and download the library: Download r11baka/deepai 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/ */

    

r11baka / deepai example snippets

injectablephp
$dp = new \R11baka\Deepai\Deepai("{YOU API_KEY FETCHED FROM DEEP AI}");
$resp = $dp->colorizeFromPath('./lena.jpg');
echo $resp->getUrl(); // returns url with colorized image
echo $resp->getId(); // return id for colorized job
injectablephp
$dp = new \R11baka\Deepai\Deepai("{YOU API_KEY FETCHED FROM DEEP AI}");
$resp = $dp->colorize(file_get_contents("./lena.jpg"));
echo $resp->getUrl(); // returns url with colorized image
echo $resp->getId(); // return id for colorized job