AI 模型接口视频即梦
OmniHuman1.5视频生成
POST
/api/v1/video/generationHeader Parameters
Authorization*string
格式: Authorization: Bearer sk-xxxxxx
Region*string
本服务固定值:Region为cn-north-1,Service为cv
Service*string
本服务固定值:Region为cn-north-1,Service为cv
Request Body
application/json
model*string
模型名称。 可选值:
jimeng_realman_avatar_picture_omni_v15
req_key*string
模型名称,取固定值:jimeng_realman_avatar_picture_omni_v15。
image_url*string
人像图片URL链接。
mask_url?array<string>
mask图URL列表。
[]?string
audio_url*string
音频URL。 音频时长必须小于60秒(建议使用15秒以内音频,超出15秒后效果会有一定劣化),过长情况下提交任务正常,查询任务会报错。
seed?integer
随机种子,作为确定扩散初始状态的基础,默认-1(随机)。若随机种子为相同正整数且其他参数均一致,则生成内容极大概率效果一致。
prompt?string
提示词,仅限中文、英语、日语、韩语、墨西哥语、印尼语,建议长度≤300字符。
output_resolution?integer
输出视频分辨率。 可选值:720 / 1080,默认值:1080。
pe_fast_mode?boolean
是否启用快速模式。
开启后会通过牺牲部分效果加快生成速度。
如果希望与即梦客户端的效果保持较高的一致性,建议遵循如下传参规则:
- 当输出视频分辨率(output_resolution)取值为720时,pe_fast_mode传true
- 当输出视频分辨率(output_resolution)取值为1080时,pe_fast_mode传false
默认值:false。
Response Body
application/json
成功
TypeScript Definitions
Use the response body type in TypeScript.
code*integer
状态码
data*object
数据对象
urls*array<string>
结果集
[]?string
usage*object
消耗信息
images*integer
图片张数
seconds*integer
视频秒数
input_tokens*integer
输入token数
total_tokens*integer
总token数
output_tokens*integer
输出token数
expired*string
有效期
task_id*string
任务ID
task_status*string
任务状态
message*string
状态信息
request_id*string
请求ID
curl -X POST "https://www.aa.com.cn/api/v1/video/generation" \ -H "Authorization: Bearer <token>" \ -H "Region: cn-north-1" \ -H "Service: cv" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "req_key": "string", "image_url": "string", "audio_url": "string" }'{
"code": 0,
"data": {
"urls": [
"string"
],
"usage": {
"images": 0,
"seconds": 0,
"input_tokens": 0,
"total_tokens": 0,
"output_tokens": 0
},
"expired": "string",
"task_id": "string",
"task_status": "string"
},
"message": "string",
"request_id": "string"
}Empty
最后更新于