Notice: MAI Image 2.7 launch limited-time 20% off, covering the full text-to-image and image editing lineup, try it now
Notice: MAGI 2 launch limited-time 20% off, covering text-to-video, image-to-video, and reference-to-video across the board. Try it now
Notice: Seed Audio 1.5 launch limited-time 20% off, covering text-to-audio, video dubbing, audio track separation, and video translation across the board. Try it now
Notice: HeyGen Avatar 6 Turbo is 20% off for a limited time, and all three video pipelines are eligible.Try it now
Notice: Midjourney Niji 8 is now available, 20% off · Create now
Notice: Hunyuan Image 3.0 launch limited-time 20% off, for both text-to-image and instruction-based editing · Try it now
Announcement 1 of 6
Blog

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

Dec 4, 2026
hiapi.ai 博客封面图:深墨绿底上黄铜与深绿两组扁平带状条互相交织成开放式格纹,无任何文字。
On this page

What the image-to-video path can do, and where its boundaries are

MiniMax H3 Lite offers three video paths in total: text-to-video, image-to-video, and multimodal reference video. The capability boundaries of the three paths differ, and their request parameters are not fully interchangeable; mixing them in a prompt often fails to produce the result you want. This article covers only one of them: image-to-video using a first frame, or a first frame plus a last frame.

The capability of this path can be summed up in one sentence: give it one image, and it makes the picture move; give it a first and a last image, and it pins down both endpoints while filling in the middle itself. Image-to-video suits scenarios where "the visuals already exist and you only want motion", such as a product lamp going from off to on, a packaging box going from closed to open, or a demo screen going from standby to lit.

The boundaries must be drawn just as clearly:

  • The aspect ratio is not yours to decide. Text-to-video and reference-to-video can specify aspect_ratio; image-to-video has no such control, and the output ratio follows the first-frame image.
  • It does not perform transfer based on reference assets. Only multimodal reference video supports mixed input of multiple reference images, reference videos, and audio; image-to-video only looks at your first and last frames, and has no reference image array.
  • It is not an image editing tool. Elements absent from the first frame cannot be expected to be conjured out of thin air by the prompt while keeping the style consistent; the stability of image-to-video comes from what visuals you give it.
  • Duration is not unlimited. duration takes whole-second values within a finite range; long shots must be split into segments and stitched together, not stretched out in one go.

Keep these boundaries in mind, and every subsequent parameter choice can be derived from them.

Desk lamp case: how two of your own images become a continuous shot

To make this concrete, the article uses a running case: a desk lamp going from unlit to lit.

You need to prepare two of your own images:

  • Image A: the desk lamp switched off, with a dark shade and cool desktop lighting, framed to include the base, the stem, the shade, and a small patch of the desktop.
  • Image B: the same desk lamp switched on, with light glowing through the shade and a warm pool of light on the desktop, keeping the rest of the composition as close to Image A as possible apart from the lighting.

The correspondence between the two images is the key to whether this video succeeds, and there are three specific points:

  1. Same subject: the lamp's shape, color, material, and position stay unchanged; only the state of the light changes.
  2. Same camera position: the viewpoint, focal length, frame aspect ratio, and the subject's share of the frame are close, ideally two shots taken before and after from the very same camera position.
  3. Same background: the desktop texture, background wall, and surrounding objects neither added nor removed.

This point is emphasized because image-to-video treats the first frame as the basis for the frame size and composition. If the two images differ greatly in camera position, the model must handle both "the light changed" and "the camera moved" at once, and the frame tends to drift in places you never asked for. Conversely, the closer the two images are, the only thing the model needs to fill in is the lighting, and the continuous shot looks more stable.

These two images are your own assets; this article does not describe any actual generation result, and all example links are marked as placeholders to be replaced.

The difference between sending only a first frame and sending both first and last frames

In image-to-video, whether you send one image or two represents two different creative approaches.

