aisdk / klingai
Kling AI provider for PHP AI SDK
Fund package maintenance!
v0.11.0
2026-10-31 02:58 UTC
Requires
- php: ^8.3
- aisdk/core: ^0.11.0
Requires (Dev)
- laravel/pint: ^1.18
- nyholm/psr7: ^1.8
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Video generation with Kling AI for the framework-agnostic PHP AI SDK.
Installation
composer require aisdk/klingai
Set KLINGAI_ACCESS_KEY and KLINGAI_SECRET_KEY, or provide a bearer token through KLINGAI_API_KEY.
Usage
use AiSdk\Generate; use AiSdk\KlingAi; $result = Generate::video('A paper boat drifting along a quiet river.') ->model(KlingAi::model('kling-v3-omni')) ->aspectRatio('16:9') ->duration(5) ->run(timeout: 600); $result->output->save(__DIR__.'/video.mp4');
Documentation
Read the documentation for configuration, supported features, and more examples.
License
The MIT License (MIT). See LICENSE for details.