aisdk / klingai
Kling AI provider for PHP AI SDK
Fund package maintenance!
v0.8.0
2026-07-15 09:29 UTC
Requires
- php: ^8.3
- aisdk/core: ^0.8.0
Requires (Dev)
- laravel/pint: ^1.18
- nyholm/psr7: ^1.8
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.0
README
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
Community
- Contributing
- Support
- For private security reports, email security@phpaisdk.com.