Hy
Endpoint: POST https://mps.intl.tencentcloudapi.comAction: CreateAigcVideoTask
Hy Video 是腾讯混元的视频生成模型,支持文生视频与图生视频,可同时指定首帧和尾帧。适合作为通用的基础生成引擎。
基本信息
| 项目 | 值 |
|---|---|
| ModelName | Hunyuan |
| ModelVersion | 1.5 |
| 是否支持护栏解除 | 不支持 |
支持 text-to-video 与 image-to-video 的基础引擎。可同时指定首帧和尾帧。
请求参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
ModelName | 必填 | String | 固定值 Hunyuan |
ModelVersion | 选填 | String | 1.5 |
Prompt | 必填 | String | 生成 Prompt。文本输入模式下最多撰写 2000 个字符 |
NegativePrompt | 选填 | String | 结果中需排除的元素。仅在支持的模型上生效 |
EnhancePrompt | 选填 | Boolean | Prompt 自动校正。默认值 false |
ImageUrl | 选填 | String | 首帧图片 URL。必须可从外部访问且不超过 10MB |
LastImageUrl | 选填 | String | 尾帧图片 URL。需与 ImageUrl 一起使用 |
ImageInfos.N | 选填 | Array | 参考图片数组。如 Category / Url / ReferenceType 等 |
Duration | 选填 | Integer | 生成时长(秒)。仅生效各模型允许的值 |
ExtraParameters | 选填 | Object | Resolution / AspectRatio / EnableAudio |
AdditionalParameters | 选填 | String | 承载模型专属选项的 JSON 字符串。seed 的传递格式请参考 附加配置 |
请求示例
image-to-video(首 / 尾帧)
json
{
"ModelName": "Hunyuan",
"ModelVersion": "1.5",
"Prompt": "move the picture",
"NegativePrompt": "top lighting, oversaturated colors",
"EnhancePrompt": false,
"ImageUrl": "https://<cdn>/first.png",
"LastImageUrl": "https://<cdn>/last.png",
"Duration": 5,
"ExtraParameters": {
"Resolution": "720P",
"AspectRatio": "16:9",
"EnableAudio": true
},
"Operator": "admin",
"StoreCosParam": {
"CosBucketName": "<bucket-appid>",
"CosBucketRegion": "<bucket-region>",
"CosBucketPath": "/aigc/"
}
}响应示例
json
{
"Response": {
"Status": "DONE",
"Message": "ok",
"Resolution": "1920x1080",
"VideoUrls": [
"https://aigc-output-video-<id>.cos.<region>.myqcloud.com/<file>.mp4?q-sign-algorithm=sha1&..."
],
"RequestId": "<request-id>"
}
}