Pricing
Compare models →Without a reference video, the price is per second of output, and depends on the resolution and the duration you choose. The default request (720p, 5 s, no reference video) costs $0.785 $0.66725 per run.
| Resolution | Per second (10 s duration) | 3 s duration | 5 s duration | 10 s duration | 30 s duration |
|---|---|---|---|---|---|
| 720p | |||||
| 1080p | |||||
| 4K |
With reference videos, the price is per second counted as the output length plus the longer of the output length and the total length of the reference videos (in whole seconds, up to 30). Reference audios are not charged. Prices for a 5 s output (duration 5), by total length of the reference videos:
| Total reference video length | 720p, 5 s duration | 1080p, 5 s duration | 4K, 5 s duration |
|---|---|---|---|
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s or more |
When the output is as long as the reference videos (10 s duration, 10 s of reference video):
| Resolution | Per output second (10 s duration, 10 s reference) | Whole request (10 s duration, 10 s reference) |
|---|---|---|
| 720p | ||
| 1080p | ||
| 4K |
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. Refer to reference images as @Image1, @Image2, ... (in array order), to reference videos as @Video1, @Video2, ... and to reference audios as @Audio1, @Audio2, ... |
images | array | Reference images (up to 10).Items: 0–10JSON schema{
"items": {
"type": "string"
}
} |
videos | array | Reference videos (up to 5). They guide motion, camera and pacing; together they are used for up to 30 seconds.Items: 0–5JSON schema{
"items": {
"type": "string"
}
} |
audios | array | Reference audios (up to 3), 5-30 seconds each. They guide the voice and sound of the video.Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
keep_original_sound | boolean | Keep the reference video's own sound instead of generating new audio. Requires videos.Default: false |
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; auto follows the reference images or video.auto16:99:161:121:9"auto" |
README
Kling V4.0 Reference-to-Video
Kling V4.0 Reference-to-Video creates a new clip of 3 to 30 seconds from up to 10 reference images, up to 5 reference videos and up to 3 reference audios. Point to them in the prompt to keep a subject consistent, borrow a camera move or follow a performance. Output is 720p, 1080p or 4K (native 3840x2160), with optional HDR at 1080p and 4K with synchronized stereo audio.
Why Choose This?
- Mix images, videos and audio
Combine up to 10 images, 5 videos and 3 audios (15 files at most) in one request.
- Prompt-level control
Refer to inputs as @Image1, @Video1 and @Audio1 in the order you provide them.
- Up to 30 seconds
Output length is yours to choose, independent of the reference video.
- Native audio
New synchronized stereo audio, or keep the reference video's own sound.
Pricing
Without a reference video, the price is per second of output, and depends on the resolution and the duration you choose. The default request (720p, 5 s, no reference video) costs $0.785 $0.66725 per run.
| Resolution | Per second (10 s duration) | 3 s duration | 5 s duration | 10 s duration | 30 s duration |
|---|---|---|---|---|---|
| 720p | |||||
| 1080p | |||||
| 4K |
With reference videos, the price is per second counted as the output length plus the longer of the output length and the total length of the reference videos (in whole seconds, up to 30). Reference audios are not charged. Prices for a 5 s output (duration 5), by total length of the reference videos:
| Total reference video length | 720p, 5 s duration | 1080p, 5 s duration | 4K, 5 s duration |
|---|---|---|---|
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s or more |
When the output is as long as the reference videos (10 s duration, 10 s of reference video):
| Resolution | Per output second (10 s duration, 10 s reference) | Whole request (10 s duration, 10 s reference) |
|---|---|---|
| 720p | ||
| 1080p | ||
| 4K |
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 | Required. Refer to images as @Image1, @Image2 ..., videos as @Video1 ... and audios as @Audio1 .... |
| images | Reference images, up to 10. |
| videos | Reference videos, up to 5. Together they are used for up to 30 seconds; longer clips are trimmed. |
| audios | Reference audios, up to 3, 5 to 30 seconds each. |
| keep_original_sound | Keep the reference video's own sound instead of generating new audio (default false). Requires videos. |
| 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 | auto (default, follows the references), 16:9, 9:16, 1:1 or 21:9. |
Prompting Guide
- Say what each reference is for: "the character from @Image1 walks through the street from @Image2".
- To reuse a camera move, say so: "follow the camera movement of @Video1".
- Use clear, well-lit reference images; the subject should be easy to recognize.
Notes
- Reference audios guide a speaker's voice; they do not reproduce the original recording, music, or timing.
- Set
keep_original_soundtofalseto generate new audio using the reference voice. Whentrue, the reference video's original audio is retained.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Kling 4.0 Reference to Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/kwaivgi/kling-v4.0/reference-to-video for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "Create a cinematic 8-second video of @Image1 as the main subject walking through a neon-lit rainy city street at night, with reflections on the pavement and subtle steam rising from vents. Use @Image2 for outfit and facial details, and follow the smooth forward tracking camera movement and pacing from @Video1. The subject glances toward the camera, then looks ahead with a confident expression. Add realistic ambient city lighting, gentle motion in the background crowd, and synchronized natural street ambience.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/261023/default/txrf4evfb382.jpeg",
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/261023/default/j9dkggm9tu0w.jpeg"
],
"videos": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/261023/default/e9mo2tcyivqm.jpeg"
],
"audios": [],
"keep_original_sound": false,
"resolution": "720p",
"dynamic_range": "sdr",
"duration": 5,
"aspect_ratio": "auto"
}Kling 4.0 Reference to Video API — Frequently asked questions
What is the Kling v4.0 Reference To Video API?
Kling v4.0 Reference To Video is a Kuaishou model for reference-guided video generation, exposed as a REST API on OpenSIAI. Kling V4.0 Reference-to-Video builds a new clip of 3 to 30 seconds from up to 10 reference images, 5 reference videos and 3 reference audios, following the subjects, motion and camera you point to in the prompt, with 720p, 1080p and 4K output 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 Reference 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/reference-to-video.
How much does Kling v4.0 Reference To Video cost per run or per second?
Kling v4.0 Reference 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 Reference To Video accept?
Key inputs: prompt, images, aspect_ratio, resolution, duration, audios. 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/reference-to-video.
How long does Kling v4.0 Reference To Video take to generate?
Reported generation time on OpenSIAI is around 214 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 Reference 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.