This is a PHP client for Replicate. It lets you run models from your PHP code and do various other things on Replicate.
Investing on this package is defintely a good move from you. You can support by donating to:
PayPal https://www.paypal.com/paypalme/sawirricardo. BCA 8330123584
You can install the package via composer:
composer require sawirricardo/replicate-php
$token = 'sxsaxada';
$client = new Sawirricardo\Replicate\Replicate($token);
$prediction = $client->predictions()->create('sd-v1.4', [
'prompt' => 'my exciting project',
]);
echo $prediction->json('id');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.