Skip to content

computerender/computerender-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP client for computerender

An easy to use image generation API

Install:

composer require computerender/computerender-php

Usage:

$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) . "' />";

See more info here:

https://computerender.com/models-sd.html

Tests

Add a tests/.env file with your API key.

composer run tests