PHPackages                             aisdk/replicate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. aisdk/replicate

ActiveLibrary[Image &amp; Media](/categories/media)

aisdk/replicate
===============

Official Replicate provider for the PHP AI SDK.

v0.8.0(1mo ago)01MITPHPPHP ^8.3CI passing

Since Jul 15Pushed 1mo agoCompare

[ Source](https://github.com/phpaisdk/replicate)[ Packagist](https://packagist.org/packages/aisdk/replicate)[ Docs](https://github.com/phpaisdk/replicate)[ RSS](/packages/aisdk-replicate/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

aisdk/replicate
===============

[](#aisdkreplicate)

[![GitHub Workflow Status](https://camo.githubusercontent.com/0489648c03b92e161e1a63c72be18e2061a5bb6bf82f22f387af455078da0350/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706870616973646b2f7265706c69636174652f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/phpaisdk/replicate/actions)[![Total Downloads](https://camo.githubusercontent.com/dc9be39cb6f93d17307892974b7814f095e8dfedd97cfb4a551f648ff9079c20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616973646b2f7265706c6963617465)](https://packagist.org/packages/aisdk/replicate)[![Latest Version](https://camo.githubusercontent.com/0fdea45bc7b56d45df8f6f977406992d30a008c7ce61286e1f187da5882ebbef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616973646b2f7265706c6963617465)](https://packagist.org/packages/aisdk/replicate)[![License](https://camo.githubusercontent.com/139ebf6ca84c1b5094046a294dd0b5e38652b3464247460288b68dc5fe7bb67a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616973646b2f7265706c6963617465)](https://packagist.org/packages/aisdk/replicate)[![Why PHP in 2026](https://camo.githubusercontent.com/d2b9305e630caf7daae4ca023de39ece0b885c37461629d42961533f00868b76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5768795f5048502d696e5f323032362d3741383645383f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d313831383162)](https://whyphp.dev)

---

The Replicate provider package for the PHP AI SDK supports image and video generation via the `/v1/predictions` API (`prefer: wait` + polling), consistent with `@ai-sdk/replicate`.

Installation
------------

[](#installation)

```
composer require aisdk/replicate
```

Configuration
-------------

[](#configuration)

VariablePurpose`REPLICATE_API_TOKEN`API token (required).`REPLICATE_BASE_URL`Defaults to `https://api.replicate.com/v1`.Model IDs use either `owner/name` or `version-hash:version` forms as in the upstream SDK.

Usage
-----

[](#usage)

```
use AiSdk\Generate;
use AiSdk\Replicate;

Generate::configure(Generate::factory()->make());

$result = Generate::image()
    ->model(Replicate::image('black-forest-labs/flux-schnell'))
    ->prompt('A red balloon')
    ->run();
```

Video jobs resolve to a `VideoJob` with a result URL in `VideoData`. Provider options under `replicate` support `maxWaitTimeInSeconds`, `pollIntervalMs`, and `pollTimeoutMs`, plus model-specific input fields.

Documentation
-------------

[](#documentation)

- [PHP AI SDK documentation](https://phpaisdk.com/docs)
- [Replicate documentation](https://phpaisdk.com/docs/replicate)

Community
---------

[](#community)

- [Contributing](https://github.com/phpaisdk/.github/blob/main/CONTRIBUTING.md)
- [Support](https://github.com/phpaisdk/.github/blob/main/SUPPORT.md)
- For private security reports, email .

License
-------

[](#license)

MIT.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef29d1962da41e7526023f215cf844494e209b2fd163742084cb919a3b508021?d=identicon)[aisdk](/maintainers/aisdk)

---

Top Contributors

[![RanaMoizHaider](https://avatars.githubusercontent.com/u/58527494?v=4)](https://github.com/RanaMoizHaider "RanaMoizHaider (3 commits)")

---

Tags

imageaivideoTranscriptionspeechfalaisdk

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aisdk-replicate/health.svg)

```
[![Health](https://phpackages.com/badges/aisdk-replicate/health.svg)](https://phpackages.com/packages/aisdk-replicate)
```

###  Alternatives

[media-alchemyst/media-alchemyst

An Object Oriented wrapper for easy multimedia conversion, based on Imagine, FFMpeg, SwfTools, Unoconv and other libs

68222.4k2](/packages/media-alchemyst-media-alchemyst)[nilportugues/sitemap-component

Standalone sitemap builder 100% standards compliant. Build for PHP5.3 and above.

5058.9k1](/packages/nilportugues-sitemap-component)[sonrisa/sitemap-component

Standalone sitemap builder 100% standards compliant. Build for PHP5.3 and above.

5017.6k](/packages/sonrisa-sitemap-component)[mediamonks/sonata-media-bundle

A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle

109.9k](/packages/mediamonks-sonata-media-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
