Kling 4.0 Reference to Video overview
Kling 4.0 Reference to Video specs
- Model ID
klingai/video-v4-reference-to-video- Developer
- Kling AI
- Input
- Image, Text
- Output
- Video
- Endpoint
POST https://api.aimlapi.com/v2/video/generations
What is Kling 4.0 Reference to Video API?
Kling 4.0 reference-to-video keeps characters, objects and scenes from up to 10 reference images and 7 elements consistent across 3–30 second videos. It is part of Kling AI's new-generation Kling 4.0 video model family and is available on AI/ML API through the video generation endpoint.
Technical specifications
- Supported inputs: up to 10 reference images, up to 7 elements, optional first frame, text prompt
- Resolution: 720p or 1080p; aspect ratio 16:9, 9:16, 1:1, 21:9 or auto
- Model ID: klingai/video-v4-reference-to-video
- Release date: October 15, 2026
Where to use Kling 4.0 Reference to Video
Consistent characters
Keep the same character or mascot across clips and campaigns.
Product placement
Place a specific product into new scenes while keeping its look intact.
Branded series
Build a series of videos with recurring people, objects and locations.
Use cases
Kling 4.0 Reference to Video keeps characters, objects and scenes consistent with up to 10 reference images and 7 elements.
It fits recurring characters and mascots across a series of clips, where identity has to stay stable from shot to shot.
Elements with frontal and side views help place a specific product or object into new scenes without changing its look.
Multi-shot prompts and aspect ratios from 9:16 to 21:9 cover both social and widescreen formats.
Kling 4.0 Reference to Video API pricing
| Usage | Price | Unit |
|---|---|---|
| Video generation | $0.157 | per second |
The final price depends on request parameters such as resolution or duration.
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Kling 4.0 Reference to Video vs other video models: prices
AI/ML API rates for 5 models, per second.
| Model | Per second |
|---|---|
| $0.157 | |
| $0.157 | |
| $0.157 | |
| $0.16 | |
| $0.188 |
How to use the Kling 4.0 Reference to Video API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v2/video/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "klingai/video-v4-reference-to-video"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "klingai/video-v4-reference-to-video"
}
response = requests.post("https://api.aimlapi.com/v2/video/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v2/video/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "klingai/video-v4-reference-to-video"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());The request returns a generation id. Poll GET https://api.aimlapi.com/v2/video/generations?generation_id=<id> until the status is completed.
Related articles
Kling 4.0 Reference to Video FAQ
What is Kling 4.0 Reference to Video?
Kling 4.0 Reference to Video generates 3–30 second videos that keep characters, objects and scenes consistent with up to 10 reference images and 7 elements.
What inputs and outputs does Kling 4.0 Reference to Video support?
It takes reference images (image_urls), optional elements with frontal and side views, an optional first frame and a text prompt, and returns a video. References are mentioned in the prompt as @Image1, @Element1 and so on.
How many references can I use?
Up to 10 reference images and up to 7 elements per request. Each element has one frontal image and 1–3 additional views.
How much does Kling 4.0 Reference to Video cost?
Kling 4.0 Reference to Video costs $0.157 per second on AI/ML API, billed as you go with no subscription.
What aspect ratios are supported?
16:9 (default), 9:16, 1:1 and 21:9, or auto to follow the references. Output resolution is 720p or 1080p.
How do I call Kling 4.0 Reference to Video via API?
Submit a POST request to https://api.aimlapi.com/v2/video/generations with the model ID klingai/video-v4-reference-to-video, your image_urls and a prompt, then poll with the returned generation_id until the status is completed.
What is the Kling 4.0 Reference to Video model ID?
Use klingai/video-v4-reference-to-video as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.

