audiosarray
Audio requires at least one reference image or video.
minimax/h3/reference-to-videoGenerate native-stereo 2K video guided by image, video, and audio references with MiniMax H3.
Modeli deneyin
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 9
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"aigc_watermark": false,
"audios": [],
"duration": 7,
"images": [
"https://static.sandbase.ai/examples/bff323df-f593-467c-b6a7-96a7bf473983/input/4c91f51e-f6d9-426a-8896-4678c7a115c7.jpg"
],
"prompt": "anime scene, two-shot on a campus path: the reference character (male student) stops and faces a middle-aged female dormitory counselor in her 40s, counselor has chestnut bob hair, glasses, navy blazer, holding a small key, slightly serious expression, noon lighting, calm atmosphere, cinematic composition, Hyouka-style",
"resolution": "768P",
"videos": []
}{
"aigc_watermark": false,
"audios": [],
"duration": 4,
"images": [
"https://static.sandbase.ai/examples/f37db918-73c5-4c0b-8801-ad0dc81e3e4f/input/b05d0c19-55b3-4e16-bf09-a50b297dcde6.jpg"
],
"prompt": "anime close-up, the reference character's hand reaching out to take a small key, then a quick facial close-up showing an embarrassed awkward expression, soft natural lighting, Hyouka-style reaction shot, comedic timing",
"resolution": "768P",
"videos": []
}MiniMax H3 reference-to-video: up to 9 images, 3 videos, and 3 audio clips keep characters, motion, and voice consistent in a new 2K clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 7,000 characters. |
images | image URL[] (≤9) | — | Reference images, Image 1, Image 2, … |
videos | video URL[] (≤3) | — | Reference clips, Video 1, … |
audios | audio URL[] (≤3) | — | Reference audio, Audio 1, … |
duration | 4–15, required | 5 | Output length in seconds. |
aspect_ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | — | Output frame shape. |
resolution | 768P / 2K | 2K | Sets the per-second rate. |
aigc_watermark | boolean | false | Add MiniMax's AI-generated watermark. |
You pay for output seconds: $0.13 at 2K (the default) and $0.06 at 768P. Each reference image beyond the fifth adds $0.04.
| Output | 2K | 768P |
|---|---|---|
| 4s | $0.52 | $0.24 |
| 5s (default) | $0.65 | $0.30 |
| 10s | $1.30 | $0.60 |
| 15s | $1.95 | $0.90 |
| 5s with 9 images | $0.81 | $0.46 |
Failed runs are not charged.
duration is required.Other MiniMax H3 endpoints: minimax/h3/text-to-video, minimax/h3/image-to-video, minimax/h3-max/reference-to-video (faster, cheaper).
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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/reference-to-video",
"prompt": "Keep the referenced character and motion consistent while creating a cinematic garden scene with synchronized ambient sound.",
"duration": 5,
"resolution": "2K",
"aigc_watermark": false
}
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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
audiosarrayAudio requires at least one reference image or video.
imagesarraypromptstringzorunluVarsayılan: "Keep the referenced character and motion consistent while creating a cinematic garden scene with synchronized ambient sound."
videosarrayEach clip must be 2–15 seconds; combined duration must not exceed 15 seconds.
durationintegerzorunluVarsayılan: 5
Olası değerler: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringOutput resolution. 768P is generated natively; 2K is upscaled via an in-context regeneration pass.
Varsayılan: "2K"
Olası değerler: "768P", "2K"
aspect_ratiostringOutput aspect ratio. Omit to let the model choose from the prompt and reference inputs.
Olası değerler: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"
aigc_watermarkbooleanWhether to add an AIGC label watermark to the generated video.
Varsayılan: false
{
"model": "minimax/h3/reference-to-video",
"prompt": "Keep the referenced character and motion consistent while creating a cinematic garden scene with synchronized ambient sound.",
"duration": 5,
"resolution": "2K",
"aigc_watermark": false
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/posters/ffaeca365afefbb47353.jpg",
"source": "Completed user prediction (human visual safety screened)",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/bff323df-f593-467c-b6a7-96a7bf473983/output/43ca4f16-10f2-42ff-ab1c-6f829f514451.mp4"
}
]