Image2Video_HQ(图生视频1.5-高清-5秒)
POST
/klingai/m2v_img2video_hq来自于Kling可灵的图生视频,高清5秒版本,已自动升级到Kling-1.5版本
官方网站:https://klingai.kuaishou.com/
价格:0.5 PTC/次
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
input_image
file
必需
首帧;支持JPG/PNG格式,文件大小不超过10MB,尺寸不小于300px
tail_image
file
可选
尾帧,必须搭配首帧一起传;支持JPG/PNG格式,文件大小不超过10MB,尺寸不小于300px
prompt
string
视频提示词
negative_prompt
string
不希望出现的内容
cfg
number
可选
视频创意程度,取值[0 , 1],0代表最高的创意度,1代表完全按照提示词创作
示例值:
0.5
aspect_ratio
string
可选
1:1, 16:9, 9:16三选一
示例值:
1:1
camera_type
string
可选
运镜控制,可选:empty,horizontal,vertical,zoom,tilt,pan,roll
示例值:
zoom
camera_value
string
可选
运镜参数,取值范围:[-10 , 10]
示例值:
-5
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
必需
limitation
object
必需
message
string
必需
status
integer
必需
task
object
必需
userTickets
object
必需
works
array[string]
必需
message
string
必需
result
integer
必需
status
integer
必需
timestamp
array[integer]
必需
示例
{
"data": {
"limitation": {
"limit": 10000,
"remaining": 10000,
"type": "m2v_txt2video"
},
"message": "",
"status": 5,
"task": {
"createTime": 1737039960753,
"deleted": false,
"favored": false,
"id": "kling_9d44fd49ffc2",
"status": 5,
"taskInfo": {
"arguments": [
{
"name": "prompt",
"value": "长焦镜头拍摄,地面拍摄,刺眼的阳光,一只骆驼,新疆戈壁烟尘四起"
},
{
"name": "negative_prompt",
"value": ""
},
{
"name": "cfg",
"value": "0.5"
},
{
"name": "duration",
"value": "5"
},
{
"name": "imageCount",
"value": "1"
},
{
"name": "kling_version",
"value": "1.6"
},
{
"name": "camera_control_enabled",
"value": "false"
},
{
"name": "aspect_ratio",
"value": "1:1"
},
{
"name": "camera_json",
"value": "{\"type\":\"empty\",\"horizontal\":0,\"vertical\":0,\"zoom\":0,\"tilt\":0,\"pan\":0,\"roll\":0}"
},
{
"name": "biz",
"value": "klingai"
},
{
"name": "__deviceType",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
},
{
"name": "__effect",
"value": "m2v_txt2video_1080p_std_v16"
},
{
"name": "__platform",
"value": "WEB"
},
{
"name": "__priority",
"value": "HIGH"
},
{
"name": "__userType",
"value": "MEMBERSHIP"
}
],
"extraArgs": {},
"inputs": [],
"type": "m2v_txt2video"
},
"type": "m2v_txt2video",
"updateTime": 1737039960753,
"viewTime": 0,
"viewed": false
},
"userTickets": {
"ticket": []
},
"works": []
},
"message": "成功",
"result": 1,
"status": 200,
"timestamp": [
2025,
1,
16,
23,
6,
0,
811535000
]
}
最后修改时间: 2 个月前