Skip to content

图生视频

概览

认证

  • Header: Authorization: Bearer <token>

请求参数

  • Header: Authorization: Bearer <token>
  • Body 类型: application/json
{
    "model_name": "kling-v1",
    "image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
    "image_tail": "",
    "prompt": "",
    "negative_prompt": "",
    "voice_list": [
        {
            "voiceId": ""
        }
    ],
    "sound": "",
    "cfg_scale": 0.5,
    "mode": "std",
    "static_mask": "",
    "dynamic_masks": [
        {
            "mask": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
            "trajectories": [
                {
                    "x": 0,
                    "y": 0
                },
                {
                    "x": 1,
                    "y": 1
                }
            ],
        }
    ],
    // "camera_control": {
    //     "type": "simple",
    //     "config": {
    //         "horizontal": 1.0,
    //         "vertical": 0,
    //         "pan": 0,
    //         "tilt": 0,
    //         "roll": 0,
    //         "zoom": 0
    //     }
    // },
    "duration": "5",
    "callback_url": "",
    "external_task_id": ""
}

请求示例

curl --location --request POST 'https://api.winfull.cloud-ip.cc/kling/v1/videos/image2video' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model_name": "kling-v1",
    "image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
    "image_tail": "",
    "prompt": "",
    "negative_prompt": "",
    "voice_list": [
        {
            "voiceId": ""
        }
    ],
    "sound": "",
    "cfg_scale": 0.5,
    "mode": "std",
    "static_mask": "",
    "dynamic_masks": [
        {
            "mask": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
            "trajectories": [
                {
                    "x": 0,
                    "y": 0
                },
                {
                    "x": 1,
                    "y": 1
                }
            ],
        }
    ],
    // "camera_control": {
    //     "type": "simple",
    //     "config": {
    //         "horizontal": 1.0,
    //         "vertical": 0,
    //         "pan": 0,
    //         "tilt": 0,
    //         "roll": 0,
    //         "zoom": 0
    //     }
    // },
    "duration": "5",
    "callback_url": "",
    "external_task_id": ""
}'

返回示例

🟢200成功 示例

{}

最后更新:2025-12-18 09:23:13

🚀 伝富AI-API文档 - 强大的AI接口平台