audiosarray
Up to 3 reference audio URLs (2-15 seconds each, at most 15 seconds combined), referenced in the prompt as Audio 1, Audio 2, and so on. Audio requires at least one reference image or video.
minimax/h3-max/reference-to-videoMiniMax H3 Max by MiniMax generates a 5-15 second video with native audio at 480P or 768P that keeps subjects, motion, and voice consistent with reference images, videos, and audio.
試用這個模型
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 9
接下來您想做什麼?
選擇一個範例,將其輸入與結果載入 playground。
{
"aspect_ratio": "16:9",
"audios": [
"https://static.sandbase.ai/examples/c1934625-e6b2-40d7-bf17-9017e8ca6191/input/233a82cc-7618-4314-967c-b14207086234.mp3"
],
"duration": 9,
"images": [
"https://static.sandbase.ai/examples/c1934625-e6b2-40d7-bf17-9017e8ca6191/input/26f1c4a1-bfb2-4db6-a27f-aafabd36b0d5.png"
],
"prompt": "Image 1 is the male character. Audio1 is him talking. Lipsync Image1 to Audio1",
"prompt_expansion_mode": "balanced",
"resolution": "480P"
}{
"aspect_ratio": "16:9",
"audios": [
"https://static.sandbase.ai/examples/ef24fea0-6082-44fd-99c7-ded480031255/input/4665aac1-b08b-4f94-b5de-87db68959484.mp3"
],
"duration": 5,
"images": [
"https://static.sandbase.ai/examples/ef24fea0-6082-44fd-99c7-ded480031255/input/93ac1b42-6ede-4871-a42c-82e90164a227.png"
],
"prompt": "Image 1 is the male character. Audio1 is him talking. Lipsync Image1 to Audio1",
"prompt_expansion_mode": "balanced",
"resolution": "480P"
}MiniMax H3 Max reference-to-video: images, videos, and audio references keep subjects, motion, and voice consistent in a 5–15 second clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
aspect_ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | — | Output frame shape. |
resolution | 480P / 768P | 768P | Sets the per-second rate. |
duration | integer 5–15 | 5 | Output length in seconds. |
images | image URL[] (≤9) | — | Reference images, Image 1, Image 2, … |
prompt_expansion_mode | balanced / quality | balanced | balanced rewrites the prompt lightly; quality expands it more for richer detail. |
videos | video URL[] (≤3) | — | Reference clips, Video 1, … |
audios | audio URL[] (≤3) | — | Reference audio, Audio 1, … |
You pay for output seconds: $0.08 at 768P and $0.05 at 480P. Very large reference sets (over 4,096 reference tokens) add $0.02 per 1,000 extra tokens.
| Output | 768P | 480P |
|---|---|---|
| 5s (default) | $0.40 | $0.25 |
| 10s | $0.80 | $0.50 |
| 15s | $1.20 | $0.75 |
Failed runs are not charged.
Other MiniMax H3 Max endpoints: minimax/h3-max/text-to-video, minimax/h3-max/image-to-video, minimax/h3/reference-to-video (2K).
開始建置
透過 SandBase Unified Run API 提交此模型。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "minimax/h3-max/reference-to-video",
"images": [
"https://static.sandbase.ai/examples/minimax/mirrored/example_inputs/hailuo23/pro_i2v_in.jpg"
],
"prompt": "Image 1 is the female protagonist. Image 2 is her small dog. Keep the woman and dog consistent with their respective reference images while they walk together through a sunlit garden.",
"duration": 5,
"resolution": "768P",
"prompt_expansion_mode": "balanced"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"建立 SandBase API 金鑰,並將其設定在伺服器環境中。所有請求都使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開,也不要提交到儲存庫。
使用此模型 ID 及其輸入,向 /v1/run 發送 POST。上方的請求範例包含提交與輪詢。
使用回傳的執行 ID 持續輪詢,直到狀態為 completed、failed 或 timeout。只有在 completed 之後才讀取輸出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"在模型的 image、video 或 audio 欄位中傳入可公開存取的檔案 URL。支援格式與限制會顯示在每個 Playground 輸入欄位旁。
在 Playground 中支援的圖片欄位上使用上傳或取代控制項。影片 URL 欄位可接受託管的 driving video;它們不代表支援影片上傳。
audiosarrayUp to 3 reference audio URLs (2-15 seconds each, at most 15 seconds combined), referenced in the prompt as Audio 1, Audio 2, and so on. Audio requires at least one reference image or video.
imagesarrayUp to 9 subject or style reference image URLs, referenced in the prompt as Image 1, Image 2, and so on.
promptstring必填Text prompt for video generation. Refer to reference assets by their modality and order in the reference lists: Image 1, Image 2, Video 1, Audio 1, and so on.
videosarrayUp to 3 motion or reference video URLs (2-15 seconds each, at most 15 seconds combined), referenced in the prompt as Video 1, Video 2, and so on.
durationintegerThe duration of the video in seconds.
預設:5
最小值:5
最大值:15
resolutionstringThe native generation resolution of the video.
預設:"768P"
可能值:"480P", "768P"
aspect_ratiostringOutput aspect ratio. Omit to let the model choose from the prompt and reference inputs.
可能值:"21:9", "16:9", "4:3", "1:1", "3:4", "9:16"
prompt_expansion_modestringHow much effort to spend rewriting the prompt before generation. `balanced` returns in about a second; `quality` spends up to ~30 seconds on a richer prompt.
預設:"balanced"
可能值:"balanced", "quality"
{
"model": "minimax/h3-max/reference-to-video",
"images": [
"https://static.sandbase.ai/examples/minimax/mirrored/example_inputs/hailuo23/pro_i2v_in.jpg"
],
"prompt": "Image 1 is the female protagonist. Image 2 is her small dog. Keep the woman and dog consistent with their respective reference images while they walk together through a sunlit garden.",
"duration": 5,
"resolution": "768P",
"prompt_expansion_mode": "balanced"
}已完成的執行會在輸出中顯示結果。以下為模型已儲存的範例,並非新的生成結果。
[
{
"poster": "https://static.sandbase.ai/examples/posters/bfca29c8271a0d41b3ae.jpg",
"source": "Completed user prediction (human visual safety screened)",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/c1934625-e6b2-40d7-bf17-9017e8ca6191/output/47cc4d11-7757-4ca2-84b0-90ed513f8158.mp4"
}
]