MiniMax H3 Control
MiniMax H3 Control turns a video you already have into a new one. It keeps the source's motion and layout, follows the look you describe, and adds matching sound.
Sogni runs MiniMax H3 Fun ControlNet Union 2.0, Alibaba PAI's control model for MiniMax H3, on the Sogni Supernet as MiniMax H3 Control. It works with the MiniMax H3 Reference-to-Video model and does two jobs, separately or together:
- Guided generation. A guide carries your source's structure and motion into the new clip: its depth, its soft edges (HED) or its straight lines (MLSD). Sogni makes the guide from your source video, or you can use a guide video you made.
- Inpaint. Paint white over what you want to replace and describe it. With Keep everything outside the mask on, the rest of your clip stays exactly as it was. With it off, the whole clip is redrawn around the new object with the same layout and motion, so faces and lettering outside the mask can change. In the API and SDKs, that switch is
controlNet.preserveUnmasked.
An optional image sets the look of the subject or scene. The model also generates a soundtrack, on by default.
Example clips are on the MiniMax H3 Control model page and in the launch article.
#What Alibaba PAI says it is for
Alibaba PAI's model card describes one checkpoint that handles several kinds of control video "for video-to-video generation — no per-condition checkpoint switching", and says version 2.0's denser control branch "gives tighter structural adherence" than version 1.
#How Sogni differs from the release
| Alibaba PAI's release | On Sogni | |
|---|---|---|
| Guides | The example scripts take a prepared control video | Depth, soft-edge and straight-line guides are made from your source automatically, or you can add your own |
| Output size | Follows the control video's aspect ratio at a set pixel budget | 480p or 768p, landscape, portrait or square; 1344×768 by default |
| Length | Up to 15 seconds | 5 to 15 seconds |
| Running it | Download the weights and run them on your own GPUs | Runs on the Sogni Supernet's 32 GB GPUs, on both the Fast and Relaxed networks, with nothing to install |
#Workflow ID
| Surface | Value |
|---|---|
| Model ID (API and SDKs) | minimax-h3-ref2va-fp8_v2v_controlnet |
| Base model | MiniMax H3 Reference-to-Video |
| Creator and license | Alibaba PAI, MiniMax H3 Community License Agreement |
#Inputs
Send a source video or a guide video you made. A mask also needs the source it edits.
| JavaScript | Python | What it is |
|---|---|---|
referenceVideo |
reference_video |
The source video, required for masks. Guides are made from it, and a mask marks what to replace in it |
controlVideo |
control_video |
A guide video you made, on its own or with the source: a depth, soft-edge or straight-line clip. Nothing is extracted from it |
referenceMask |
reference_mask |
Optional mask image. White marks what to replace |
referenceImage |
reference_image |
Optional image that sets the look of a subject or scene |
videoStart |
video_start |
Where to start reading the source and guide, in seconds. Default 0 |
controlNet |
control_net |
The guide settings below |
The source and the guide both start at videoStart. Last frames (referenceImageEnd), extra reference images or videos, uploaded audio and keyframes are not accepted.
#Guide settings
The Python SDK takes the same key names inside control_net, for example control_net={"name": "inpaint", "preserveUnmasked": True}.
controlNet field |
Values |
|---|---|
name |
depth (default), hed, mlsd or inpaint (see Guide types) |
strength |
0 to 1, default 1. At 1 it follows your source most closely; lower values give your prompt more room |
preserveUnmasked |
With a referenceMask, true keeps everything outside the mask exactly as it was. Leave it out to redraw the whole clip around the new object (see Masks) |
preprocess |
Leave it out to make the guide from referenceVideo. Set false when referenceVideo is already a guide video you made |
guidanceStart, guidanceEnd |
The part of the generation the guide applies to, as fractions from 0 to 1. Defaults to all of it; the start must not be after the end |
#Guide types
MiniMax H3 Control has four guide types:
name |
Guide type | What it keeps from the source |
|---|---|---|
depth |
Depth | A depth map |
hed |
Soft edges | HED soft edges |
mlsd |
Straight lines | Straight line segments (MLSD) |
inpaint |
Inpaint | No structural guide; replaces what the mask marks (see Masks) |
For the first three, send the original clip as referenceVideo and choose the name; Sogni makes the guide from it. To use a guide video of one of these types that you made, send it as controlVideo, and nothing is extracted from it.
#Masks
- Paint white over what you want to replace and describe it. Send the mask as an image in
referenceMask. - A mask needs the source. Send the original clip as
referenceVideowith it. - Keep everything outside the mask. With
controlNet.preserveUnmasked: true(Keep everything outside the mask in Sogni Create), the rest of your clip stays exactly as it was. With it off, the whole clip is redrawn around the new object with the same layout and motion, so faces and lettering outside the mask can change. - Mask alone: set
name: 'inpaint'to replace what the mask marks from your prompt, with no structural guide.inpaintrequires a mask. - Mask and guide together: set one of the three guide names and add a mask. What the mask marks becomes what you describe, and the clip follows the guide.
#Appearance image
referenceImage is optional. Use it for the look of a subject or a scene, such as a face, an outfit or a palette. The clip does not have to start on it.
#Audio
MiniMax H3 Control generates a soundtrack with the video, on by default. Set generateAudio: false (generate_audio=False in Python) for a silent clip.
#Limits
| Setting | Values |
|---|---|
| Size | 480p or 768p, landscape, portrait or square: up to 1344 px on a side and 1,032,192 px in all; 1344×768 by default |
| Length | 5 to 15 seconds. Like every MiniMax H3 workflow, the length snaps to H3's frame grid (see MiniMax H3 generation limits) |
| Inputs | A source video, a prepared guide video, or both. You can add one appearance image. A still mask also needs its source video |
| Network | Fast and Relaxed |
#Prompting
- Describe the scene, the subject and the camera. Alibaba PAI writes: "Detailed prompts give better stability; we recommend describing the scene, the subject and the camera in the prompt."
- Describe the new look. The guide carries the layout and the motion. The prompt says what fills them: the people, materials, light, style and setting.
- Describe the sound. The soundtrack follows the prompt, so say what the viewer should hear.
- For a mask, say what the masked area becomes and how it fits the rest of the shot.
#Speed
A 5-second clip usually takes about 2–5 minutes at 480p and 6–10 minutes at 768p. Longer clips take more than proportionally longer: a 15-second 768p clip can take up to about an hour.
#Pricing
MiniMax H3 Control is priced per second of finished video: 19.7 Spark ($0.0985) per second at 768p (the 544/768p class) and 12.3 Spark ($0.0615) at 480p. At 768p a 5-second clip costs about $0.51, 10 seconds about $1.00 and 15 seconds about $1.49; at 480p, 5 seconds costs about $0.32 and 15 seconds about $0.93. On Relaxed, a 5-second 768p clip costs about $0.25.
- Resolution sets the rate. Aspect ratio, guide type and masks do not change it.
- Input videos are free. Your source and guide videos add no charge.
- You pay for the length that renders. H3 snaps to its
124 + n×17frame grid, so billable durations land on grid values between 5.17 s and 15.08 s.
| Frames | Duration | 480p | 768p |
|---|---|---|---|
| 124 | 5.17 s | 63.55 Spark / $0.3178 | 101.78 Spark / $0.5089 |
| 141 | 5.88 s | 72.26 / $0.3613 | 115.74 / $0.5787 |
| 175 | 7.29 s | 89.69 / $0.4484 | 143.65 / $0.7182 |
| 192 | 8.00 s | 98.4 / $0.492 | 157.6 / $0.788 |
| 243 | 10.13 s | 124.54 / $0.6227 | 199.46 / $0.9973 |
| 362 | 15.08 s | 185.53 / $0.9276 | 297.14 / $1.4857 |
MiniMax H3 Control is for paid accounts: an Unlimited plan covers it, or pay with Premium Spark or SOGNI. Free Spark can't be used. Sogni shows the quote before a render runs; in your own app, call projects.estimateVideoCost() (estimate_video_cost in Python).
#Unlimited plans and fair use
Both Sogni Unlimited plans cover MiniMax H3 Control under credit-free fair use, as they cover standard H3. Fair use works the same way as for the other H3 workflows: see Unlimited throughput and fair use.
#Where you can use it
- Sogni Create: in Video, choose Video Control as the workflow type.
- API and SDKs: model ID
minimax-h3-ref2va-fp8_v2v_controlnet, from@sogni-ai/sogni-client5.94.0 and thesogni-clientPython package 5.94.0 (examples below).
#License
Alibaba PAI releases MiniMax H3 Fun ControlNet Union 2.0 as a derivative of MiniMax H3 under the MiniMax H3 Community License Agreement. Sogni offers MiniMax H3 under a license from MiniMax.
#JavaScript SDK example
import { SogniClient } from '@sogni-ai/sogni-client';
import fs from 'node:fs';
const sogni = await SogniClient.createInstance({ appId: 'my-app', network: 'fast' });
await sogni.account.login('username', 'password');
const project = await sogni.projects.create({
type: 'video',
network: 'fast',
modelId: 'minimax-h3-ref2va-fp8_v2v_controlnet',
positivePrompt:
'A dancer in a silver raincoat spins across a wet street at night under pink and teal neon signs. ' +
'Steady medium shot at waist height. Rain patters on the pavement and a soft synth beat plays from a doorway.',
numberOfMedia: 1,
width: 1344,
height: 768,
duration: 8,
referenceVideo: fs.readFileSync('./dance.mp4'),
// Follow the source's depth. Use controlVideo for a guide video you made.
controlNet: { name: 'depth', strength: 1 },
// Optional: the look of the dancer. The clip can open on a different view.
// referenceImage: fs.readFileSync('./raincoat.jpg'),
});
const [url] = await project.waitForCompletion();
To replace one thing and keep the rest of the clip as it was, paint it white on a mask and describe it:
const project = await sogni.projects.create({
type: 'video',
network: 'fast',
modelId: 'minimax-h3-ref2va-fp8_v2v_controlnet',
positivePrompt: 'The dancer wears a glossy red raincoat with a tall collar that catches the neon light.',
numberOfMedia: 1,
width: 1344,
height: 768,
duration: 8,
referenceVideo: fs.readFileSync('./dance.mp4'),
referenceMask: fs.readFileSync('./raincoat-mask.png'),
controlNet: { name: 'inpaint', preserveUnmasked: true },
});
#Python SDK example
project = await sogni.projects.create(
type="video",
network="fast",
model_id="minimax-h3-ref2va-fp8_v2v_controlnet",
positive_prompt=(
"A dancer in a silver raincoat spins across a wet street at night under pink and teal neon signs. "
"Steady medium shot at waist height. Rain patters on the pavement and a soft synth beat plays from a doorway."
),
number_of_media=1,
width=1344,
height=768,
duration=8,
reference_video="dance.mp4",
control_net={"name": "depth", "strength": 1},
# To replace what a mask marks and keep the rest as it was:
# reference_mask="raincoat-mask.png",
# control_net={"name": "inpaint", "preserveUnmasked": True},
# reference_image="raincoat.jpg",
)
urls = await project.wait_for_completion()