
Animate an approved starting image
Provide a reachable image URL and describe the motion, camera behavior and elements that should remain stable.
Direct 3–30 second clips with text, a starting image, up to eight keyframes, and an optional final frame at up to 1080p.
kling-4-0Your generated video will appear here.
Set your inputs, then generate.
Compare this model with endpoints that support the same operation, or continue to a workflow guide built around a specific product requirement.
Kling 4.0 is a Kuaishou video API route for text-to-video and image-to-video generation. In addition to prompt, resolution, aspect ratio and duration, its published schema includes reference images, keyframes and a last-image input for more structured video requests.


Provide a reachable image URL and describe the motion, camera behavior and elements that should remain stable.

Use the published keyframe or ending-image fields when the request needs more structure than a single prompt.

Generate clips from the same written scene across supported resolutions, aspect ratios and durations.
Configure the published inputs, submit an authenticated task, and track the same task ID until the Kling 4.0 result is ready.
Start from a written scene, or upload an opening image when composition and subject identity need visual guidance.
Attach keyframes or a final image only when the sequence needs more structure than a single prompt.
Select 3–30 seconds, resolution, and ratio, review the calculated total, then submit and track the task.
Choose Kling 4.0 when your workflow may start from text, a still image or a more deliberate frame sequence. The extra frame inputs make it worth comparing with simpler prompt-only routes before designing your upload UI.
Compare published configurations and the calculated cost for one request. Video totals include the selected duration; image totals are calculated per output.
| Configuration | Unit price | One request | 100 requests |
|---|---|---|---|
| image to video · 1080p · 5 seconds | $0.2632 / second | $1.316 | $131.6 |
| image to video · 720p · 5 seconds | $0.17584 / second | $0.8792 | $87.92 |
| text to video · 1080p · 5 seconds | $0.2632 / second | $1.316 | $131.6 |
| text to video · 720p · 5 seconds | $0.17584 / second | $0.8792 | $87.92 |
Review the accepted values and requirements for every published operation before you build the request body.
| Parameter | Accepted values | Requirement |
|---|---|---|
prompt | Text, up to 1000 characters | Required |
resolution | 720p, 1080p | Required |
aspect_ratio | 16:9, 9:16, 1:1, 21:9 | Optional |
duration_seconds | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | Required |
| Parameter | Accepted values | Requirement |
|---|---|---|
prompt | Text, up to 1000 characters | Required |
image_urls | Up to 1 URLs | Required |
resolution | 720p, 1080p | Required |
aspect_ratio | 16:9, 9:16, 1:1, 21:9 | Optional |
keyframe_urls | Up to 8 URLs | Optional |
last_image_urls | Up to 1 URLs | Optional |
duration_seconds | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | Required |
The current image-to-video schema accepts up to eight keyframe URLs, plus one starting image and one optional last image.
The route publishes every whole-second duration from 3 through 30 seconds at 720p or 1080p.
Text to Video, Image to Video. The playground shows only priced configurations with a parameter definition. Live availability is checked before enabling submission.
Configure your request, open the API tab, and copy the example. It submits to our task API and polls the returned task ID. Keep your API key on your server.
Read the Kling 4.0 API reference →Kling 4.0 stands out for eight keyframes and 3–30 second control. Compare MiniMax H3 for 2K, Seedance 2.5 for audio, and Veo for seed and negative prompting.
Swipe horizontally to compare every column.
| Model | Provider | Supported modes | Key controls | Published unit price |
|---|---|---|---|---|
| Kling 4.0Current model | Kuaishou | Image to Video, Text to Video | prompt, resolution, aspect ratio, duration seconds, image urls | $0.17584 / secondView API |
| MiniMax H3 | MiniMax | Text to Video, Image to Video | prompt, resolution, aspect ratio, duration seconds, image urls | $0.056 / secondView API |
| Seedance 2.5 | ByteDance | Text to Video, Image to Video | prompt, resolution, aspect ratio, generate audio, duration seconds | $0.196 / secondView API |
| Veo 3.1 Standard | Text to Video, Image to Video | seed, prompt, resolution, aspect ratio, generate audio | $0.28 / secondView API |