Klingai Hello World
Overview
This skill provides a minimal working example to generate your first AI video with Kling AI, verify your integration is functioning, and understand the basic request/response pattern.
Prerequisites
- Kling AI API key configured
- Python 3.8+ or Node.js 18+
- HTTP client library installed
Instructions
Follow these steps to create your first video:
-
Verify Authentication: Ensure your API key is configured
-
Submit Generation Request: Send a text-to-video request
-
Poll for Status: Check job status until complete
-
Download Result: Retrieve the generated video URL
-
Verify Output: Preview or download the video
Output
Successful execution produces:
- Job ID for tracking
- Video URL for download/streaming
- Thumbnail URL for preview
- Generation metadata (duration, resolution, timing)
Error Handling
See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.
Resources