MiniMax H3 Max 文生视频 API API: AI 视频生成
通过 Muapi REST API 使用 MiniMax H3 Max 文生视频 API从文本生成视频。按次生成付费,无需订阅。
交互式模型控制
使用 Muapi 上的 MiniMax H3 Max API,根据文本生成 1080p 视频。呈现电影感运动,支持提示扩展,按次生成付费。
通过 Muapi REST API 使用 MiniMax H3 Max 文生视频 API从文本生成视频。按次生成付费,无需订阅。
使用 Muapi 上的 MiniMax H3 Max API,根据文本生成 1080p 视频。呈现电影感运动,支持提示扩展,按次生成付费。
POST https://api.muapi.ai/api/v1/minimax-h3-max-text-to-video使用 Muapi API 密钥在 x-api-key 请求头中提交任务,然后轮询 https://api.muapi.ai/api/v1/predictions/{request_id}/result 直到状态变为 completed。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| prompt | string | 是 | 描述视频场景、动作、镜头移动和风格。 |
| aspect_ratio | string | 否 | 选项: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16默认值: "16:9" |
| resolution | string | 否 | Output resolution. 1080p applies latent refinement from a 768p source.选项: 480p, 768p, 1080p默认值: "768p" |
| duration | integer | 否 | 输出时长(秒)。选项: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15默认值: 5 |
| prompt_expansion_mode | string | 否 | Use balanced for Seegen-routed 480p/768p requests. Disabled and quality are available only for 1080p requests routed through Fal.选项: disabled, balanced, quality默认值: "balanced" |
REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/minimax-h3-max-text-to-video \
-H "x-api-key: $MUAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"<prompt>"}' | jq -r .request_id)
curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"import os, time, requests
API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}
r = requests.post(f"{API}/minimax-h3-max-text-to-video", headers=headers, json={"prompt":"<prompt>"})
request_id = r.json()["request_id"]
while True:
res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
if res["status"] == "completed":
print(res["outputs"]); break
if res["status"] == "failed":
raise RuntimeError(res.get("error"))
time.sleep(3)完整文档及 Agent/MCP 集成: llms.txt. 在此获取 API 密钥: muapi.ai/access-keys.