PHP client for computerender
An easy to use image generation API
composer require computerender/computerender-php
$prompt = "hipster cats";
$client = new Computerender\Client("<YOUR-API-KEY>");
$image = $client->generate([
'prompt' => $prompt,
]);
echo "<img src='data:image/jpeg;base64, " . base64_encode($image) . "' />";
https://computerender.com/models-sd.html
Add a tests/.env
file with your API key.
composer run tests