promptstringจำเป็น
ค่าเริ่มต้น: "A cinematic wide shot of an astronaut walking across a red desert at sunset, wind lifting fine dust, with natural footsteps and distant ambient sound."
minimax/h3/text-to-videoGenerate native-stereo 2K video from text with MiniMax H3.
ลองใช้โมเดล
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"aspect_ratio": "16:9",
"duration": 4,
"prompt": "A slow macro tracking shot reveals creamy, steamed milk pouring smoothly into a rustic ceramic cup of rich espresso, creating elegant latte art. Warm morning sunlight streams in from the side, illuminating the rising steam. A shallow depth of field blurs the cozy coffee shop background. The atmosphere is warm, premium, and inviting as the liquids mix realistically.",
"resolution": "768P"
}ความชอบของมนุษย์
คะแนน Elo จากการโหวตแบบจับคู่ทีละสองแบบโดยไม่เห็นชื่อรุ่น เปรียบเทียบกับโมเดลภาพและวิดีโออื่น ๆ
อันดับอ้างอิงจาก Artificial Analysis Arena
Arena แปลงข้อความเป็นวิดีโอ (ไม่มีเสียง): ผู้ใช้เลือกคลิปที่ดีกว่าจากคลิปสองชิ้นที่สร้างจากพรอมป์ต์เดียวกัน โดยไม่เห็นชื่อโมเดล; ไม่พิจารณาเสียง
MiniMax H3 generates native-stereo 2K video with sound from a written prompt, 4–15 seconds long.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 7,000 characters. |
duration | 4–15, required | 5 | Output length in seconds. |
aspect_ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | 16:9 | 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.
| Output | 2K | 768P |
|---|---|---|
| 4s | $0.52 | $0.24 |
| 5s (default) | $0.65 | $0.30 |
| 10s | $1.30 | $0.60 |
| 15s | $1.95 | $0.90 |
Failed runs are not charged.
duration is required.Other MiniMax H3 endpoints: minimax/h3/image-to-video, minimax/h3/reference-to-video, minimax/h3-max/text-to-video (faster, cheaper).
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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/text-to-video",
"prompt": "A cinematic wide shot of an astronaut walking across a red desert at sunset, wind lifting fine dust, with natural footsteps and distant ambient sound.",
"duration": 5,
"resolution": "2K",
"aspect_ratio": "16:9",
"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"สร้าง SandBase API key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
promptstringจำเป็นค่าเริ่มต้น: "A cinematic wide shot of an astronaut walking across a red desert at sunset, wind lifting fine dust, with natural footsteps and distant ambient sound."
durationintegerจำเป็นค่าเริ่มต้น: 5
ค่าที่เป็นไปได้: 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.
ค่าเริ่มต้น: "2K"
ค่าที่เป็นไปได้: "768P", "2K"
aspect_ratiostringค่าเริ่มต้น: "16:9"
ค่าที่เป็นไปได้: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"
aigc_watermarkbooleanWhether to add an AIGC label watermark to the generated video.
ค่าเริ่มต้น: false
{
"model": "minimax/h3/text-to-video",
"prompt": "A cinematic wide shot of an astronaut walking across a red desert at sunset, wind lifting fine dust, with natural footsteps and distant ambient sound.",
"duration": 5,
"resolution": "2K",
"aspect_ratio": "16:9",
"aigc_watermark": false
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"poster": "https://static.sandbase.ai/examples/posters/7bc657ed4367bfaa69c7.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/9fa30c5b-104d-4fa7-b4b6-1573c5c4f6ad/output/f3713823-c90f-4217-a78b-6edb20e162dd.mp4"
}
]