Search by

aisdk / replicate

aisdk

Official Replicate provider for the PHP AI SDK.

Package info

github.com/phpaisdk/replicate

pkg:composer/aisdk/replicate

Fund package maintenance!

Open Collective

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.11.0 2026-10-31 02:58 UTC

This package is auto-updated.

Last update: 2026-11-09 13:27:27 UTC


README

Image generation with Replicate for the framework-agnostic PHP AI SDK. Also supports video generation.

Installation

composer require aisdk/replicate

Set REPLICATE_API_TOKEN in your environment.

Usage

use AiSdk\Generate;
use AiSdk\Replicate;

$result = Generate::image('A mountain lake at sunrise, soft natural light.')
    ->model(Replicate::model('black-forest-labs/flux-2-pro'))
    ->run();

$result->output->save(__DIR__.'/image.png');

Documentation

Read the documentation for configuration, supported features, and more examples.

Contributing ยท Support

License

The MIT License (MIT). See LICENSE for details.