Base URL:
https://platform.runblob.ioPOST /v1/kling/o1-video/generate
Creates a video generation task from text description or images using Kling O1 Video model.Text description of the video (1-2500 characters)
Video duration in seconds
- Text-to-video:
"5"or"10" - Image-to-video:
"3","4","5","6","7","8","9","10"
Video aspect ratio:
"16:9" (landscape), "9:16" (portrait), "1:1" (square)Array of base64-encoded images (max 5, JPEG/PNG/WebP)
Array of image URLs (max 5, alternative to
images_base64)Keep original audio from images
Webhook URL for completion notifications
Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD
Video generation typically takes 1-10 minutes. Use the
generation_id to check status or set up webhooks for notifications.Check status: GET /v1/kling/o1-video/generations/{generation_id}Generation Modes
The API supports 2 generation modes:1. Text-to-Video
Generate video from text prompt only (no images).- Duration:
"5"or"10"seconds - No image parameters required
2. Image-to-Video
Animate up to 5 images with text prompt.- Duration:
"3","4","5","6","7","8","9","10"seconds - Formats: JPEG, PNG, WEBP
- Max size: 10 MB per image
- Max images: 5
Multi-Image Support
How It Works
How It Works
- Images are processed in order
- Each image is referenced internally as
@Image1,@Image2, etc. - All images are combined into the final video
- The AI uses the prompt to guide the animation
Image Requirements
Image Requirements
- Max size: 10 MB per image
- Formats: JPEG, PNG, WebP
- Max total: 5 images per request
- Either URLs or Base64 (not both)
Duration Options
Duration Options
Text-to-video:
- 5 seconds
- 10 seconds
- 3, 4, 5, 6, 7, 8, 9, or 10 seconds
Aspect Ratios
| Aspect Ratio | Use Case | Resolution |
|---|---|---|
| 16:9 | Landscape, YouTube, widescreen | Optimized for horizontal displays |
| 9:16 | Portrait, TikTok, Instagram Reels | Optimized for vertical/mobile |
| 1:1 | Square, Instagram feed | Balanced format |