kling_generate_video
Generate AI video from text prompts by describing the scene, motion, style, and mood. Choose model, aspect ratio, duration, and mode. No reference images needed. Output includes task ID and video URLs.
Instructions
Generate AI video from a text prompt using Kling.
This is the simplest way to create video - just describe what you want and Kling
will generate a high-quality AI video.
Use this when:
- You want to create a video from a text description
- You don't have reference images
- You want quick video generation
For using reference images (start/end frames), use kling_generate_video_from_image instead.
Returns:
Task ID and generated video information including URLs and state.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the video to generate. Be descriptive about the scene, motion, style, and mood. Examples: 'A cat walking through a garden with butterflies', 'Astronauts shuttle from space to volcano', 'Ocean waves crashing on a beach at sunset' | |
| model | No | Kling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-v2-6', 'kling-v3', 'kling-v3-omni', 'kling-video-o1'. | kling-v2-master |
| mode | No | Generation mode. 'std' (standard, default) for faster generation, 'pro' for higher quality. | std |
| aspect_ratio | No | Video aspect ratio. Options: '16:9' (landscape, default), '9:16' (portrait), '1:1' (square). | 16:9 |
| duration | No | Video duration in seconds. For kling-v3/kling-v3-omni: 3-15 (integer). Other models: 5 or 10. | |
| generate_audio | No | Whether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). Default is false. | |
| negative_prompt | No | Things to avoid in the video. Example: 'blurry, low quality, distorted faces' | |
| cfg_scale | No | Classifier-free guidance scale. Higher values follow the prompt more strictly. Typical range: 0.0-1.0. | |
| camera_control | No | Camera control as JSON string. Example: '{"type": "simple", "config": {"horizontal": 5, "vertical": 0, "pan": 0, "tilt": 0, "roll": 0, "zoom": 0}}'. Types: 'simple', 'down_back', 'forward_up', 'left_turn_forward', 'right_turn_forward'. | |
| timeout | No | Timeout in seconds for the API to return data. Default is 300. | |
| callback_url | No | Webhook callback URL for asynchronous notifications. When provided, the API will call this URL when the video is generated. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |