Skip to content

文生视频

概览

认证

  • Header: Authorization: Bearer <token>

请求参数

  • Header: Authorization: Bearer <token>
  • Body 类型: application/json
{
    "model_name": "kling-v1",
    "prompt": "生成一个海边有一个人跳舞的视频",
    "negative_prompt": "",
    "cfg_scale": 0.5,
    "mode": "std",
    "sound": "off",
    "camera_control": {
        "type": "simple",
        "config": {
            "horizontal": 1.0,
            "vertical": 0,
            "pan": 0,
            "tilt": 0,
            "roll": 0,
            "zoom": 0
        }
    },
    "aspect_ratio": "16:9",
    "duration": "5",
    "callback_url": "",
    "external_task_id": ""
}

请求示例

curl --location --request POST 'https://api.winfull.cloud-ip.cc/kling/v1/videos/text2video' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model_name": "kling-v1",
    "prompt": "生成一个海边有一个人跳舞的视频",
    "negative_prompt": "",
    "cfg_scale": 0.5,
    "mode": "std",
    "sound": "off",
    "camera_control": {
        "type": "simple",
        "config": {
            "horizontal": 1.0,
            "vertical": 0,
            "pan": 0,
            "tilt": 0,
            "roll": 0,
            "zoom": 0
        }
    },
    "aspect_ratio": "16:9",
    "duration": "5",
    "callback_url": "",
    "external_task_id": ""
}'

返回示例

🟢200成功 示例

{
    "code": 0,
    "message": "SUCCEED",
    "request_id": "603e2a28-fb89-4146-ae33-412d74012a6d",
    "data": {
        "task_id": "831922345719271433",
        "task_status": "submitted",
        "task_info": {},
        "created_at": 1766374262370,
        "updated_at": 1766374262370
    }
}

最后更新:2025-12-22 03:41:14

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