Kling 3.0 Pro 动作控制 API: AI 视频编辑

通过 Muapi REST API 使用 Kling 3.0 Pro 动作控制编辑和转换视频。按次生成付费,无需订阅。

交互式模型控制

Kling V3.0 Pro 动作控制可为视频生成提供最高级别的细节和控制能力,适用于需要复杂电影感镜头运用和主体一致性的专业工作流。

Kling 3.0 Pro 动作控制 API 文档

端点

POST https://api.muapi.ai/api/v1/kling-v3.0-pro-motion-control

使用 Muapi API 密钥在 x-api-key 请求头中提交任务,然后轮询 https://api.muapi.ai/api/v1/predictions/{request_id}/result 直到状态变为 completed。

参数

名称类型必填描述
promptstring否描述目标运动的文本提示词。
image_urlstring是输入图像的 URL。
video_urlstring是输入视频的 URL。
character_orientationstring否Hint: When character_orientation is ”video“: maximum 30 seconds,When character_orientation is “image”: maximum 10 秒。选项: image, video默认值: "image"
keep_original_soundboolean否通过此参数选择是否保留视频原声。默认值: true

cURL 示例

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/kling-v3.0-pro-motion-control \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/your-image_url","video_url":"https://example.com/your-video_url"}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

Python 示例

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/kling-v3.0-pro-motion-control", headers=headers, json={"image_url":"https://example.com/your-image_url","video_url":"https://example.com/your-video_url"})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

完整文档及 Agent/MCP 集成: llms.txt. 在此获取 API 密钥: muapi.ai/access-keys.