PHPackages                             aisdk/klingai - 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. aisdk/klingai

ActiveLibrary

aisdk/klingai
=============

Kling AI provider for PHP AI SDK

v0.8.0(1mo ago)03MITPHPPHP ^8.3

Since Jul 12Pushed 1mo agoCompare

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

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Kling AI provider
=================

[](#kling-ai-provider)

[![GitHub Workflow Status](https://camo.githubusercontent.com/db5ecebad1e2a8e146c7657fe7f7ff02664c3880249efc7505f5850620b8ec24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706870616973646b2f6b6c696e6761692f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/phpaisdk/klingai/actions)[![Total Downloads](https://camo.githubusercontent.com/5fd36b47b54788d925c222eb951d2ed13e1b471d8d4708fa583a728dbc44f4b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616973646b2f6b6c696e676169)](https://packagist.org/packages/aisdk/klingai)[![Latest Version](https://camo.githubusercontent.com/b67c5fd054ab42197b612cd2401d8ed5b047bf4cbf9d4c4ae72f70e2c3edaba3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616973646b2f6b6c696e676169)](https://packagist.org/packages/aisdk/klingai)[![License](https://camo.githubusercontent.com/6182f6a7a73c7d5beb8819e468c36b451b8fe648af1777d70e197fc3477cc0d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616973646b2f6b6c696e676169)](https://packagist.org/packages/aisdk/klingai)[![Why PHP in 2026](https://camo.githubusercontent.com/d2b9305e630caf7daae4ca023de39ece0b885c37461629d42961533f00868b76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5768795f5048502d696e5f323032362d3741383645383f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d313831383162)](https://whyphp.dev)

---

Supports Kling image generation, text-to-speech, text-to-video, image-to-video, motion control, and current Omni image/video workflows with image, video, element, voice, and multi-shot references.

Use the current `KLINGAI_API_KEY`, or legacy `KLINGAI_ACCESS_KEY` and `KLINGAI_SECRET_KEY` credentials.

```
$video = Generate::video('A cinematic product reveal')
    ->model(KlingAi::model('kling-v3-omni'))
    ->aspectRatio('16:9')
    ->duration(8)
    ->providerOptions('klingai', ['sound' => 'on'])
    ->run(timeout: 600);
```

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

[](#documentation)

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

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 .

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Every ~1 days

Total

3

Last Release

47d 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 (6 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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