
MiniMax H3 Max Reference-to-Video API by MiniMax
MiniMax H3 Max reference-to-video: generate a video that keeps the subjects from your reference images, videos and audio, driven by a text prompt. Supports 480P/768P, 5-15s., adaptive or explicit aspect ratios.
MiniMax H3 Max Reference-to-Video is developed by MiniMax. Atlas Cloud (operated by Atlas Cloud AI LLC) provides access to it and does not own it. All trademarks belong to their respective owners.
MiniMax H3 Max Reference-to-Video
MiniMax H3 Max Reference-to-Video generates a video that keeps the subjects from your reference materials consistent throughout, driven by your text prompt. Instead of animating a fixed frame, it uses the references as identity anchors — ideal for placing a character, product, or style into new scenes and motions. Mix reference images, reference videos, and reference audio in a single request: images anchor identity, video drives motion and camera rhythm, audio sets mood and timing.
Why Choose This?
-
Subject consistency Preserve one or several people, characters, or objects' identities across the whole clip.
-
Mix reference types Combine up to 9 reference images, 3 reference videos, and 3 reference audio clips in one request.
-
Motion from reference video Let a reference clip drive the action and camera rhythm, not just the look.
-
Audio-guided rhythm Provide reference audio to shape mood and timing — and it is not billed separately.
-
Audio included Every clip is generated as complete audio-video at 24fps — no separate scoring or sound pass.
-
Flexible aspect ratios adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16.
-
Selectable duration Produce 5–15s clips at 480P or 768P.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the scene and action for the reference subjects |
| refers | Yes | Array of reference materials, each { "url": "...", "type": "image|video|audio" }. type is optional (inferred from the URL). Up to 9 images, 3 videos and 3 audio clips, 12 assets in total. At least one image OR video is required; audio alone is not allowed. The first 2 reference images are included; each additional image is billed. See Reference asset limits below for per-type size, dimension and format rules. |
| resolution | Yes | Video resolution. Available options: 480P, 768P. Default 768P |
| duration | Yes | Duration of the generated video in seconds. Available options: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. Default 8 |
| ratio | No | Aspect ratio of the generated video. Defaults to adaptive (follows the reference assets). You may also specify a concrete ratio. Available options: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
| prompt_expansion | No | Enable AI prompt expansion via H3 Context-IR. When true, your prompt is first expanded into a rich, structured description (shot, soundscape, music) before generation, and an additional per-token Context-IR fee applies. Default false: the prompt is used as-is with no extra charge. |
| callback_url | No | HTTPS URL notified whenever the task status changes, so you can react to completion without polling. Requires a one-time verification handshake — see Task Status Callbacks below. |
Reference asset limits
refers takes a mix of images, videos and audio. Each type has its own limits:
| Images | Videos | Audio | |
|---|---|---|---|
| Max count | 9 | 3 clips | 3 clips |
| Formats | JPG, JPEG, PNG, WEBP, HEIC, HEIF | MP4, MOV | WAV, MP3 |
| Max file size | 30 MB each | 50 MB each | 15 MB each |
| Dimensions | 256–5760 px on both sides | 256–5760 px on both sides | — |
| Aspect ratio (w/h) | 0.4 – 2.5 | 0.4 – 2.5 | — |
| Duration | — | 2–15s per clip, ≤ 15s combined | 2–15s per clip, ≤ 15s combined |
| Codecs / frame rate | — | H.264/AVC or H.265/HEVC video; AAC or MP3 audio; 23.976–60 fps | — |
| Billing | first 2 free, then $0.074 each | per input second (see Pricing) | not billed |
- Total reference assets: up to 12 across all three types combined (the prompt does not count).
- Audio alone is rejected — every request needs at least one reference image or video.
- Reference-to-video excludes first/last frame. This model uses reference materials, not keyframes — the two modes are mutually exclusive.
- Video and audio durations are capped independently — 15s of video and 15s of audio can coexist.
Pass public HTTPS URLs. Every entry in refers must be a URL that returns the media file directly — not an HTML page. Base64 data URIs are not processed for this field, and signed URLs need a validity window long enough to survive asynchronous processing. Assets are validated after the task is accepted, so a successful submit does not guarantee a successful generation.
refers example
"refers": [ { "url": "https://.../character.png", "type": "image" }, { "url": "https://.../outfit.png" }, { "url": "https://.../camera-move.mp4", "type": "video" }, { "url": "https://.../beat.mp3", "type": "audio" } ]
Pricing
Cost is the sum of three parts:
output seconds × output rate + reference-video seconds × reference-video rate + max(reference images − 2, 0) × excess-image rate
| Item | 480P output | 768P output |
|---|---|---|
| Output, per second | $0.05 | $0.08 |
| Reference video, per input second | $0.0553 | $0.143 |
| Each reference image beyond the first 2 | $0.074 | $0.074 |
Notes: the reference-video rate follows the output resolution, not the resolution of the input clip. Reference audio is not billed. Reference video is billed on the summed duration of all clips, rounded to the nearest whole second (2.4s + 2.4s = 4.8s bills as 5s). Example — 768P, 5s output, 3 reference images, 10s reference video: 0.40 + 0.074 + 1.43 = $1.904 before any account-level discount.
Task Status Callbacks (callback_url)
When you supply a callback_url, the MiniMax server notifies it on every task status change, so you don't have to poll for the result.
- Verification handshake — right after the task is created, the server first sends a verification request to your URL containing a
challengefield. Your endpoint must return thechallengevalue unchanged, within 3 seconds, to complete verification. - Status pushes — once verification succeeds, the server sends a
POSTto your URL every time the task status changes. The push body has the same structure as the Query Task (task status) response.
Callback status values: queued, running, succeeded, failed, cancelled.
The callback_url must be a publicly reachable HTTPS endpoint.
How to Use
- Add your references — one clean image per subject works best; the first 2 images are included in the base price.
- (Optional) Add a reference video — its motion and camera rhythm will drive the generated action.
- (Optional) Add reference audio — shapes mood and timing at no extra cost.
- Write your prompt — describe the new scene and action for the subjects.
- Set resolution and duration — pick
480Por768P, and any length from 5s to 15s. - Choose an aspect ratio —
adaptivefollows your assets, or pick an explicit ratio. - Run — submit and poll for the finished video.
Example
curl -X POST 'https://api.atlascloud.ai/api/v1/model/generateVideo' \ -H 'Authorization: Bearer $ATLASCLOUD_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "model": "minimax/h3-max/reference-to-video", "prompt": "The character walks through a neon-lit night market, camera tracking alongside.", "refers": [ { "url": "https://example.com/character.png", "type": "image" }, { "url": "https://example.com/outfit.png", "type": "image" }, { "url": "https://example.com/camera-move.mp4", "type": "video" } ], "resolution": "768P", "duration": 8, "ratio": "adaptive" }'
Poll the returned request id until status is completed:
curl 'https://api.atlascloud.ai/api/v1/model/prediction/{request_id}' \ -H 'Authorization: Bearer $ATLASCLOUD_API_KEY'
Best Use Cases
- Character Consistency — Keep the same character across multiple shots.
- Motion Transfer — Drive new scenes with the camera rhythm of an existing clip.
- Product Placement — Feature a specific product in generated scenes.
- Branded Content — Maintain a consistent mascot or spokesperson.
Pro Tips
- Use clean, well-lit reference images with each subject clearly visible.
- Give one image per subject when combining several subjects — and remember images 3+ are billed.
- Describe the new scene and action, not the reference materials themselves.
- A short reference video is usually enough: billing counts every input second, and the combined cap is 15s.
- Reference audio is free — use it to lock rhythm without affecting cost.
Notes
promptand at least one reference image or video are required; a request with only audio is rejected. The prompt itself is capped at 7000 characters.- Reference-to-video and image-to-video are mutually exclusive: this model uses reference materials, not first/last frames — do not mix the two.
- Ensure all reference URLs (image / video / audio) are publicly accessible and return the file directly.
- Reference assets must meet the size, dimension and format limits above — an oversized or wrongly encoded file fails after the task is accepted, not at submit time.
- Supported durations between 5s and 15s (whole seconds; 4s is not supported on H3 Max), at 24fps with audio.
- Resolution is limited to
480Pand768P— 2K is not available on H3 Max. - Generation is asynchronous — submit, then poll for the finished video.
Related Models
- MiniMax H3 Max Text-to-Video — Generate video directly from a text prompt.
- MiniMax H3 Max Image-to-Video — Animate a first-frame image (optionally with a last frame).
- MiniMax H3 Reference-to-Video — The standard H3 model, with 2K output.


















