{
"contentType": "application/json",
"properties": {
"callback_url": {
"type": "string"
},
"character_orientation": {
"description": "生成视频中人物的朝向,可选择与图片一致或与视频一致\n枚举值:image,video,其中:\n其中image:与图片中人物朝向一致;此时参考视频时长不得超过10秒;\n其中video:与视频中人物朝向一致;此时参考视频时长不得超过30秒;",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Character orientation vs image or video\nenum: image, video\nimage: match image (ref video ≤10s)\nvideo: match video (ref video ≤30s)"
}
}
},
"element_list": {
"description": "主体参考列表",
"items": {
"properties": {
"element_id": {
"description": "引用主体时,生成的视频暂时只能参考视频中的人物朝向\n暂时仅支持引入1个主体",
"type": "string",
"x-i18n": {
"en-US": {
"description": "when referencing a subject, orientation follows the reference video for now\ncurrently only one subject"
}
}
}
},
"type": "object"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "subject reference list"
}
}
},
"external_task_id": {
"type": "string"
},
"image_url": {
"description": "参考图像,生成视频中的人物、背景等元素均已参考图为准\n视频内容需满足以下要求:\n人物可以是写实风格人物或与自然人身材比例相似的卡通风格人物,避免遮挡;写实风格人物效果更好\n图像中人物面积需超过图像面积的5%\n包含支持传入图片Base64编码或图片URL(确保可访问)\n图片格式支持.jpg / .jpeg / .png\n图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比介于1:2.5 ~ 2.5:1之间",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Reference image; people/background follow this image. Requirements: realistic or near-realistic cartoon proportions, avoid occlusion; person area >5%; Base64 or reachable URL; .jpg/.jpeg/.png; max 10MB; min side 300px; aspect 1:2.5–2.5:1"
}
}
},
"keep_original_sound": {
"description": "可选择是否保留视频原声\n枚举值:yes,no\n其中yes:保留视频原声\n其中no:不保留视频原声",
"type": "string",
"x-i18n": {
"en-US": {
"description": "whether to keep original video audio\nenum: yes, no\nyes: keep original audio\nno: drop original audio"
}
}
},
"mode": {
"description": "生成视频的模式\n枚举值:std,pro\n其中std:标准模式(标准),基础模式,性价比高\n其中pro:专家模式(高品质),高表现模式,生成视频质量更佳",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Video generation mode\nenum: std, pro\nstd: standard / cost-effective\npro: expert / higher quality"
}
}
},
"model_name": {
"description": "默认 kling-v2-6 kling-v3",
"type": "string",
"x-i18n": {
"en-US": {
"description": "default kling-v2-6 kling-v3"
}
}
},
"prompt": {
"description": "文本提示词,可包含正向描述和负向描述\n可通过提示词为画面增加元素、实现运镜效果等,详见可灵「动作控制」使用指南\n不能超过2500个字符\nhttps://docs.qingque.cn/d/home/eZQAl5y8xNSkr0iYUS8-bpGvP?identityId=2Cn18n4EIHT#section=h.xtmfpd68o18",
"type": "string",
"x-i18n": {
"en-US": {
"description": "text prompt, may include positive and negative descriptions\nuse the prompt to add elements / camera moves, etc., see Kling motion-control guide\nmax 2500 characters\nhttps://docs.qingque.cn/d/home/eZQAl5y8xNSkr0iYUS8-bpGvP?identityId=2Cn18n4EIHT#section=h.xtmfpd68o18"
}
}
},
"video_url": {
"description": "视频内容需满足以下要求:\n有且只能有1个写实风格、全身或上半身、包含头部的人物,避免遮挡\n人物肢体动作与表情动作清晰且不包括空翻、倒立等复杂动作\n动作视频一镜到底,人物始终出现在画面某种,避免切镜、运镜等\n视频文件支持.mp4/.mov,文件大小不超过100MB,仅支持长宽的边长均位于340px~3850px之间,上述校验不通过会返回错误码等信息\n视频时长下限不短于3秒,时长上限与人物朝向参考(character_orientation)有关:\n当人物朝向与视频中人物一致时,视频时长最长可达30秒;\n当人物朝向与图片中人物一致时,视频时长最长可达10秒;\n系统会校验视频内容,如有问题会返回错误码等信息",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Video requirements: exactly one realistic full/upper-body person with head, avoid occlusion; clear motion without flips/handstands; single take, person stays in frame. .mp4/.mov; ≤100MB; sides 340–3850px. Min 3s; max 30s if orientation matches video, 10s if matches image. Content validated."
}
}
},
"watermark_info": {
"description": "是否同时生成含水印的结果",
"items": {
"properties": {
"watermark_info": {
"description": "true 为生成,false 为不生成\n暂不支持自定义水印",
"type": "boolean",
"x-i18n": {
"en-US": {
"description": "true=generate, false=do not generate\ncustom watermarks are not supported yet"
}
}
}
},
"type": "object"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "whether to also generate a watermarked result"
}
}
}
},
"required": [
"image_url",
"video_url",
"character_orientation",
"mode"
]
}