🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

MiniMax H3 Max Spicy 参考素材生成视频 API API: AI 图像转视频

通过 Muapi REST API 使用 MiniMax H3 Max Spicy 参考素材生成视频 API将图像制作成视频。按次生成付费,无需订阅。

交互式模型控制

MiniMax H3 Max Spicy 参考素材生成视频是 MiniMax H3 Max 的宽松审核版本,可通过 Muapi API 根据图像、视频和音频参考素材生成视频,支持 480p 或 768p。

MiniMax H3 Max Spicy 参考素材生成视频 API API 文档

端点

POST https://api.muapi.ai/api/v1/minimax-h3-max-spicy-reference-to-video

使用 Muapi API 密钥在 x-api-key 请求头中提交任务,然后轮询 https://api.muapi.ai/api/v1/predictions/{request_id}/result 直到状态变为 completed。

参数

名称类型必填描述
promptstring是Describe the video scene and how the references should be used (e.g. 'Image 1', 'Video 1').
reference_imagesarray否Reference image URLs (up to 9). Provide at least one image or video reference. Max 12 combined reference files.
reference_videosarray否Reference video URLs (up to 3; 2-15s each, 15s combined max). Provide at least one image or video reference.
reference_audiosarray否可选的 参考音频 URLs (up to 3; 2-15s each, 15s combined max). Audio cannot be used alone.
aspect_ratiostring否选项: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16默认值: "adaptive"
resolutionstring否选项: 480p, 768p默认值: "768p"
durationinteger否输出时长(秒)。选项: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15默认值: 5

cURL 示例

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/minimax-h3-max-spicy-reference-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"

Python 示例

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-spicy-reference-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.