PHP code example of aisdk / sakana
1. Go to this page and download the library: Download aisdk/sakana 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 / sakana example snippets
use AiSdk\Generate;
use AiSdk\Sakana;
Sakana::create(['apiKey' => $_ENV['SAKANA_API_KEY']]);
$result = Generate::text('Explain this code briefly.')
->model(Sakana::model('fugu'))
->run();