minimax-h3

MiniMax H3 是一款视频生成模型,支持通过文字、首尾帧和多模态参考素材创建视频,可按当前参数选择时长与清晰度。UniAI 模型页提供素材输入、请求字段和人民币计费说明,并通过异步任务流程查询生成状态与结果。提示词处理和视频再生成使用单独接口,不能假定所有操作都适用于同一个生成请求。正式接入前应核对当前 Schema,使用代表性素材验证输出规格与实际效果。

An explorer on a bioluminescent shoreline beneath a monumental celestial ring
模型代码
minimax-h3
供应商
MiniMax
API 端点
/v1/videos/generations
计费
context_input | 人民币 0.00000612 元 / prompt_tokens | {"operation":"video.context"}
更新时间
2026-11-12

能力

  • 通过当前公开任务端点生成视频
  • 实时 Schema 提供时支持图片、参考素材、时长或分辨率控制
  • 当前参数包括 prompt, resolution, duration

限制

  • 模型能力与参数范围可能更新,生产环境应锁定并验证使用的参数组合
  • 未出现在实时 Request Schema 中的参数不应假定可用
  • 异步任务需要处理轮询、失败、超时和内容安全状态

典型场景

  • 产品原型和自动化内容工作流
  • 批量媒体生成与程序化创作
  • 需要统一鉴权、计费和调用记录的多模型应用

价格与计费示例

  • context_input | 人民币 0.00000612 元 / prompt_tokens | {"operation":"video.context"}
  • context_output | 人民币 0.00002448 元 / completion_tokens | {"operation":"video.context"}
  • images | 人民币 0.272 元 / input_images | {"operation":"video.generate"}
  • input_2k | 人民币 0.884 元 / input_video_seconds | {"operation":"video.generate","resolution_tier":"2k"}
  • input_768p | 人民币 0.544 元 / input_video_seconds | {"operation":"video.generate","resolution_tier":"768p"}
  • output_2k | 人民币 0.884 元 / output_video_seconds | {"operation":"video.generate","resolution_tier":"2k"}
  • output_768p | 人民币 0.544 元 / output_video_seconds | {"operation":"video.generate","resolution_tier":"768p"}
  • regeneration_images | 人民币 0.17 元 / input_images | {"operation":"video.regenerate"}
  • regeneration_input | 人民币 0.34 元 / input_video_seconds | {"operation":"video.regenerate","resolution_tier":"2k"}
  • regeneration_output | 人民币 0.34 元 / output_video_seconds | {"operation":"video.regenerate","resolution_tier":"2k"}

请求参数

参数类型必填默认值可选值
modelstring是
prompttextarea是
resolutionselect否768P768P, 2K
durationinteger否5
aspect_ratioselect否16:921:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive
image_urlasset_list否
last_image_urlasset_list否
reference_image_urlsasset_list否
reference_video_urlsasset_list否
reference_audio_urlsasset_list否
aigc_watermarkboolean否

API 调用示例

cURL

curl -X POST 'https://api.uniai.tv/v1/videos/generations' \
  -H 'Authorization: Bearer $UNIALL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"aspect_ratio":"16:9","duration":5,"model":"minimax-h3","prompt":"Describe the output you want","resolution":"768P"}'

Python

import json
import requests

payload = json.loads(r'''{"aspect_ratio":"16:9","duration":5,"model":"minimax-h3","prompt":"Describe the output you want","resolution":"768P"}''')
response = requests.post(
    "https://api.uniai.tv/v1/videos/generations",
    headers={"Authorization": "Bearer " + UNIALL_API_KEY},
    json=payload,
)
response.raise_for_status()
result = response.json()

JavaScript

const response = await fetch("https://api.uniai.tv/v1/videos/generations", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.UNIALL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"aspect_ratio":"16:9","duration":5,"model":"minimax-h3","prompt":"Describe the output you want","resolution":"768P"}),
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();

常见问题

minimax-h3 的 API 端点是什么?

端点根据当前模型能力和 Request Schema 自动解析,并显示在本页 API 区域。

minimax-h3 如何计费?

价格区域直接读取当前结构化计费配置;改价后无需重写本文。

可以使用 Python 调用吗?

可以。本页示例使用当前端点和原始模型代码标识。

是否提供 JavaScript 和 cURL 示例?

提供。三种示例共享同一实时请求结构。

支持哪些分辨率、时长或参考图参数?

支持范围取决于当前 Request Schema,未显示的字段不应假定可用。

生产环境接入时要注意什么?

请验证参数、超时、错误处理和异步视频任务状态,并在模型更新后重新运行小范围测试。