Skip to content

Hy ​

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

기본 정보 ​

항목값
ModelNameHunyuan
ModelVersion1.5
가드레일 해제 지원미지원

text-to-video와 image-to-video를 지원하는 기본 엔진입니다. 첫 프레임과 끝 프레임을 함께 지정할 수 있습니다.

요청 파라미터 ​

파라미터필수타입설명
ModelName필수String고정값 Hunyuan
ModelVersion선택String1.5
Prompt필수String생성 프롬프트. 텍스트 입력 모드는 최대 2000자로 작성
NegativePrompt선택String결과에서 제외할 요소. 지원 모델에서 적용
EnhancePrompt선택Boolean프롬프트 자동 보정. 기본값 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