Skip to content

How do I use an uploaded video as the motion reference for H3?

Upload an owned MP4 using POST /files with kind=reference, then send its returned ID as reference_video_id in your H3 request. Uploaded references must be 4–10 seconds and no larger than 20 MB. The requested output seconds are a separate API field, and both reference duration and requested output affect the quote.

BUILD WITH MINIMAX H3AISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Prepare the exact excerpt; Save the owned upload ID; Quote with the reference included.
Workflow diagram: Prepare the exact excerpt → Save the owned upload ID → Quote with the reference included. Read the article for evidence and limits.

A reference is guidance, not frame-accurate editing

H3 can use the source motion and scene as guidance, but the output is generative recreation. The reference does not guarantee unchanged background, clothing, identity or timing. The API's single optional image reference is also not the studio's two-portrait mapping interface; choose the surface that supports your actual task.

What to do next

  1. 01

    Prepare the exact excerpt

    Trim and export the intended short MP4 before uploading. Check its visible content, measured duration and file size rather than relying on its filename or player rounding.

  2. 02

    Save the owned upload ID

    Keep the returned seconds value and your local source version together. Use that ID in the approved request rather than reuploading a different edit during recovery.

  3. 03

    Quote with the reference included

    Send reference_video_id, output seconds and size to /quotes. An earlier text-only quote does not authorize a reference-video task with a different total estimate.

A concrete example

Illustrative setup: a six-second reference is paired with a six-second output request. The quote accounts for both parts; it is not priced as a six-second text-only video. Review the actual generated movement before calling it a successful replica.

Before you call it ready

  • Reference and output durations are recorded separately.
  • The uploaded video is within current limits.
  • The quote includes the actual owned reference.

When to stop or choose another method

If exact source preservation is mandatory, test an editing or compositing workflow with that control. A motion reference alone cannot establish pixel-identical replacement.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation