视频特效

POST /kling/v1/videos/effects

MethodPOST
Path/kling/v1/videos/effects
Typehttp
Status-1
Module2102810
Folder72898058

概览

MethodPOST
Path/kling/v1/videos/effects
Typehttp
Status-1
Module2102810
Folder72898058

参数

{
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "D13eWU9vtA",
      "enable": true,
      "name": "Content-Type",
      "sampleValue": "application/json"
    },
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "w3wDbDnZnB",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "effect_scene": {
        "type": "string",
        "description": "场景名称"
      },
      "input": {
        "type": "object",
        "properties": {
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "双人 "
          },
          "image": {
            "type": "string",
            "description": "单人 "
          }
        },
        "x-apifox-orders": [
          "images",
          "image"
        ],
        "description": "参考图像  支持传入图片Base64编码或图片URL(确保可访问)支持不同任务输入的结构体  根据scene不同,结构体里传的字段不同,具体如「场景请求体」所示"
      },
      "callback_url": {
        "type": "string"
      },
      "external_task_id": {
        "type": "string"
      }
    },
    "required": [
      "effect_scene"
    ],
    "x-apifox-orders": [
      "effect_scene",
      "input",
      "callback_url",
      "external_task_id"
    ]
  },
  "required": true,
  "mediaType": "",
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n    \"effect_scene\": \"pet_lion\",\r\n    \"input\": {\r\n        \"image\": \"https://p4-kling.klingai.com/bs2/upload-ylab-stunt/c54e463c95816d959602f1f2541c62b2.png?x-kcdn-pid=112452\"\r\n    }\r\n}"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 129096683,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {}
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": []
  }
]