computerender/computerender-php

PHP client for the computerender API

1.0.2 2023-01-24 07:19 UTC

This package is auto-updated.

Last update: 2024-04-24 09:58:56 UTC


README

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