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.
Thử model
Phòng thử nghiệm
Cài đặt nâng cao
Bạn muốn làm gì tiếp theo?
Ví dụ
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
- Mở kết quả ↗
Đầu vào
{ "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).
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Gửi model này qua 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. Xác thực
Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
3. Hàng đợi
Gửi request
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Lấy trạng thái và kết quả request
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"4. Tệp
Tệp được host
Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Tải ảnh lên
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
5. Schema
Đầu vào
durationinteger
The duration of the video in seconds.
Mặc định: 6
Giá trị có thể dùng: 6, 10
prompt_optimizerboolean
Whether to use the model's prompt optimizer
Mặc định: 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
}Đầu ra
Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
[
{
"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"
}
]