视频特效
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/kling/v1/videos/effects:
post:
summary: 视频特效
deprecated: false
description: ''
tags:
- 可灵 Kling 平台/视频特效
parameters:
- name: Content-Type
in: header
description: ''
required: false
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
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
example:
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: ''
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 可灵 Kling 平台/视频特效
x-apifox-status: testing
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-386233275-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []