Kling AI Video Generation
Overview
Use Kling AI to generate high-quality videos:
- Text-to-Video
- Image-to-Video
Usage
Text-to-Video
powershell -ExecutionPolicy Bypass -File "skills/kling-video/scripts/generate.ps1" -Mode text -Input1 "video description" -Duration 5 -AspectRatio "16:9"
Parameters:
| Parameter | Description | Default | Options |
|---|---|---|---|
| Input1 | Video description prompt | - | Any text |
| Duration | Video length | 5 | 5, 10 (seconds) |
| AspectRatio | Aspect ratio | 16:9 | 16:9, 9:16, 1:1 |
Examples:
# Generate 5s landscape video
powershell -File "skills/kling-video/scripts/generate.ps1" -Mode text -Input1 "A cute orange cat dancing ballet on grass, sunny day" -Duration 5 -AspectRatio "16:9"
# Generate 10s portrait video
powershell -File "skills/kling-video/scripts/generate.ps1" -Mode text -Input1 "Cyberpunk city night scene with neon lights" -Duration 10 -AspectRatio "9:16"
Query Task Status
powershell -ExecutionPolicy Bypass -File "skills/kling-video/scripts/generate.ps1" -Mode query -Input1 "task_id"
Workflow
- Receive user request -> Extract video description, duration, ratio
- Submit generation task -> Call Kling API
- Return task ID -> Inform user of estimated wait time (2-5 min)
- Poll for result -> Query task status
- Return video -> Provide download link when done
Example Interaction
User says: "Generate a video of a cat walking on the beach"
Execute:
powershell -ExecutionPolicy Bypass -File "skills/kling-video/scripts/generate.ps1" -Mode text -Input1 "A cute orange cat walking on beach sand, ocean waves, sunset, warm and healing atmosphere" -Duration 5 -AspectRatio "16:9"
Expected Output:
Mode: text
Input: A cute orange cat walking on beach sand...
Duration: 5
AspectRatio: 16:9
[Kling Video] Configured
Access Key: ANtMF4***
Notes
- Generation time: 2-5 minutes
- Better prompts produce better results
- Requires network access to Kling API
API Credentials
Configured:
- Access Key: ANtMF4***HDAa
- Secret Key: PTCrRY***CNCk
- API: https://api.klingai.com