Kling 4.0

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.

Published price
From $0.143 / second
Billing unit
/ second
Context / Max output
— / —
Listed routes
1
MODEL OVERVIEW

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 first_frame, up to eight keyframe images, and up to one last_frame.

Reference to video

Use an image for appearance or a video for motion.

Supply reference_image or reference_video in the matching mode.

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 @name in the prompt.

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.

json
{
  "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.

Put the model to work.

Use Playground for a test, or inspect the API contract for your integration.

Model API questions

How do I call Kling 4.0 through OpenAny?

Use model ID kling-4.0 with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is Kling 4.0 billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use Kling 4.0 with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.