MiniMax Hailuo 2.3 Standard Text to Video
minimax/hailuo/2.3/standard/text-to-videoMiniMax Hailuo 2.3 Standard by MiniMax turns a text prompt into a 6 or 10 second 768P video with realistic motion.
試用這個模型
Playground
進階設定
接下來您想做什麼?
範例
選擇一個範例,將其輸入與結果載入 playground。
- 開啟結果 ↗
輸入
{ "prompt": "An intense electrical storm rages over a modern city skyline at night. Multiple lightning bolts strike simultaneously, illuminating the towering skyscrapers in brilliant white flashes. Thunder clouds roil and churn overhead while constant lightning creates a strobe effect. Rain pours in heavy sheets, visible in the glow of city lights. The camera captures the drama from across a river as lightning reflects in the water. Lightning branches across the sky in intricate patterns. Atmosphere: dramatic, powerful, electrifying urban storm." }
MiniMax Hailuo 2.3 Standard Text to Video
Hailuo 2.3 Standard: 6 or 10 second 768P video from a prompt.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,000 characters. |
duration | 6 / 10 | 6 | Output length in seconds. |
prompt_optimizer | boolean | true | Let MiniMax rewrite the prompt for better results. |
Billing
$0.28 for 6 seconds, $0.56 for 10 seconds.
| Output | Price |
|---|---|
| 6s (default) | $0.28 |
| 10s | $0.56 |
Failed runs are not charged.
Prompting
- Describe the motion and camera in one or two sentences.
Limits
- No audio track.
Also on SandBase
Other Hailuo 2.3 endpoints: minimax/hailuo/2.3/pro/text-to-video, minimax/hailuo/2.3/pro/image-to-video, minimax/hailuo/2.3/standard/image-to-video, minimax/hailuo/2.3-fast/pro/image-to-video, minimax/hailuo/2.3-fast/standard/image-to-video, minimax/h3/text-to-video (newer, with audio).
開始建置
送出您的第一個請求
透過 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/hailuo/2.3/standard/text-to-video",
"prompt": "An intense electrical storm rages over a modern city skyline at night. Multiple lightning bolts strike simultaneously, illuminating the towering skyscrapers in brilliant white flashes. Thunder clouds roil and churn overhead while constant lightning creates a strobe effect. Rain pours in heavy sheets, visible in the glow of city lights. The camera captures the drama from across a river as lightning reflects in the water. Lightning branches across the sky in intricate patterns. Atmosphere: dramatic, powerful, electrifying urban storm.",
"duration": 6,
"prompt_optimizer": true
}
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"2. 驗證
建立 SandBase API 金鑰,並將其設定在伺服器環境中。所有請求都使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開,也不要提交到儲存庫。
3. 佇列
提交請求
使用此模型 ID 及其輸入,向 /v1/run 發送 POST。上方的請求範例包含提交與輪詢。
取得請求狀態與結果
使用回傳的執行 ID 持續輪詢,直到狀態為 completed、failed 或 timeout。只有在 completed 之後才讀取輸出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"4. 檔案
託管檔案
在模型的 image、video 或 audio 欄位中傳入可公開存取的檔案 URL。支援格式與限制會顯示在每個 Playground 輸入欄位旁。
上傳圖片
在 Playground 中支援的圖片欄位上使用上傳或取代控制項。影片 URL 欄位可接受託管的 driving video;它們不代表支援影片上傳。
5. Schema
輸入
durationinteger
The duration of the video in seconds.
預設:6
可能值:6, 10
prompt_optimizerboolean
Whether to use the model's prompt optimizer
預設:true
{
"model": "minimax/hailuo/2.3/standard/text-to-video",
"prompt": "An intense electrical storm rages over a modern city skyline at night. Multiple lightning bolts strike simultaneously, illuminating the towering skyscrapers in brilliant white flashes. Thunder clouds roil and churn overhead while constant lightning creates a strobe effect. Rain pours in heavy sheets, visible in the glow of city lights. The camera captures the drama from across a river as lightning reflects in the water. Lightning branches across the sky in intricate patterns. Atmosphere: dramatic, powerful, electrifying urban storm.",
"duration": 6,
"prompt_optimizer": true
}輸出
已完成的執行會在輸出中顯示結果。以下為模型已儲存的範例,並非新的生成結果。
[
{
"poster": "https://static.sandbase.ai/examples/posters/33c23c1ccfb98f014ee0.jpg",
"source": "MiniMax schema mirror",
"source_url": "https://platform.minimax.io/docs/guides/video-generation",
"url": "https://static.sandbase.ai/examples/16d7e15e-cbe6-4f30-8acb-3be6a83d1881/output/d861a246-fbfb-4cf6-b113-6edb46d05cc9.mp4"
}
]