POST
/
hunyuan
/
v1
/
video
/
generations
Hunyuan 视频生成
curl --request POST \
  --url https://vip.xmsmartlink.com/hunyuan/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ModelName": "Hunyuan",
  "ModelVersion": "1.5",
  "Prompt": "一辆红色跑车在雨夜城市街道飞驰,霓虹灯反射,电影感",
  "OutputConfig": {
    "Duration": 5,
    "Resolution": "1080P"
  },
  "SessionContext": "apifox text2video debug"
}
'
{
  "id": "task_123456",
  "task_id": "task_123456",
  "object": "video",
  "model": "hunyuan-video-1.5",
  "status": "queued",
  "progress": 0,
  "created_at": 1744700000
}

Authorizations

Authorization
string
header
required

使用 Authorization: Bearer <YOUR_API_KEY> 进行认证。

Body

application/json
ModelName
string
required

模型名称,通常为 Hunyuan。

ModelVersion
string

模型版本,通常为 1.5。

Prompt
string

提示词。文生视频主要使用该字段。

FileInfos
object[]

图生、参考生、视频参考或编辑场景的资源列表。

LastFrameFileId
string

首尾帧场景的尾帧 FileId。

LastFrameUrl
string

首尾帧场景的尾帧 URL。

NegativePrompt
string

负向提示词。

EnhancePrompt
string

提示词增强内容。

OutputConfig
object

Hunyuan 输出配置。

InputRegion
string

输入区域。

SceneType
string

场景类型。

Seed
integer

随机种子。

SessionId
string

会话标识。

SessionContext
string

会话上下文。

TasksPriority
integer

任务优先级。

ExtInfo

扩展信息。

Response

Hunyuan 任务创建响应。

id
string
task_id
string
object
string
model
string
status
string
progress
integer
created_at
integer<int64>
completed_at
integer<int64>
expires_at
integer<int64>
seconds
string
size
string
error
unknown
metadata
object