4Z API

图生视频

接口: POST https://4zapi.com/kling/image-to-video/kling-3.0-turbo

请求体 (application/json)

  • contents (array, 必填): 内容数组,必填。规则:① 至少一个 type=first_frame 项(必须有 url);② 可附加 type=prompt 项(text 最多 2500 字符);③ type 仅支持 prompt / first_frame,其他值报 400。
  • options (object): 任务控制参数,全部可选。
  • settings (object): 生成参数,全部可选。⚠️ 图生视频 body 原样透传上游,缺失 settings 时不补默认值,建议显式填写。

请求示例

{
  "contents": [
    {
      "type": "first_frame",
      "url": "https://example.com/first-frame.jpg"
    }
  ],
  "settings": {
    "aspect_ratio": "16:9",
    "duration": 5,
    "resolution": "720p"
  }
}