Kling 4.0
Use the Kling 4.0 API for AI video generation. Generate clips from text or use an image or reference on supported routes. The catalog lists native audio. Turn a creative brief or still image into motion tests and draft shots. Compare the available provider routes, request examples, and usage prices on OpenAny.
Overview for yir
Kling 4.0 turns shot descriptions, opening and closing frames, or subject references into video with audio. Use a five-second text-to-video clip to test a camera move. If you already know how a shot should begin and end, use image-to-video to give the model those frames and generate the action between them. Kuaishou launched Kling 4.0 on October 15, 2026. Kuaishou announcement · OpenAny model page
Example output
Watch the flying cards sequence from KING CARD ↗
Example | Input and action | What to check |
|---|---|---|
KING CARD · Kling AI short film | Playing cards fly from a magician's hand and form a spiral above the audience as the camera tilts up and pulls back along the aisle. | Watch how the card motion, camera position, and audience positions carry through the shot. |
Paper boat in the rain · OpenAny Playground exercise | A low camera tracks a paper boat from the side as it drifts through a puddle. | The boat stays in frame for five seconds, with raindrops and gentle water sounds. |
Kling AI published the flying cards sequence. Its production notes include the full film, individual shots, and excerpts from the prompts. The paper boat prompt is in the request below. KING CARD production notes and samples
Choose an input mode
Mode | Use it to | Input |
|---|---|---|
Text to video | Try a camera move, action, or sound from a written brief. | Describe the subject, action, camera, and sound in the prompt. |
Image to video | Set the opening frame and optionally the closing frame. | Supply public HTTPS images as |
Reference to video | Use an image for appearance or a video for motion. | Supply |
Subject references to video | Reuse a character or product across different camera angles. | Give the subject a name in the form and refer to it as |
The yir templates for text, image, and standard reference input support 3–30 seconds at 720p or 1080p. Text-to-video supports 16:9, 9:16, 1:1, and 21:9. Image-to-video uses auto for aspect ratio. The route's native audio setting is fixed at true. OpenAny route parameters
Quickstart
Select yir and Text to video. Start with five seconds at 720p and 16:9. Once the camera move and composition work, use the same prompt to try a higher resolution. Send a POST request to https://api.openany.si/v1/videos with the header Authorization: Bearer $OPENANY_API_KEY.
{
"model": "kling-4.0",
"route": { "provider": "yir" },
"route_mode": "balanced",
"input": {
"type": "text",
"prompt": "A yellow paper boat drifts through a shallow puddle along a rainy city curb at dusk. One low-angle side-tracking shot, camera moving at the same speed as the boat. Keep the boat in focus and in frame. Natural raindrops and soft water sounds, with no dialogue."
},
"parameters": {
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"n": 1
}
}
Save the task ID and poll GET /v1/videos/{task_id}. Retrieve the video URL from the result's file list when the task succeeds. OpenAny bills this route per second. Video settings and reference media determine which rate applies. OpenAny Kling 4.0 API and pricing
Frequently asked questions
Can I turn off sound? This route generates audio. To deliver a silent clip, remove the audio track after downloading it.
When should I use opening and closing frames? Use them to define where a shot starts and ends. Use reference images when you need to guide the appearance of a subject, outfit, or scene.