跳到内容

Hy ​

更新时间

Endpoint: POST https://mps.intl.tencentcloudapi.comAction: CreateAigcVideoTask

Hy Video 是腾讯混元的视频生成模型,支持文生视频与图生视频,可同时指定首帧和尾帧。适合作为通用的基础生成引擎。

基本信息 ​

项目值
ModelNameHunyuan
ModelVersion1.5
是否支持护栏解除不支持

支持 text-to-video 与 image-to-video 的基础引擎。可同时指定首帧和尾帧。

请求参数 ​

参数必填类型说明
ModelName必填String固定值 Hunyuan
ModelVersion选填String1.5
Prompt必填String生成 Prompt。文本输入模式下最多撰写 2000 个字符
NegativePrompt选填String结果中需排除的元素。仅在支持的模型上生效
EnhancePrompt选填BooleanPrompt 自动校正。默认值 false
ImageUrl选填String首帧图片 URL。必须可从外部访问且不超过 10MB
LastImageUrl选填String尾帧图片 URL。需与 ImageUrl 一起使用
ImageInfos.N选填Array参考图片数组。如 Category / Url / ReferenceType 等
Duration选填Integer生成时长(秒)。仅生效各模型允许的值
ExtraParameters选填ObjectResolution / 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>"
  }
}

基于 VitePress 构建 · 部署于腾讯云 EdgeOne Pages