支援文生、首尾幀圖生及參考影片的多模態影片模型。
kling-video-v4文生、首尾幀圖生與參考影片生成,支援非同步提交和任務查詢。
必填參數: model
可用參數: model, prompt, contents, settings, options, wait, nonce
必填參數: model
可用參數: model, prompt, contents, settings, options, wait, nonce
必填參數: model
可用參數: model, prompt, contents, settings, options, wait, nonce
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
model | string | 是 | 固定模型名稱 可選: kling-video-v4 |
prompt | string | 否 | 頂層提示詞;contents內的prompt文本優先 |
contents | array | 否 | 圖生與參考生素材列表,限制見下方詳情 |
settings | object | 否 | 可選生成設定;提供後整體優先於頂層相容欄位 |
options | object | 否 | 通用選項 |
wait | boolean | 否 | 預設false,推薦提交後查詢同一任務 |
nonce | string | 否 | 同一業務請求使用同一且唯一的冪等標識 |
curl --request POST 'https://api.router.ai/v1/videos/generations' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-binary '{
"model": "kling-video-v4",
"prompt": "A fictional blue paper cube rotates slowly on a white table.",
"settings": {"resolution": "1080p", "duration": 3, "aspect_ratio": "16:9"},
"wait": false,
"nonce": "EXAMPLE_KLING_V4_TEXT_001"
}'