minimax-video-h3 API

Generates 4–15-second video at 768p or 2K from text, first or first-and-last frames, or image, video, and audio references. Audio needs an image or video reference. First-and-last frames and multimodal references are mutually exclusive.

POST /v1/videos/generations

Generate video from text, a first-frame or first-and-last-frame image pair, or image, video, or audio references. Duration: 4~15 seconds. Resolution: 768P or 2K. Reference audio needs an image or video, and first-and-last-frame mode cannot be combined with multimodal reference mode.

EXAMPLE_H3_TEXT_001

Required parameters: model, content, duration, resolution

Available parameters: model, content, prompt, duration, resolution, ratio, aspect_ratio, aigc_watermark, first_frame_url, last_frame_url, reference_images, reference_videos, reference_audios, input_video_duration, wait, nonce, idempotency_key

EXAMPLE_H3_REFERENCE_001

Required parameters: model, content, duration, resolution

Available parameters: model, content, prompt, duration, resolution, ratio, aspect_ratio, aigc_watermark, first_frame_url, last_frame_url, reference_images, reference_videos, reference_audios, input_video_duration, wait, nonce, idempotency_key

Request parameters

ParameterTypeRequiredDescription
modelstringYesTarget video model Options: minimax-video-h3
contentarrayNoRecommended native syntax; at least one non-empty text field must be provided, and if present, it takes precedence over flat fields
promptstringNoOnly assemble text content when no non-empty content is provided
durationintegerNoOutput in integer seconds; H3 is 4~15, Max is 5~15
resolutionstringYesMust explicitly select supported resolutions; public historical defaults to 720p and are not recommended for this model Options: 768P / 2K
ratiostringNoText-to-video explicitly specified; image-to-video and reference can be omitted Options: 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive
aspect_ratiostringNoFrame aspect ratio compatibility field; ratio takes precedence, do not mix conflicting values
aigc_watermarkbooleanNoWatermark toggle for this model
first_frame_urlstringNoRetrieve the first frame image URL when no content is provided
last_frame_urlstringNoRetrieve the last frame image URL when no content is provided
reference_imagesarrayNoRetrieve the corresponding reference URL when no content is provided, each element is a string
reference_videosarrayNoRetrieve the corresponding reference URL when no content is provided, each element is a string
reference_audiosarrayNoRetrieve the corresponding reference URL when no content is provided, each element is a string
input_video_durationnumberNoTotal real-time duration of all reference videos, not the output duration
waitbooleanNoBriefly wait for results, not streamed output
noncestringNoGenerate a new nonce upon new generation; in case of exception, reuse the original value
idempotency_keystringNoCompatibility field, not used as basis for current video deduplication
All fields, responses, and errors are described in the main text. Materials and identifiers are fictional examples.

Request example

curl --request POST 'https://api.router.ai/v1/videos/generations' \
  --header "Authorization: Bearer ${OPENCROW_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data-binary '{"model":"minimax-video-h3","content":[{"type":"text","text":"A blue paper boat floats on calm water."}],"duration":4,"resolution":"768P","ratio":"16:9","aigc_watermark":false,"wait":false,"nonce":"EXAMPLE_H3_TEXT_001"}'

Endpoint reference: Aliyun Wan video generation