Kling 4.0
kling/kling-4.0Kling4.0在画面真实感、创意可控性和叙事完整度方面实现大幅是升,并在视听表现、多关键帧、口型匹配、文字生成、创意复刻等能力上带来全新突破。
- Modalities
- Public starting price
- Priced by multiple attributes
- Added to catalog
- Nov 20, 2026
Online Inference
Configure input
Controls and defaults come directly from this model’s API schema.
Task result
{
"upstream_extra": [
{
"duration": "5.041",
"id": "954500449028548852",
"type": "video",
"url": "https://files.shengsuanyun.com/example/modelinfo/1547/workbench/5f2b739c-c56b-4941-9df1-978cb9bc5184/output_0.mp4"
}
],
"video_urls": [
"https://files.shengsuanyun.com/example/modelinfo/1547/workbench/5f2b739c-c56b-4941-9df1-978cb9bc5184/output_1.mp4"
]
}
Task History
Task history
Only generation records from the last seven days are available.
Sign in to view your task history.
Sign in to view task historyHistory shows tasks for the selected personal account or enterprise project. Clear the current model name to see tasks from all models.
| Task ID | Model | Completion status | Created | Duration | Credits consumed | Artifact |
|---|
API Call
Kling 4.0 code examples and API guide
Modelmesh normalizes requests and responses across service providers behind one consistent API.
Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.
Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.
#!/usr/bin/env bash
set -euo pipefail
API_KEY="$SSY_API_KEY"
curl --fail-with-body --silent --show-error --location \
--request POST \
"https://router.shengsuanyun.com/api/v1/tasks/generations" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${API_KEY}" \
--data '{
"model": "kling/kling-4.0",
"contents": [
{
"text": "宏大的古城建筑群航拍,青瓦飞檐在晨雾中层叠展开,镜头从低空缓慢抬升并向前推进,光线由冷蓝转为暖金,屋檐下的风铃轻微晃动,画面写实,电影感运镜,自然音效。",
"type": "prompt"
}
],
"options": {
"watermark_info": {
"enabled": false
}
},
"settings": {
"aspect_ratio": "16:9",
"audio": "native",
"duration": 5,
"resolution": "720p"
}
}'
#!/usr/bin/env bash
set -euo pipefail
API_KEY="$SSY_API_KEY"
REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}"
curl --fail-with-body --silent --show-error --location \
--request GET \
"https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \
--header "Authorization: Bearer ${API_KEY}"
Pricing
Pricing Details
| 输出分辨率 | 无视频输入 | 有视频输入 |
|---|---|---|
| 720P | ¥1.00 / 计费秒 | ¥0.60 / 计费秒 |
| 1080P | ¥1.50 / 计费秒 | ¥0.90 / 计费秒 |