视频生成

MuAPI 通过一个统一 API 提供业界领先的视频生成模型。

支持的模型

模型类型描述
veo3T2V / I2VGoogle Veo 3 — 写实、电影化
veo3-fastT2V / I2V更快速的 Veo 3 版本
kling-masterT2V / I2VKling Master — 最高质量
kling-proT2V / I2VKling Pro
kling-stdT2V / I2VKling Standard
wan2.1 / wan2.2T2V / I2VWan 视频模型
seedance-pro / seedance-liteT2V / I2VSeedance 视频
hunyuanT2V / I2VHunyuan 视频
runwayT2V / I2VRunway Gen 视频
pixverseT2V / I2VPixVerse
viduT2V / I2VVidu
minimax-hailuo-02-std / minimax-hailuo-02-proT2V / I2VMiniMax Hailuo

文本转视频示例

POST /api/v1/kling-master
x-api-key: YOUR_API_KEY
Content-Type: application/json

{
  "prompt": "A cinematic drone shot over a misty mountain range at dawn",
  "duration": 5
}

响应:

{ "request_id": "abc123" }

图像转视频示例

POST /api/v1/kling-master
x-api-key: YOUR_API_KEY

{
  "prompt": "Camera slowly pulls back to reveal the full landscape",
  "image_url": "https://example.com/image.jpg",
  "duration": 5
}

轮询结果

GET /api/v1/predictions/abc123/result
x-api-key: YOUR_API_KEY

持续轮询,直到 status 变为 completed

{
  "status": "completed",
  "outputs": ["https://cdn.muapi.ai/...output.mp4"]
}

状态值:queuedprocessingcompleted / failed

另请参阅