infery
← All models

H3 Max Reference to Video

minimax/h3-max/reference-to-video

Video generationby MiniMax

Example

Details

Accepts
text + audio + image + video

Pricing

Price
6.25 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seed—Random seed. A random seed is selected when omitted.
promptrequiredstringText prompt for video generation. Refer to reference assets by their modality and order in the reference lists: Image 1, Image 2, Video 1, Audio 1, and so on.
durationnumberVideo length in seconds. The output can run up to about 0.7 s longer than requested.
image_url—Optional URL of the image to use as the first frame. The video opens exactly on this image while the references keep the subjects consistent; the output canvas follows this image.
sync_modebooleanReturn the generated video as base64 instead of a CDN URL.
resolutionstringenum: 480P, 768P, 1080PThe native generation resolution, or 1080P latent refinement from a native 768P source.
aspect_ratiostringenum: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4…The aspect ratio of the generated video.
end_image_url—Optional URL of the image to use as the last frame. The video ends exactly on this image.
middle_image_url—Optional image to guide the video at middle_frame_time. Requires start and end images and native 480P or 768P resolution.
middle_frame_time—Target time for the middle image, in seconds from the start. Rounded to the nearest frame at 24 fps; it must fall strictly between the first and last frames of the requested duration. Requires middle_image_url.
reference_audio_urlsarray
reference_conditionsarrayOrdered reference list; cross-modality order is semantic and is preserved end-to-end. Do not combine with reference_*_urls.
reference_image_urlsarrayURLs of subject/style reference images, referenced in the prompt as Image 1, Image 2, and so on. Reference images, videos, and audio clips must add up to at most 12 files.
reference_video_urlsarrayURLs of motion/reference video clips (2-15 seconds each, combined duration at most 15 seconds), referenced in the prompt as Video 1, Video 2, and so on. Reference images, videos, and audio clips must add up to at most 12 files.
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled.
prompt_expansion_moderequiredstringHow much effort to spend rewriting the prompt before generation. 'disabled' skips prompt expansion. 'balanced' returns in about a second. 'quality' spends up to ~30s on a richer prompt.

Output

FieldTypeDescription
seedintegerBase seed for reproducing the generation.
video—The generated video
timings—Timing breakdown in seconds. 'inference' is the DiT denoising time on the GPU backend. Null on routes that do not report backend timings.
expanded_prompt—The prompt after expansion, as sent to the model. Null when prompt expansion was disabled, left the prompt unchanged, or was performed internally by MiniMax's hosted API.