Kling v3 Motion Control 影片 API
透過 APIMaster.ai 使用 kling-v3-motion-control 生成動作控制的影片。提供參考圖像與參考影片,依秒計費。
Kling v3 Motion Control
在 APIMaster 上呼叫 kling-v3-motion-control 來使用 Kling 動作控制:提供參考圖像與參考影片,輸出將遵循參考影片中的動作。可選的提示詞可進一步調整鏡頭與風格。
Base URL:
https://apimaster.ai/v1即https://apimaster.ai/v1。請使用https://apimaster.ai/v1/videos/...,不要再加上/v1前綴。
計價(每秒)
計費時長由伺服器探測 video_url 決定(非客戶端猜測)。預扣款使用 mode 與方向為基礎的時長上限。
| 模式 | 費率 |
|---|---|
std |
$0.10288 / 秒 |
pro |
$0.13712 / 秒 |
範例:8 秒參考影片 @ std 約 $0.82304($0.10288 × 8)。
提交
POST https://apimaster.ai/v1/videos/generations
| 欄位 | 類型 | 必填 | 描述 |
|---|---|---|---|
model |
string | 是 | kling-v3-motion-control |
image_url |
string | 是 | 公開參考圖像網址 |
video_url |
string | 是 | 公開參考影片網址(mp4/mov,≤100MB) |
character_orientation |
string | 是 | image(參考影片 3–10 秒)或 video(3–30 秒) |
mode |
string | 是 | std 或 pro |
prompt |
string | 否 | 可選的動作/鏡頭/風格提示 |
keep_original_sound |
string | 否 | yes(預設)或 no |
watermark_info |
object | 否 | 例如 {"enabled": false} |
duration |
integer | 否 | 可選的預扣款估計;最終結算以探測長度為準 |
curl -s "https://apimaster.ai/v1/videos/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-v3-motion-control",
"prompt": "Match face identity, follow the reference dance, cinematic lighting",
"image_url": "https://example.com/ref-image.png",
"video_url": "https://example.com/ref-video-8s.mp4",
"character_orientation": "image",
"mode": "std",
"keep_original_sound": "yes"
}'
回應
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_xxxxxxxx"
}
]
}
參考影片長度
character_orientation |
允許的參考影片 |
|---|---|
image |
3 秒 – 10 秒 |
video |
3 秒 – 30 秒 |
輪詢
GET https://apimaster.ai/v1/videos/{task_id}
透過回傳的 url 或 GET https://apimaster.ai/v1/videos/{task_id}/content 下載。