Calling Kling 4, and keeping a fallback for when you need one
Updated 2026-10-17
Kling 4.0 is callable as wavespeed/kling-v4.0, and today a single host serves it. That makes a fallback worth planning: a new model on one host can have limited capacity, and a request pinned to the only host cannot fail over to another Kling 4 host. This article shows the request, the fallback options and a config layout that keeps all of it a one-line change.
A first request
POST https://videorouter.sh/api/v1/videos
{
"model": "wavespeed/kling-v4.0",
"prompt": "a paper airplane gliding over a city at dusk",
"duration_secs": 8,
"resolution": "720p",
"aspect_ratio": "16:9"
}
Duration is 3 to 30 seconds. Add start_image_url (and optionally end_image_url) for image-to-video, or input_references and input_video_references for reference mode. A call takes start and end images or reference files, not both. A 21:9 aspect ratio applies to text and reference calls; image-to-video follows the input image.
Fallback options
| Need | Fallback | Trade-off |
|---|---|---|
| Same family, lower cost or shorter clips | Kling v3.0 (kling-v3.0-std or -pro) | Up to 15 seconds on most hosts; several hosts per tier, so more room to route around an outage. |
| Reference-driven clips | Kling O3 or a Seedance reference-to-video row | Different caps on images, video and audio per model; check the model page. |
| Long clips that follow a motion reference | Kling Motion Control with input_video_url | Output length follows the reference video; it does not generate motion from text. |
Config layout that keeps the swap cheap
# config.py
VIDEO_PROFILES = {
"draft": {"model": "kling-v3.0-std", "max_secs": 15},
"final": {"model": "wavespeed/kling-v4.0", "max_secs": 30},
"fallback": {"model": "kling-v3.0-pro", "max_secs": 15},
}
def build_request(profile, prompt, secs, start_image=None):
cfg = VIDEO_PROFILES[profile]
secs = min(secs, cfg["max_secs"]) # clamp per model, never assume a length
body = {"model": cfg["model"], "prompt": prompt, "duration_secs": secs}
if start_image:
body["start_image_url"] = start_image
return body
Four habits make this work: keep the model id in config, keep per-model limits (maximum duration, supported inputs, resolutions) in config, make stitching a function of max_secs so a higher cap produces fewer segments, and keep a baseline set of prompts and outputs to replay when you change models.
Retrying on a different model
A request to a specific model id is not rerouted to a different model. If the Kling 4 job fails or the host is slow, your own code decides what happens next: retry the same id, or resubmit the same prompt to the fallback profile. Keep the retry in one function so the policy is easy to change. Note that a failed upstream job is not billed.
What not to do
- Do not hard-code a clip length in business logic.
- Do not assume a Kling 4 request can use a second Kling 4 host; only one is serving it today.
- Do not use the 30-second ceiling for everything. Test the lengths you ship, since longer clips drift more.
The live price table compares current Kling models across hosts, the comparison page lists what is confirmed versus reported, and the quickstart has the base request. To start, create a key.
Frequently asked questions
How do I call Kling 4.0?
POST to /v1/videos with model wavespeed/kling-v4.0, a prompt, duration_secs between 3 and 30, and optionally resolution (720p or 1080p) and aspect_ratio.
Does a failed Kling 4 request fall back to another model?
No. A request for a specific model id stays on that model. Your code chooses whether to retry or resubmit to a fallback such as Kling v3.0.
Can I use reference images and a reference video?
Yes, up to 10 images and one reference video through input_references and input_video_references. A call uses references or start/end images, not both.
Is end_image_url supported on Kling 4?
Yes, together with start_image_url. It is rejected on the Kling v3 rows.
Keep reading
- How to Adopt the Kling 4.0 API Without Locking Yourself In
- Kling 3 vs Kling 4 API: What Is Confirmed vs What Is Reported
- How to Test and Monitor the Kling 4.0 API (Checklist + Script)
VideoRouter puts it next to dozens of other video and image models behind one API key, so you can compare providers, prices and fail over automatically. Compare providers on VideoRouter →