MiniMax H3 Lite
minimax-h3-lite/reference-to-video
MiniMax's lightweight video generation tier, supporting three paths: text-to-video, first-frame-driven, and reference-material-based video generation. Each run produces a 4- to 15-second clip at 480P or 768P, suited to fast draft previews and batch variant screening.
Try minimax-h3-lite/reference-to-video
Input
Output
Pricing
minimax-h3-lite/reference-to-video per second
| Specifications | Unit Price |
|---|---|
| 480P | $0.0358 |
| 768P | $0.0572 |
Introduction coming soon
A detailed guide for this model is being prepared. Pricing, parameters and the API docs below are already available.
Frequently asked questions
View all FAQs →-
How long can the duration be set, and what is the default?
duration takes an integer number of seconds between 4 and 15, defaulting to 5 seconds. Billing is per second, so the longer the setting, the higher the cost. When validating a shot, first keep it at 4 to 5 seconds to test the shot, then extend it once confirmed.
-
How is the aspect ratio determined for image-to-video, and can a last frame be added?
The image-to-video pipeline has no aspect_ratio control; the output aspect ratio follows the ratio of first_frame_image, so once the first frame is chosen, don't expect parameters to change the ratio. first_frame_image is required and last_frame_image is optional; if you want to control the ending, add a last-frame image.
-
How are images and billing handled for reference-to-video?
reference_image_urls supports up to 9 images, and you need at least 1 reference image or 1 reference video to submit; audio cannot be submitted on its own. Billing is per second: when only images are passed, you are billed by the requested output duration; if a reference video is also passed, the total duration of the reference videos is counted as well, and billing is based on the sum of the two.
-
What are the duration limits for reference videos?
reference_video_urls accepts up to 3 clips, each 2 to 15 seconds long, with a combined total of no more than 15 seconds. The duration of the reference videos is billed together with the requested output duration, so shorter references plus shorter outputs cost less.
Create a generation task
https://api.hiapi.sh/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: minimax-h3-lite/reference-to-video
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for minimax-h3-lite/reference-to-video and route default — see the parameter table below.
promptstringRequiredminLength 1maxLength 7000pattern \SDescribe the scene and how each reference should be used. Refer to references in order, e.g. Image 1, Video 1, Audio 1. 1–7000 characters.
durationintegerOptionalDefault: 5min 4max 15Requested video length in whole seconds (4–15). Billed by the requested duration.
resolutionstringOptionalDefault: "768P"Output resolution.
480P768Paspect_ratiostringOptionalDefault: "16:9"Output aspect ratio.
21:916:94:31:13:49:16reference_audio_urlsarrayOptionalminItems 1maxItems 3Up to 3 reference audio clips (WAV or MP3, up to 15 MB each), at most 15 seconds combined. Audio must be paired with an image or video reference.
Array [ string ]
reference_image_urlsarrayOptionalminItems 1maxItems 9Up to 9 reference images (JPG, PNG or WEBP, up to 30 MB each). At least one image or one video is required.
Array [ string ]
reference_video_urlsarrayOptionalminItems 1maxItems 3Up to 3 reference videos (MP4 or MOV, up to 50 MB each), each 2–15 seconds and at most 15 seconds combined. Reference video seconds are billed at the same per-second rate as the output.
Array [ string ]
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.sh/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-lite/reference-to-video",
"input": {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"aspect_ratio": "16:9"
}
}' const res = await fetch("https://api.hiapi.sh/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "minimax-h3-lite/reference-to-video",
input: {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"aspect_ratio": "16:9"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.sh/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "minimax-h3-lite/reference-to-video",
"input": {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"aspect_ratio": "16:9"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.sh/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Tutorial
MiniMax H3 Lite Multimodal Reference-to-Video: Reference Images Control Appearance, Reference Videos Control Motion
Using a street-corner tram as an example, break down the division of responsibilities and editing checklist for multi-asset reference requests
-
Tutorial
Complete a set of short video storyboards with three input types: a practical guide to the MiniMax H3 Lite video endpoint
-
Comparison
How to choose between MiniMax H3 Lite, H3 Max, and Max Turbo: trade-offs by project stage and input materials
Related Models
View all models →Same Type
-
Kandinsky 6.0 Pro Sber AI $1.93 /video -
Kling 2.5 Kuaishou $0.090 /second -
PixVerse V6 Max PixVerse $0.030 /second -
OmniHuman 2.0 ByteDance $0.100 /second -
LTX 2.5 $0.286 /second -
Runway Aleph 2 Runway $0.480 /second -
LTX 2.5 Fast Lightricks $0.043 /second -
HeyGen Avatar IV HeyGen $0.150 /second -
P-Video 2 Pro Avatar Pruna AI $0.029 /second -
Wan 3.0 Video Alibaba $0.025 /second -
HappyHorse 1.0 Alibaba $0.168 /second -
Vidu Q4 Preview Vidu $0.051 /second