🔥 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 Spicy 图生视频 API: AI 图像转视频

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

交互式模型控制

MiniMax H3 Spicy 图生视频可将起始图像转换为大胆且富有表现力的视频,带有原生立体声音频和可选的末帧引导,支持 480p、768p 或 2K 输出,片段时长为 3-15 秒。

MiniMax H3 Spicy 图生视频 API 文档

端点

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

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

参数

名称类型必填描述
image_urlstring是必填的起始图片 URL。输出画布遵循该图片的画面比例。
promptstring否可选的 description of the scene, action, camera movement, lighting, and mood.
last_imagestring否可选的 final-frame image URL for interpolation.
resolutionstring否输出视频的分辨率。选项: 480p, 768p, 2k默认值: "480p"
durationinteger否Output video duration (秒).选项: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15默认值: 5
seedinteger否随机种子。负值表示使用随机种子。默认值: -1
aigc_watermarkboolean否Optional. Add an AIGC watermark to the 生成的视频.

cURL 示例

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/minimax-h3-image-to-video-spicy \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/your-image_url"}' | 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-image-to-video-spicy", headers=headers, json={"image_url":"https://example.com/your-image_url"})
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.