imagestringbắt buộc
The first frame of the generated video.
minimax/h3/image-to-videoGenerate native-stereo 2K video from a first frame and optional last frame with MiniMax H3.
Thử model
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
Bạn muốn làm gì tiếp theo?
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
{
"duration": 15,
"image": "https://static.sandbase.ai/examples/23ca8902-929b-4b32-912d-ce1d7dd40a79/input/9a0ddc5e-266d-45c2-a34f-9db1ce9044ab.jpeg",
"prompt": "make my cleavage bigger and fatter and jigglier and my bottom part too\nwith my body and clothes are all sweaty and with some milk on it i seductively dance then turn around and jiggle my lower behind part up and down\nthen i drop on the floor knees first all hot and tired but enjoying my self the i grab a cucumber from the camera and i lick and suck it seductively \nthen loads of milk drop on me from the camera while i laugh and enjoy myself",
"resolution": "768P"
}{
"aigc_watermark": false,
"duration": 5,
"image": "https://static.sandbase.ai/examples/c375cafc-7a48-4473-af89-323d11969730/input/b13dbd25-b7eb-4f11-a917-1c245919b466.jpg",
"prompt": "The camera slowly pushes in toward the single glowing tree in the wet plaza. Mist drifts across the ruined streets, leaves tremble slightly, reflections shimmer on the rain-slick ground. Cinematic night lighting, no new objects, no text, no watermark.",
"resolution": "768P"
}{
"duration": 15,
"image": "https://static.sandbase.ai/examples/5b8ea529-00b1-4ea4-91de-bf9aa92233f0/input/e3014cf9-f667-4b58-976d-3c48a4a1887c.jpeg",
"prompt": "make my cleavage bigger and fatter and jigglier but not that much and my bottom part too\nwith my body and clothes are all sweaty and with some milk on it i dance front facing camera then i turn and jiggle my lower part a bit\nthen i drop on the floor knees first all hot and tired but enjoying my self the i grab a cucumber from the camera and i start sucking it it like its an ice cream \nthen small loads of milk drop on me from the camera while i laugh and enjoy myself\nmake sure to include every detail and make the video longer than the usual 15 seconds maybe 30 and take your time with it until you perfect it",
"resolution": "768P"
}{
"duration": 15,
"image": "https://static.sandbase.ai/examples/cc4277ea-9fe8-47e6-a0dc-4a4a3a44eda5/input/ac3d54d3-5e54-423a-a841-0c764c0c6f51.jpeg",
"prompt": "make me turn around and dance like ice spice in a rap video but make my bottom part alot bigger and rounder and jggilier and moves like its clapping and small amount of milk shooting at it from random directions while the camera moves like its walking towards me while I'm faced against the wall and i start saying ah ah ah ah like I'm enjoying it \nkeep the video frame on my whole body with my face showing too",
"resolution": "768P"
}MiniMax H3 image-to-video: animate a first frame, optionally toward a last frame, into a 4–15 second native-stereo 2K clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 7,000 characters. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
end_image | image URL | — | Optional last frame. |
duration | 4–15, required | 5 | Output length in seconds. |
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/text-to-video, minimax/h3/reference-to-video, minimax/h3-max/image-to-video (faster, cheaper).
Bắt đầu xây dựng
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/h3/image-to-video",
"prompt": "The camera slowly pulls back, revealing the full landscape as clouds drift overhead and light shifts across the terrain.",
"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"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.
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.
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"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.
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.
imagestringbắt buộcThe first frame of the generated video.
promptstringbắt buộcMặc định: "The camera slowly pulls back, revealing the full landscape as clouds drift overhead and light shifts across the terrain."
durationintegerbắt buộcMặc định: 5
Giá trị có thể dùng: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringOptional last frame for first-to-last keyframe control.
resolutionstringOutput resolution. 768P is generated natively; 2K is upscaled via an in-context regeneration pass.
Mặc định: "2K"
Giá trị có thể dùng: "768P", "2K"
aigc_watermarkbooleanWhether to add an AIGC label watermark to the generated video.
Mặc định: false
{
"model": "minimax/h3/image-to-video",
"prompt": "The camera slowly pulls back, revealing the full landscape as clouds drift overhead and light shifts across the terrain.",
"duration": 5,
"resolution": "2K",
"aigc_watermark": false
}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/c0d98c0689b259fac83b.jpg",
"source": "Completed user prediction (human visual safety screened)",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/23ca8902-929b-4b32-912d-ce1d7dd40a79/output/9a5939f1-e402-4344-8460-c7d593c3bd52.mp4"
}
]