返回模型调用 API 参考
POST/kling/v1/videos/effects

视频特效

API Key application/json

请求示例

curl -X POST https://top.qingyuntop.ai/kling/v1/videos/effects \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "effect_scene": "balloon_parade",
    "input": {
        "duration": "5",
        "image": "https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-op/effects_pic/balloon_parade.jpeg"
    },
    "callback_url": "",
    "external_task_id": ""
}'

请求参数

参数位置类型必填说明示例
Content-TypeHeaderstring-application/json
AuthorizationHeaderstring-Bearer {{YOUR_API_KEY}}
effect_sceneJSON bodystring场景名称-
inputJSON bodyobject参考图像 支持传入图片Base64编码或图片URL(确保可访问)支持不同任务输入的结构体 根据scene不同,结构体里传的字段不同,具体如「场景请求体」所示-
input.model_nameJSON bodystring双人 kling-v1, kling-v1-5, kling-v1-6-
input.modeJSON bodystring双人 生成视频的模式 ;枚举值:std,pro; 其中std:标准模式(标准),基础模式,性价比高; 其中pro:专家模式(高品质),高表现模式,生成视频质量更佳-
input.durationJSON bodystring生成视频时长,单位-
input.imagesJSON bodyarray<string>双人 -
input.imageJSON bodystring单人 -
callback_urlJSON bodystring--
external_task_idJSON bodystring--

返回响应 (200)

此部分没有定义参数。

来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 495899798,
  "name": "视频特效",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/kling/v1/videos/effects",
  "tags": [],
  "status": -1,
  "requestBody": {
    "type": "application/json",
    "parameters": [],
    "jsonSchema": {
      "type": "object",
      "properties": {
        "effect_scene": {
          "type": "string",
          "description": "场景名称"
        },
        "input": {
          "type": "object",
          "properties": {
            "model_name": {
              "type": "string",
              "description": "双人 kling-v1, kling-v1-5, kling-v1-6"
            },
            "mode": {
              "type": "string",
              "description": "双人 生成视频的模式  ;枚举值:std,pro; 其中std:标准模式(标准),基础模式,性价比高; 其中pro:专家模式(高品质),高表现模式,生成视频质量更佳"
            },
            "duration": {
              "type": "string",
              "description": "生成视频时长,单位"
            },
            "images": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "双人 "
            },
            "image": {
              "type": "string",
              "description": "单人 "
            }
          },
          "x-apifox-orders": [
            "model_name",
            "mode",
            "duration",
            "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"
      ]
    },
    "examples": [
      {
        "mediaType": "application/json",
        "value": "{\r\n    \"effect_scene\": \"balloon_parade\",\r\n    \"input\": {\r\n        \"duration\": \"5\",\r\n        \"image\": \"https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/kling-op/effects_pic/balloon_parade.jpeg\"\r\n    },\r\n    \"callback_url\": \"\",\r\n    \"external_task_id\": \"\"\r\n}"
      }
    ],
    "mediaType": "",
    "oasExtensions": "",
    "required": true,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": [
      {
        "id": "D13eWU9vtA",
        "name": "Content-Type",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "application/json"
      },
      {
        "id": "w3wDbDnZnB",
        "name": "Authorization",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "Bearer {{YOUR_API_KEY}}"
      }
    ]
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 185871083,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {},
        "x-apifox-orders": []
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": []
    }
  ],
  "responseExamples": [],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92436145,
  "ordering": 0,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2026-08-02T03:53:34.000Z",
  "updatedAt": "2026-08-06T12:15:55.000Z",
  "creatorId": 2863449,
  "editorId": 2863449,
  "creatorUserId": 2863449,
  "editorUserId": 2863449,
  "responseChildren": [],
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}