Skip to content

MiniMax H3(文生视频)

任务进度与结果查询见 使用说明

说明

异步任务接口,用于提交 MiniMax H3 文生视频任务,具体生成进度与结果请通过任务查询接口获取。

请求地址

http
POST /open/v1/ai_creation/task/submit
http
access_token: {{access_token}}
Content-Type: application/json

请求参数 Body

json
{
  "ref_prompt": "海面日出,海浪缓慢起伏,镜头平稳向前推进,无文字、无标识",
  "creation_type": 4,
  "aspect_ratio": "16:9",
  "clarity": 768,
  "resolution_mode": "native",
  "video_duration": 5,
  "number_of_images": 1,
  "model_code": "minmax-h3-t2v"
}

参数说明

字段类型是否必传示例说明
ref_promptstring海面日出,海浪缓慢起伏,镜头平稳向前推进视频生成提示词,最多 7000 个字符
creation_typeint4创作类型,视频生成为 4
aspect_ratiostring16:9输出视频宽高比,支持 16:94:31:13:49:1621:9
clarityint/string768支持 48076810801440 或字符串 2K;不传默认 1440(2K 官方生成)
resolution_modestringnative分辨率模式:native 表示加速版,direct 表示官方生成,super 表示生成后超分
video_durationint5视频时长(秒),支持 5-15
number_of_imagesint1生成数量,固定为 1;不传按 1 处理
model_codestringminmax-h3-t2v模型编码,固定为 minmax-h3-t2v

支持的分辨率组合:

输出规格clarityresolution_mode说明
480P 加速480native,可省略ComfyUI 加速生成
768P 加速768native,可省略ComfyUI 加速生成
768P 官方生成768directMiniMax H3 官方生成
1080P 超分1080super,可省略由 768P 加速结果超分
2K 官方生成1440 或 2Kdirect,可省略默认兼容模式,使用 MiniMax H3 官方生成
2K 超分1440 或 2Ksuper由 768P 官方生成结果超分

clarityresolution_mode 都不传时,默认使用 1440 + direct。该模式不使用参考素材和 quality_mode

响应示例

json
{
  "trace_id": "96afa792520b0e6a86d72e89435bc0a7",
  "code": 0,
  "msg": "success",
  "data": "a60747d7-dc05-4afc-b2ef-ee4370ed53c6"
}

响应字段说明

字段说明
code响应状态码
msg响应信息
trace_id请求链路追踪 ID
data创作任务唯一 ID(unique_id)

响应状态码说明

code说明
0响应成功
400传入参数格式错误
10400AccessToken 验证失败
40000参数错误
40001超出 QPS 限制
50000系统内部错误

示例代码

shell
curl --location --request POST 'https://open-api.chanjing.cc/open/v1/ai_creation/task/submit' \
--header 'access_token: {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "ref_prompt": "海面日出,海浪缓慢起伏,镜头平稳向前推进,无文字、无标识",
  "creation_type": 4,
  "aspect_ratio": "16:9",
  "clarity": 768,
  "resolution_mode": "native",
  "video_duration": 5,
  "number_of_images": 1,
  "model_code": "minmax-h3-t2v"
}'
go
payload := strings.NewReader(`{
  "ref_prompt": "海面日出,海浪缓慢起伏,镜头平稳向前推进,无文字、无标识",
  "creation_type": 4,
  "aspect_ratio": "16:9",
  "clarity": 768,
  "resolution_mode": "native",
  "video_duration": 5,
  "number_of_images": 1,
  "model_code": "minmax-h3-t2v"
}`)
java
RequestBody body = RequestBody.create(mediaType, "{\n  \"ref_prompt\": \"海面日出,海浪缓慢起伏,镜头平稳向前推进,无文字、无标识\",\n  \"creation_type\": 4,\n  \"aspect_ratio\": \"16:9\",\n  \"clarity\": 768,\n  \"resolution_mode\": \"native\",\n  \"video_duration\": 5,\n  \"number_of_images\": 1,\n  \"model_code\": \"minmax-h3-t2v\"\n}");
py
payload = json.dumps({
  "ref_prompt": "海面日出,海浪缓慢起伏,镜头平稳向前推进,无文字、无标识",
  "creation_type": 4,
  "aspect_ratio": "16:9",
  "clarity": 768,
  "resolution_mode": "native",
  "video_duration": 5,
  "number_of_images": 1,
  "model_code": "minmax-h3-t2v"
})