Sending only the first frame: first_frame_image is required and last_frame_image is left empty. You provide a starting point, and the endpoint is left to the model and the prompt to evolve. This suits "the natural evolution of a single shot" — for example, the lamp gradually lighting up from off, where how bright it gets and how fast are decided jointly by duration and the prompt. The advantage is the open-endedness; the disadvantage is that the endpoint is not fully controllable.

Sending both first and last frames: both fields are filled in. You provide the start and the end, and the model handles the transition in between. This suits scenarios where "both endpoints are fixed and the start and end compositions must match" — for example, a product shot whose first and last frames can both be captured directly as detail-page images, or a video that must loop seamlessly back to the first frame.

The choice can be simplified into one sentence: do you want "a good-looking process" or "accurate endpoints". For a good-looking process, choose a single frame; for accurate endpoints, choose two frames.

Finally, a common confusion: why does image-to-video have no aspect_ratio? Because the frame size is already decided by the first-frame image. The first thing the model does is read the composition and ratio of the first frame; if another ratio parameter were given, it would be unclear which one should take precedence when they conflict. So this path simply does not expose this control — if you want to change the aspect ratio, change your first-frame image: crop or redraw it to the target ratio before uploading. This also means landscape and portrait assets must be decided at the preparation stage, and you cannot expect to switch in the request.

Preparation checklist before you start

Before writing the request, go through the following items one by one; doing so saves most of the rework.

Image preparation

  • The first and last frames have sufficient resolution, the subject is clear, and there are no obvious compression artifacts.
  • The two images have the same ratio, equal to the final aspect ratio you want (this path has no aspect_ratio).
  • The two images are aligned in camera position, background, and subject position, with only the changes you want to happen left as differences.
  • Images are supplied as URLs publicly accessible over the internet, and the link validity covers the entire call.

Parameter values

  • model: minimax-h3-lite/image-to-video, which this path always uses.
  • first_frame_image: required, set to Image A.
  • last_frame_image: optional; leave it empty if you only want natural evolution, or set it to Image B if you want to pin down the endpoint.
  • prompt: required, 1–7000 characters. Describe the change itself, not what is already in the picture.
  • duration: a whole number of seconds from 4–15, default 5. For a small change like a lamp lighting up, a short duration is enough; add more if you want to give the light pool time to spread.
  • resolution: 480P or 768P, default 768P. Use the lower tier for quick shot validation, then switch to the default tier for the final version.

Prompt draft

First write one sentence stating the facts, then one sentence giving the direction of change, and finally one sentence constraining the camera. For example: the picture is a switched-off desk lamp; as time passes, warm light gradually glows inside the shade and a pool of light appears on the desktop; the camera stays fixed, the subject position stays unchanged, and the background does not change. Just keep the character count within the range; there is no need to pad it out.

A valid image-to-video request

Below is the minimal usable structure for this path, keeping only the fields related to image-to-video. The request body has exactly two top-level keys, model and input; the prompt, duration, resolution, and image links all go inside input.

curl -X POST https://api.hiapi.ai/v1/tasks \
  -H "Authorization: Bearer $HIAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-h3-lite/image-to-video",
    "input": {
      "first_frame_image": "https://example.com/lamp-off.png",
      "last_frame_image": "https://example.com/lamp-on.png",
      "prompt": "The picture is a switched-off desk lamp. Warm light gradually glows inside the shade, and a pool of light appears on the desktop. The camera is fixed, the subject position stays unchanged, and the background remains the same.",
      "duration": 6,
      "resolution": "768P"
    }
  }'

A few notes, all corresponding to the checklist above:

  • The top level has only model and input; duration, resolution, and the image fields all go inside input, and placing them at the top level does not make a valid request.
  • first_frame_image is required; leave it out and the request is invalid.
  • last_frame_image is optional. To try natural evolution first, just delete this line; the other fields need no changes.
  • The two image links are https://example.com/... placeholder examples; please replace them with your own readable links.
  • The request has no aspect_ratio; this is not an omission, as this path does not provide that control.
  • duration only accepts whole seconds from 4–15; a decimal such as 6.5 is invalid.
  • resolution only accepts the two enum values 480P and 768P.

