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.
Essayer le modèle
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 9
Que souhaitez-vous faire ensuite ?
Sélectionnez un exemple pour charger ses entrées et son résultat dans le 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).
Commencer à construire
Soumettez ce modèle via l'API Unified Run de SandBase.
# 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"Créez une clé API SandBase et définissez-la dans l'environnement de votre serveur. Toutes les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez la clé sur votre serveur. Ne l'exposez pas dans le code du navigateur et ne la committez pas dans un dépôt.
Faites un POST sur /v1/run avec cet ID de modèle et ses entrées. L'exemple de requête ci-dessus inclut la soumission et le polling.
Utilisez l'ID d'exécution renvoyé pour interroger jusqu'à ce que le statut soit completed, failed ou timeout. Ne lisez la sortie qu'une fois completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passez une URL de fichier accessible publiquement dans le champ image, video ou audio du modèle. Les formats pris en charge et les limites sont indiqués à côté de chaque entrée du Playground.
Utilisez le contrôle upload ou replace sur les champs image pris en charge dans le Playground. Les champs URL vidéo acceptent une vidéo de conduite hébergée ; cela n'implique pas la prise en charge de l'importation vidéo.
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.
promptstringobligatoireText 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.
Par défaut : 5
Minimum : 5
Maximum : 15
resolutionstringThe native generation resolution of the video.
Par défaut : "768P"
Valeurs possibles : "480P", "768P"
aspect_ratiostringOutput aspect ratio. Omit to let the model choose from the prompt and reference inputs.
Valeurs possibles : "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.
Par défaut : "balanced"
Valeurs possibles : "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"
}Une exécution terminée expose son résultat dans output. Ce qui suit est l'exemple enregistré du modèle, et non une nouvelle génération.
[
{
"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"
}
]