Pricing
Compare models →Billing is per second of the generated video, and the per-second rate depends on the resolution. The total is the rate multiplied by the clip duration (3 to 30 seconds, default 5 seconds).
| Resolution | Per second | 3 s | 5 s | 10 s | 15 s | 20 s | 30 s |
|---|---|---|---|---|---|---|---|
| 720p | |||||||
| 1080p | |||||||
| 4K |
A run with default settings (720p, 5 seconds) costs $0.785 $0.66725. For example, a 5 second 720p clip costs $0.785 $0.66725.
HDR output (dynamic_range=hdr, 1080p or 4K) adds a charge per second of generated video on top of the rates above. For a 5 second clip: 1080p HDR $1.41 $1.1985, 4K HDR $3.135 $2.66475 (4K without HDR $2.745 $2.33325).
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
resolution | string | Output resolution: 720p, 1080p or 4k (native 3840x2160).720p1080p4k"720p" |
dynamic_range | string | Dynamic range. hdr is 10-bit HLG and needs resolution 1080p or 4k; it adds a per-second charge. sdr is standard.sdrhdr"sdr" |
duration | integer | The duration of the generated video in seconds (3-30).34567891011121314151617181920212223242526272829305 |
aspect_ratio | string | The aspect ratio of the generated video.16:99:161:121:9"16:9" |
README
Kling V4.0 Text-to-Video
Kling V4.0 Text-to-Video is Kuaishou's flagship video model: describe a scene and get a cinematic clip of 3 to 30 seconds in a single pass, with synchronized stereo audio. Output is 720p, 1080p or 4K (native 3840x2160), with optional HDR at 1080p and 4K in 16:9, 9:16, 1:1 or 21:9.
Why Choose This?
- Long single takes
Any length from 3 to 30 seconds in one generation, with room for real action and camera movement.
- Ultrawide option
21:9 alongside 16:9, 9:16 and 1:1.
- Native audio
Stereo sound is generated together with the picture.
- Simple pricing
Pay per second of output, by resolution.
Pricing
Billing is per second of the generated video, and the per-second rate depends on the resolution. The total is the rate multiplied by the clip duration (3 to 30 seconds, default 5 seconds).
| Resolution | Per second | 3 s | 5 s | 10 s | 15 s | 20 s | 30 s |
|---|---|---|---|---|---|---|---|
| 720p | |||||||
| 1080p | |||||||
| 4K |
A run with default settings (720p, 5 seconds) costs $0.785 $0.66725. For example, a 5 second 720p clip costs $0.785 $0.66725.
HDR output (dynamic_range=hdr, 1080p or 4K) adds a charge per second of generated video on top of the rates above. For a 5 second clip: 1080p HDR $1.41 $1.1985, 4K HDR $3.135 $2.66475 (4K without HDR $2.745 $2.33325).
Parameters
| Parameter | Description |
|---|---|
| prompt | Text describing the video. |
| resolution | 720p (default), 1080p or 4k. |
| dynamic_range | sdr (default) or hdr (10-bit HLG, 1080p and 4k only). |
| duration | 3 to 30 seconds, default 5. |
| aspect_ratio | 16:9 (default), 9:16, 1:1 or 21:9. |
Prompting Guide
- Name the subject, the action, the setting and the camera movement ("slow dolly-in", "handheld tracking shot").
- Describe sound you want to hear (ambience, music, a line of dialogue) in the prompt.
- For longer clips, describe how the scene develops from beginning to end.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Kling 4.0 Text to Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/kwaivgi/kling-v4.0/text-to-video for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "720p",
"dynamic_range": "sdr",
"duration": 5,
"aspect_ratio": "16:9"
}Kling 4.0 Text to Video API — Frequently asked questions
What is the Kling v4.0 Text To Video API?
Kling v4.0 Text To Video is a Kuaishou model for video generation, exposed as a REST API on OpenSIAI. Kling V4.0 Text-to-Video generates cinematic clips of 3 to 30 seconds from a text prompt, with 720p, 1080p and 4K output, four aspect ratios including 21:9 ultrawide, and synchronized stereo audio. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Kling v4.0 Text To Video API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/kwaivgi/kling-v4.0/text-to-video.
How much does Kling v4.0 Text To Video cost per run or per second?
Kling v4.0 Text To Video starts at $0.13345 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Kling v4.0 Text To Video accept?
Key inputs: prompt, aspect_ratio, resolution, duration, dynamic_range. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/kwaivgi/kling-v4.0/text-to-video.
How long does Kling v4.0 Text To Video take to generate?
Reported generation time on OpenSIAI is around 230 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Kling v4.0 Text To Video outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Kuaishou). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.