After submission, task information is returned, and you can query the task status with GET https://api.hiapi.ai/v1/tasks/{taskId}; once you have the video URL, watch it once before deciding whether to move on to another round of adjustment. The returns from tuning image-to-video diminish quickly, and usually two or three rounds are enough to reach the point where you should settle.

How to troubleshoot composition jitter

Composition jitter is the most common failure mode: the subject suddenly shifts, the frame ratio changes in some frames, or something appears in the background that should not be there. When you encounter it, do not retry repeatedly; check the following three places in order, changing only one variable at a time.

First place: the choice of first and last frames

This is the most frequent cause. Check whether the two images really share the same camera position, background, and subject share of the frame. If the lamp in the last frame is shot a little larger or a little more to the left, the model treats that as "the camera is moving too", and the intermediate frames start to drift. The fix is to recrop the last frame so that the static parts align with the first frame. Another hidden issue is that the two images have different ratios — even a ratio difference of a few pixels will be amplified by the model into a change in frame size.

Second place: the prompt description

If the prompt contains conflicting instructions, the model executes half of each. Typical conflicts: saying "the camera slowly pushes in" on one hand while requiring "the subject position stays unchanged" on the other; or saying "the background is blurred" while also saying "the background remains unchanged". Write the camera constraint as a single, clear sentence, and make the change description point to only one dimension — in the desk lamp case, describe only the change in light. In addition, although any character count within the 1–7000 range is valid, a prompt that is too short lacks constraints, while one that is too long tends to contradict itself; just write enough to state the facts, the direction, and the constraints.

Third place: duration and resolution settings

If the magnitude of change is small but you give a very long duration, the model has more frames to fill and easily "improvises" in the middle; if the magnitude of change is large but you give a very short duration, the transition gets compressed into an abrupt jump. For a change like a lamp lighting up, a short duration is usually more stable. As for resolution, first drop to 480P to verify whether the composition is stable, then go back to 768P for the final render; if it only jitters at high resolution, it is most likely still a first/last frame alignment issue, so go back to the first place and recheck.

If it is still unsatisfactory after ruling out all three, fall back to the single-frame mode with only first_frame_image and see whether the drift disappears — this step helps you confirm whether the problem lies in the last frame or in the description itself.

Final-video acceptance checklist

Go through the following items before going live; it is far cheaper than reshooting afterwards.

  • Aspect ratio consistency: the final video's ratio matches the first frame exactly, with no cropping or black-bar changes throughout.
  • First-frame fidelity: the first frame of the video matches the first-frame image in composition and subject position, and can be captured for direct use.
  • Last-frame fidelity (two-frame mode): the last frame matches the last-frame image, with no obvious deviation in light state, light pool extent, or subject form.
  • Subject deformation: check the shade edges, the straight lamp stem, and the desktop texture segment by segment for softening, distortion, or flicker.
  • Duration and segmentation: the final video's duration roughly corresponds to the requested duration, without requiring exact equality; if the shot needs to be longer, split it into multiple segments by node, generate them separately, and stitch them in editing, rather than expecting a single run to stretch it out.
  • Prompt intent check: only the changes you described occur in the picture, with no extra elements or camera movement added.
  • Usage estimation: this path is billed by the second, so estimate the total output duration as "number of segments × seconds per segment".

Once the acceptance check passes, save this set of first/last frames and prompt as a template; product shots in the same series can be reused by simply swapping the images. To confirm the full parameters and invocation method of this path, see the MiniMax H3 Lite Image-to-Video model page on HiAPI.ai.

Choose the right first frame and narrow the change description down to a single thing, and continuous product shots really do not need repeated trial and error.

Related articles

View all articles →

Start building with persistent AI artifacts

Get your API key and call image, video and audio models through one task-based API.

Read the API docs