Base URL:
https://platform.runblob.ioPOST /v1/kling/generate
Creates a video generation task from text description using Kling AI models.Text description of the video (1-2500 characters)
What should NOT be in the video (max 2500 characters)
Model to use.Available models:
kling_2.6(NEW: Audio-enabled, always Pro quality)kling_2.5_turbo(Standard/Turbo)kling_2.5_turbo_pro(Professional/Turbo Pro)kling_2.1(Standard)kling_2.1_pro(Professional)kling_2.1_master(Master, no pro mode)kling_1.6(Standard)kling_1.6_pro(Professional)
Duration:
"5" (5 seconds) or "10" (10 seconds)Video aspect ratio:
"16:9", "9:16", "1:1"For image-to-video mode, aspect ratio is automatically determined from the input image and should not be specified.
Creativity balance (0.0-1.0). 0.0 = maximum creativity, 1.0 = strict prompt following
Reproducibility seed (0-2147483647)
Webhook URL for completion notifications
Base64-encoded image for Image-to-Video (JPEG/PNG/WEBP)
URL of image for Image-to-Video
Response
Video generation typically takes 2-5 minutes. Use the
generation_id to check status or set up webhooks for notifications.Get Generation Status Response
Generation Modes
The API supports 2 generation modes:1. Text-to-Video
Generate video from text prompt only (no images). Models:kling_1.6, kling_2.1_master, kling_2.5_turbo, kling_2.6
2. Image-to-Video
Animate a single image with text prompt usingimage_base64 or image_url parameter.
- Formats: JPEG, PNG, WEBP
- Max size: ~10 MB
- Models:
kling_1.6,kling_2.1,kling_2.1_master,kling_2.5_turbo,kling_2.6(and their_provariants)
Important: You cannot use both
image_base64 and image_url in the same request. For image-to-video mode, aspect ratio is taken from the input image automatically.Models Guide
Kling 2.6 (NEW)
- Code:
kling_2.6 - Features:
- Text-to-video: Yes
- Image-to-video: Yes
- Audio support: Yes
- Always Pro quality
- Priority processing
- Negative prompt: No
- CFG Scale: No
- Best for: Highest quality videos with audio support
Kling 2.5 Turbo (Default)
- Codes:
kling_2.5_turbo,kling_2.5_turbo_pro - Features:
- Text-to-video: Yes
- Image-to-video: Yes
- Negative prompt: No
- CFG Scale: No
- Best for: Fastest generation speed
Kling 2.1 Master
- Code:
kling_2.1_master - Features:
- Text-to-video: Yes
- Image-to-video: Yes
- Negative prompt: Yes
- CFG Scale: No
- Best for: High-quality text-to-video
Kling 2.1 Pro
- Codes:
kling_2.1,kling_2.1_pro - Features:
- Text-to-video: No (image required)
- Image-to-video: Yes
- Negative prompt: Yes
- CFG Scale: No
- Best for: Professional image animation
Kling 1.6
- Codes:
kling_1.6,kling_1.6_pro - Features:
- Text-to-video: Yes
- Image-to-video: Yes
- Negative prompt: Yes
- CFG Scale: Yes
- Best for: Maximum creative control
CFG Scale Guide
CFG Scale Guide
Creativity balance parameter (Kling 1.6 only):
- 0.0-0.3: Maximum creativity, AI adds interpretations
- 0.4-0.6: Balanced mode (recommended)
- 0.7-1.0: Strict prompt following, minimal deviations