{
"contentType": "application/json",
"properties": {
"audio_id": {
"description": "通过试听接口生成的音频的ID仅支持使用30天内生成的、时长不短于2秒切不超过300秒的音频audio_id、sound_file参数二选一,不能同时为空,也不能同时有值",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Audio ID from preview API. Only last-30-day audio lasting 2–300s. Exactly one of audio_id or sound_file"
}
}
},
"callback_url": {
"type": "string"
},
"external_task_id": {
"type": "string"
},
"image": {
"description": "数字人参考图支持传入图片Base64编码或图片URL(确保可访问)图片格式支持.jpg / .jpeg / .png图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比介于1:2.5 ~ 2.5:1之间",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Digital-human reference image. Base64 or reachable URL; .jpg/.jpeg/.png; max 10MB; min side 300px; aspect 1:2.5–2.5:1"
}
}
},
"mode": {
"description": "生成视频的模式",
"type": "string",
"x-i18n": {
"en-US": {
"description": "video generation mode"
}
}
},
"prompt": {
"description": "正向文本提示词",
"type": "string",
"x-i18n": {
"en-US": {
"description": "positive text prompt"
}
}
},
"sound_file": {
"description": "音频文件;支持传入音频Base64编码或图音频URL(确保可访问);音频文件支持.mp3/.wav/.m4a/.aac,文件大小不超过5MB,格式不匹配或文件过大会返回错误码等信息;仅支持使用时长不短于2秒且不长于300秒的音频;audio_id、sound_file参数二选一,不能同时为空,也不能同时有;系统会校验音频内容,如有问题会返回错误码等信息",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Audio file. Base64 or reachable URL; .mp3/.wav/.m4a/.aac; ≤5MB; duration 2–300s. Exactly one of audio_id or sound_file. Invalid format/size or content issues return errors"
}
}
}
},
"required": [
"image",
"audio_id",
"sound_file",
"prompt",
"mode",
"callback_url",
"external_task_id"
]
}