MiniMax H3 Lite
minimax-h3-lite/image-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/image-to-video
Input
Output
Pricing
minimax-h3-lite/image-to-video per second
| Specifications | Unit Price |
|---|---|
| 480P | $0.0358 |
| 768P | $0.0572 |
Overview
This is an image-to-video page for creators and developers. It generates a short video of 4 to 15 seconds from one first-frame image plus a text prompt. The first-frame image is required, and the aspect ratio automatically matches the first frame, so you can skip setting a separate ratio parameter. You can also optionally provide a last-frame image to constrain the composition and the direction of gaze at the end of the clip. The prompt describes the scene, action and camera movement, and is 1 to 7000 characters long. The output resolution can be 480P or 768P, defaulting to 768P. Duration is measured in whole seconds and defaults to 5 seconds; billing is per second based on the requested duration. It is well suited to quickly validating shot design, arranging multi-shot handoffs and rehearsing narrative pacing.
Key highlights
- Aspect ratio follows the first frame with no second setting — This pipeline has no standalone ratio parameter, and the output ratio follows the first-frame image. Crop the first frame to the target frame size beforehand to avoid cropping after generation.
- The last frame constrains the closing composition — The last frame is an optional input and shares the same format restrictions as the first frame. Providing a last frame when you need a clear stopping point reduces drift in gaze and subject at the end.
- Per-second billing makes shot splitting easy — Duration can be selected in whole seconds from 4 to 15, and billing accumulates per second based on the requested duration, so each shot in a multi-shot piece can have its own duration.
- Two resolution options — resolution can be 480P or 768P, defaulting to 768P. Use 480P to quickly check the action, then switch to 768P for a final preview.
Capabilities
- First-frame composition and frame size inheritance: Submit first_frame_image as a required input, and the output ratio follows that image. When preparing, first crop the first frame to the target frame size and leave margin around the subject and the direction of movement inside the frame so that the action is not cut off by the edges when it expands. For long shots, state the starting point and direction of the camera movement in the prompt so that the first-frame composition becomes the baseline for the whole movement.
- Matching the last frame's light direction and action: The optional last_frame_image shares the same format and size restrictions as the first frame and specifies the image at the end of the video. When choosing a last frame, prefer one whose light direction and subject orientation match the first frame, so the action transitions continuously from the start point to the end point. If the light directions of the two frames are opposite or the subject position jumps, the transition will look abrupt; in that case, keep only the first frame.
- Margins and room for movement: Leave margin around the subject in the first frame for dolly moves, lateral tracking or the subject walking into the depth of the scene. In the prompt, describe the scene and subject first, then the direction of camera movement, and finally the composition at the end. If the last frame is already set, put the ending composition at the end of the prompt so that it corresponds to the last-frame image, reducing the chance of the subject leaving the frame or the composition changing abruptly midway.
- Steps for splitting multi-shot handoffs: Submit a multi-shot short film one shot at a time. For each segment, choose the first frame and the optional last frame, round the duration to a whole number of seconds from 4 to 15 according to that shot's pacing, and use a consistent resolution of 480P or 768P. For adjacent shots, use the last frame of the previous segment, or a frame with the same composition, as the first frame of the next segment, keeping the frame size and light direction consistent. Write prompts that describe only the action of the current segment, avoiding cross-shot narrative, so that each segment can be reviewed separately before stitching.
Use cases
- Short-film narrative preview, comparing first frame to last frame — After receiving a storyboard, the creator prepares a first frame with complete composition for the opening shot and a last frame with matching light direction and subject orientation for the closing shot. Both must be JPG, PNG or WEBP, with each side between 256 and 5760 pixels, an aspect ratio between 0.4 and 2.5, and a size of no more than 30MB. When submitting, state the subject's action, the camera movement direction and the ending position in the prompt, and round the duration to a whole number of seconds from 4 to 15 according to the shot's pacing. During review, compare against the first frame to see whether the starting composition is preserved, and against the last frame to see whether the ending gaze and light direction connect; then decide whether to shoot additional material or rewrite the prompt.
- Motion posters, with the aspect ratio finalized by the first frame — The design team first crops a vertical or horizontal poster for the placement, and submits the cropped image as the first frame. Because this pipeline has no standalone ratio parameter and the output ratio follows the first frame, cropping must be done before submission. Leave margins around the subject and the text area in the poster, and write a prompt describing a slight dolly-in or flowing light effects, with the duration kept to a few seconds. During review, check whether the image ratio matches the placement, whether the subject is cut off during movement, and whether the ending returns to the poster composition. Once it passes, use it as a social media cover or a motion preview on a video platform.
- Ad shot validation, checking margins and light direction — The advertising team uses a product keyframe as the first frame and checks on both frames that the key light direction and the product placement angle match, avoiding highlight jumps during the transition. Leave margin around the first frame for panning and dolly-in, and write the prompt in order: product name, camera position, movement and ending position. First use a shorter duration and 480P to quickly check the action, then review again at 768P with the full duration. During review, focus on whether the product outline is stable, whether the light direction is continuous and whether the ending lands on a usable composition; then decide whether to move on to official production.
- Multi-shot handoffs, stitched and reviewed segment by segment — In animation or film pre-production, split a continuous shot into several segments and submit them one at a time. Each segment's first frame reuses the confirmed closing frame of the previous segment, and the last frame is used when necessary to lock the subject position and gaze at the end of the segment. Use the same resolution and first-frame frame size for all segments, and set each duration to a whole number of seconds from 4 to 15 according to its pacing. Write prompts that describe only the current segment's action and camera movement, without mixing in the next segment. During review, play the segments in order and check whether the subject orientation, light direction and composition continue across the seams. Then adjust the first or last frame of a segment and redo that segment rather than re-running the entire film.
Limitations and selection advice
The image-to-video pipeline requires first_frame_image and cannot generate from text alone. This pipeline has no standalone ratio parameter, and the output ratio follows the first frame, so crop the image to the target frame size before submission. last_frame_image is an optional input, and when provided it shares the same format and size restrictions as the first frame. Duration supports only whole seconds from 4 to 15, and resolution supports only two options: 480P or 768P. Billing is per second, so the longer the requested duration, the higher the accumulated cost. This pipeline does not include text-to-video or multimodal reference video input.
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/image-to-video
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for minimax-h3-lite/image-to-video and route default — see the parameter table below.
promptstringRequiredminLength 1maxLength 7000pattern \SDescribe the scene, action, camera movement and sound. 1–7000 characters.
durationintegerOptionalDefault: 5min 4max 15Requested video length in whole seconds (4–15). Billed by the requested duration.
resolutionstringOptionalDefault: "768P"Output resolution.
480P768Plast_frame_imagestringOptionalminLength 1pattern ^https?://[^\s/@]+(?:[/?#][^\s]*)?$Optional image used as the last frame. Same limits as the first frame.
first_frame_imagestringRequiredminLength 1pattern ^https?://[^\s/@]+(?:[/?#][^\s]*)?$Image used as the first frame. The video follows its aspect ratio. JPG, PNG or WEBP, each side 256–5760 px, width/height ratio 0.4–2.5, up to 30 MB.
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/image-to-video",
"input": {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"first_frame_image": "…"
}
}' 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/image-to-video",
input: {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"first_frame_image": "…"
}
}),
});
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/image-to-video",
"input": {
"prompt": "…",
"duration": 5,
"resolution": "768P",
"first_frame_image": "…"
}
},
)
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 Image-to-Video: Chaining Continuous Product Shots with a First Frame and First/Last Frames
From a desk lamp switching off to lighting up: an integration and acceptance guide covering only image-to-video
-
Comparison
How to choose between MiniMax H3 Lite, H3 Max, and Max Turbo: trade-offs by project stage and input materials
-
Tutorial
Complete a set of short video storyboards with three input types: a practical guide to the MiniMax H3 Lite video endpoint
Related Models
View all models →Same Type
-
PixVerse V6 Max PixVerse $0.030 /second -
HappyHorse 1.1 Alibaba $0.160 /second -
LTX 2.5 $0.286 /second -
MiniMax H3 Max Turbo MiniMax $0.027 /second -
FLUX 3 Video Black Forest Labs $0.090 /second -
Wan 2.7 Video Alibaba $0.100 /second -
Wan 2.6 Flash Alibaba $0.029 /second -
P-Video 2 Pro Avatar Pruna AI $0.029 /second -
HappyHorse 1.0 Alibaba $0.168 /second -
HeyGen Avatar V HeyGen $0.150 /second -
Gemini Omni 1.2 Google $0.023 /second -
Ray 3.2 Luma $0.214 /video