Base URL:
https://platform.runblob.ioPOST /v1/kling/o3-video/generate
Creates a video generation task using Kling 3.0-omni (O3 Video) model.Text description of the video (1-2500 characters)
Array of image URLs for image-to-video generation (max 5 images, cannot mix with
images_base64)Array of base64-encoded images for image-to-video generation (max 5 images, cannot mix with
images_url)Video duration in seconds:
"5", "10", or "15"Video aspect ratio:
"16:9"- Landscape (YouTube, Desktop) - default"9:16"- Portrait (Stories, TikTok, Reels)"1:1"- Square (Instagram Feed)
Quality mode:
"kling_o3"- Standard 720p quality (faster, cheaper) - default"kling_o3_pro"- Pro 1080p quality (higher quality)
Keep original sound from input video/images (if applicable)
Webhook URL for completion notifications
Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD (varies by duration and mode)
Video generation typically takes 2-10 minutes depending on duration and mode. Use the
generation_id to check status or set up webhooks for notifications.Check status: GET /v1/kling/o3-video/generations/{generation_id}Generation Modes
Text-to-Video
Text-to-Video
Generate video from text description only:
- No input images required
- AI creates entire video from scratch
- Best for creative scenes, animations, concepts
Image-to-Video
Image-to-Video
Animate existing images:
- Provide 1-5 reference images
- AI animates and brings images to life
- Best for character animation, product demos
Video Parameters
Duration Options
Duration Options
Choose video length:
- 5 seconds: Quick clips, fast generation (default)
- 10 seconds: Standard videos, moderate generation time
- 15 seconds: Longer content, extended generation time
Longer durations cost more and take longer to generate
Quality Modes
Quality Modes
Standard vs Pro:
| Model | Resolution | Speed | Best For |
|---|---|---|---|
kling_o3 | 720p | Faster | Quick previews, social media |
kling_o3_pro | 1080p | Slower | Professional use, high quality |
Aspect Ratios
Aspect Ratios
3 aspect ratio options:
| Ratio | Format | Use Case |
|---|---|---|
16:9 | Landscape | YouTube, Desktop (default) |
9:16 | Portrait | Stories, TikTok, Reels |
1:1 | Square | Instagram Feed |
Audio Settings
Audio Settings
Keep original sound:
keep_original_sound: true- Preserve audio from input (default)keep_original_sound: false- Generate silent video
Only applicable for image-to-video with audio-enabled images/videos
Error Responses
- 400 Bad Request
- 402 Payment Required
- 422 Unprocessable Entity