Kling 4.0
kling/kling-4.0Kling4.0在画面真实感、创意可控性和叙事完整度方面实现大幅是升,并在视听表现、多关键帧、口型匹配、文字生成、创意复刻等能力上带来全新突破。
- 输入 / 输出模态
- 公开起步价格
- 按多项属性定价
- 收录时间
- 2026年11月20日
在线推理
输入配置
控件、可选项与默认值均直接来自当前模型的 API Schema。
任务结果
Kling 4.0
{
"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"
]
}
{
"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"
]
}
进度—
耗时—
请求 ID—
历史任务
任务历史
仅支持查看最近七个自然日的生成记录。
请登录后查看历史任务。
登录查看历史任务仅显示所选个人账户或企业项目的任务。默认查询当前模型,清空模型名称可查看全部模型。
| 任务 ID | 模型 | 完成状态 | 创建时间 | 耗时 | 消耗模力 | 产物 |
|---|
每页 10 条
1
API 调用
Kling 4.0 的示例代码与 API 说明
Modelmesh 会帮你在不同服务提供商之间规范化处理请求和响应,为你统一接口。
Modelmesh 提供了兼容 OpenAI 的 Completion API,可连接 300 多款模型与服务提供商,既可直接调用,也可通过 OpenAI SDK 调用。此外,还提供了一些第三方 SDK。
在以下示例中,Modelmesh 专用的请求头属于可选项。若你配置了这些请求头,你的应用就能出现在 Modelmesh 的排行榜上。
#!/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"
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}"
#!/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}"
价格
价格明细
| 输出分辨率 | 无视频输入 | 有视频输入 |
|---|---|---|
| 720P | ¥1.00 / 计费秒 | ¥0.60 / 计费秒 |
| 1080P | ¥1.50 / 计费秒 | ¥0.90 / 计费秒 |