- 引言
- 在线调试说明
- 发出请求
- 中转站基本介绍
- Chat模型
- 文生图模型
- 文生视频模型
- GPTs 相关
- 文生音乐 Suno
- Python配置方式
- nodejs 配置方式
- 各种插件/软件使用教程
- 帮助中心
图生视频
POST
/kling/v1/videos/image2video
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string
必需
示例值:
application/json
Accept
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
model
string
模型名称,可选参数
image
string
必需
image_tail
string
必需
prompt
string
必需
negative_prompt
string
必需
cfg_scale
number
必需
mode
string
必需
duration
string
必需
callback_url
string
必需
示例
{
"prompt": "flow",
"negative_prompt": "",
"image": "https://img.jpg",
"image_tail": "",
"aspect_ratio": "1:1",
"mode": "std",
"duration": "5"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://zzzzapi.com/kling/v1/videos/image2video' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sk-avDuXGp5mCiNgC35Be79C4Fa72044aDd916e6821F5E40029' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "flow",
"negative_prompt": "",
"image": "https://img.jpg",
"image_tail": "",
"aspect_ratio": "1:1",
"mode": "std",
"duration": "5"
}'
返回响应
🟢200OK
application/json
Body
object {0}
示例
{}
修改于 2025-01-09 15:32:05