Kling
Kling 是快手推出的旗舰視频生成モデル,以电影级画质和真実的运動物理效果著称。MuAPI 提供 Kling 的三个等级版本。
モデル
| モデル | エンドポイント | 説明 |
|---|---|---|
| Kling Standard | kling-std | 快速生成,质量良好 |
| Kling Pro | kling-pro | 更高质量和更多细节 |
| Kling Master | kling-master | 旗舰版本 — 最佳运動效果和真実感 |
文本转視频
POST /api/v1/kling-master
x-api-key: YOUR_API_KEY
Content-Type: application/json
{
"prompt": "A samurai walking through a bamboo forest at dusk, cinematic",
"duration": 5,
"aspect_ratio": "16:9"
}
図像转視频
将静态図像制作成視频:
POST /api/v1/kling-master
x-api-key: YOUR_API_KEY
{
"prompt": "The character slowly turns their head and smiles",
"image_url": "https://example.com/portrait.jpg",
"duration": 5
}
パラメータ
| 参数 | 型 | 可選值 | 説明 |
|---|---|---|---|
prompt | string | — | 視频説明 |
duration | int | 5、10 | 視频時長(秒) |
aspect_ratio | string | 16:9、9:16、1:1 | 输出アスペクト比 |
image_url | string | — | I2V 的源図像 |
negative_prompt | string | — | 需要避免的内容 |
轮询结果
GET /api/v1/predictions/{request_id}/result
x-api-key: YOUR_API_KEY
{
"status": "completed",
"outputs": ["https://cdn.muapi.ai/...output.mp4"]
}
通过 CLI 使用
# 文本转視频
muapi video generate "A astronaut floating in space, Earth visible below" --model kling-master
# 図像转視频
muapi video from-image portrait.jpg "Person blinks and looks away" --model kling-pro