Video / MiniMax

MiniMax-H3-Max Video Generation

Overview

MiniMax-H3-Max asset Video Generationendpoint, supported Text-to-Video (T2V), Image-to-Video (I2V, first frame / last frame ) and Reference-to-Video (can Reference image, Reference video, Reference audio).input asset, no.

localized example text:
- 🎬 Text-to-Video:video
-🖼️ last frame:supported first frame / last frame image, video
-🎞️ asset reference:supported Reference image (≤9 images ), Reference video (≤3 ), Reference audio (≤3 )-✍️ Promptlocalized example text:canpromptExpansionMode -🧠 localized example text:input asset T2V / I2V / Reference-to-Video
-📐 Resolution:supported 768p (default) and 480p
-⏱️ Duration:can 5~ 15 secondsvideo

Description:Modelsupported 2K Resolution, resolution will as768p.2K use MiniMax-H3.

Base URL: https://mm-internal-cn.leonecloud.com ()

---## Authentication

All endpoints require a token in the request header for authentication:

Authorization: Bearer {YOUR_AUTH_TOKEN}

asset

MiniMax-H3-Max input asset,:

-last frame (firstFrameImage / lastFrameImage)andreference asset (imageUrls / videoUrls / audioUrls)localized example text, localized example text.
- Reference audio (audioUrls)localized example text, mustReference image or Reference video use.
- prompt Required, maximum 7000 characters.
- Text-to-Video canaspectRatio, default 16:9.
- first frame, last frame can, can when.
- asset:Reference image≤ 9 images, Reference video≤ 3, Reference audio ≤ 3 (will ).
- Reference video2~ 15 seconds, exceeds 15 seconds; Reference audioLimit.

input assetlocalized example text
only promptText-to-Video (T2V)
localized example textfirstFrameImage and / orlastFrameImageImage-to-Video (I2V)
localized example textimageUrls / videoUrls / audioUrlsReference-to-Video

Supported Scenarios

Scenario 1: Text-to-Video (T2V)

video.

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/minimax-h3-max" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": ",,,, in, with",
 "aspectRatio": "16:9",
 "resolution": "768p",
 "duration": 5
 }'

Scenario2:first frame video generation (I2V)

first frame image, Model as video.

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/minimax-h3-max" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "in the,,",
 "firstFrameImage": "https://example.com/girl.png",
 "resolution": "768p",
 "duration": 8
 }'

Scenario 3: First/Last Frame to Video

when first frame and last frame image, video.

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/minimax-h3-max" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "when",
 "firstFrameImage": "https://example.com/morning.png",
 "lastFrameImage": "https://example.com/sunset.png",
 "resolution": "768p",
 "duration": 10
 }'
: last frame when, output image,aspectRatio localized example text.

Scenario4:Reference-to-Video (Reference image / Reference video / Reference audio)

can in Prompt in「Video 1」「Audio 1」Reference video and audio.Reference imagecan use; return supported Reference image, first frame or Reference video.

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/minimax-h3-max" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "use Video 1 number image, use Audio 1 as music",
 "videoUrls": ["https://example.com/ref.mp4"],
 "audioUrls": ["https://example.com/bgm.mp3"],
 "resolution": "768p",
 "duration": 8
 }'
Note:reference asset and last frame; Reference audio.

Scenario5:PromptpromptExpansionMode Prompt:disabled,balanced (default),quality quality.

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/minimax-h3-max" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": ", in",
 "promptExpansionMode": "quality",
 "aspectRatio": "16:9",
 "resolution": "768p",
 "duration": 5
 }'

Query Task Status

curl -X GET "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/{taskId}" \
 -H "Authorization: Bearer your_auth_token_here"

Endpoint details

1. create MiniMax-H3-Max task**POST** /api/v2/open/aigc/minimax-h3-max

Create a MiniMax-H3-Max Video Generationtask.(T2V / I2V / Reference-to-Video) input asset.

Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
promptstringYesPrompt, maximum 7000 characters
imageUrlsstring[]NoReference image URL list, up to 9 images ( and last frame )
videoUrlsstring[]NoReference video URL list, up to 3, localized example text≤ 15 seconds (and last frame )
audioUrlsstring[]NoReference audio URL list, up to 3, localized example text≤ 15 seconds.localized example text, Reference image or reference Video
firstFrameImagestringNofirst frame image URL ( and Reference image/video/audio)
lastFrameImagestringNolast frame image URL ( and Reference image/video/audio)
aspectRatiostringNoAspect ratio:21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16, default 16:9.last frame when image; Reference-to-Video can oradaptive.
resolutionstringNoOutput resolution:768p(default) / 480p.supported 2K
durationintNovideoDuration (seconds), range 5~15, default 5.Default
promptExpansionModestringNoPrompt:disabled ()/balanced (, default)/quality (quality)
generateAudioboolNoaudio.default true; localized example textfalse no Video
watermarkboolNoAdd watermark
taskNicknamestringNoTask label, localized example text
callbackUrlstringNoCallback notification URL after the task is complete

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.taskIdstringTask ID, used to query task status
data.statusstringTask Status, fixed to processing
data.createdAtstringCreated Time

Response Example

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260831150000_abc12345",
 "status": "processing",
 "createdAt": "2026-08-31 15:00:00"
 }
}

2. Query Task Status

GET /api/v2/open/aigc/{taskId}

query task execute Status.

Path Parameters

ParameterTypeRequiredDescription
taskIdstringYesTask ID

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.taskIdstringTask ID
data.statusstringTask Status:processing / success / failed
data.resultstring[]Generated video URL list (Successreturned when applicable)
data.errorMsgstringError Message (Failurereturned when applicable)
data.createdAtstringCreated Time
data.updatedAtstringUpdated Time

Response Example

processing

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260831150000_abc12345",
 "status": "processing",
 "createdAt": "2026-08-31 15:00:00",
 "updatedAt": "2026-08-31 15:00:05"
 }
}

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260831150000_abc12345",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/2026/08/31/output.mp4"
 ],
 "createdAt": "2026-08-31 15:00:00",
 "updatedAt": "2026-08-31 15:02:30"
 }
}

3. Batch Query Task Status

POST /api/v2/open/aigc/batch

query task execute Status (up to 100 ).

Request Parameters

ParameterTypeRequiredDescription
taskIdsstring[]YesTask ID list, up to 100

Request Example

{
 "taskIds": ["task_20260831150000_abc12345", "task_20260831150200_def67890"]
}

Callback Notification

task complete (Success or Failure) when, if Create Task when providecallbackUrl, was provided when creating the task, the system sends a POST request to that URL.

Callback Request

Headers

Content-Type: application/json
X-Funcloud-Event: task.completed
X-Funcloud-Signature: {localized example text}

Body

{
 "event": "task.completed",
 "taskId": "task_20260831150000_abc12345",
 "status": "success",
 "result": ["https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/output.mp4"],
 "errorMsg": "",
 "timestamp": "2026-08-31T15:02:30+08:00",
 "signature": "a1b2c3d4e5f6..."
}

Parameter Value Ranges

Resolution (resolution)

localized example textDescription
768pdefault, localized example text
480p,
Model supported 2K; will as default768p.

Aspect ratio (aspectRatio)

localized example textDescription
21:9width
16:9landscape (default)
4:3standard landscape
1:1square
3:4standard portrait
9:16portrait
Text-to-Videodefault16:9.last frame when image; Reference-to-Video can oradaptive.

Duration (duration)

  • range:5 ~ 15 seconds
  • default:5 seconds
  • will as default 5 seconds

---## Billing

  • output videoDuration (seconds), Resolution height height (480p < 768p).
  • Reference image (imageUrls)first 2 images, images.
  • Reference video (videoUrls)input Duration (seconds), Output resolution.
  • Reference audio (audioUrls)and last framelocalized example text.
  • when 15 seconds (Reference video when Reference video 15 seconds), task complete after and (); taskFailure.
  • localized example text「localized example text」as.

Error Codes

codeDescription
0Success
10002Parametermissing or malformed
10005API Key invalid or missing
10006Insufficient balance
30003Task not found
90003Internal server error

Best Practices

1. Polling Strategy

recommendedPolling:
- First 30 seconds:query every 3 seconds
- 30 seconds~ 2 minutes:query every 5 seconds
- After 2 minutes:query every 10 seconds

2. Processing Time Reference

  • video generation:Usually 1~ 3 minutes
  • First/Last Frame to Video:Usually 1 ~ 3 minutes
  • asset reference (video/audio):Usually 1~ 4 minutes
  • Duration, Resolution height, when### 3. Prompt Tips
  • Promptmaximum 7000 characters
  • Prompt= subject+,+,+ -
  • can (,, etc. )
  • -"Image 1", "Video 1", "Audio 1" Location reference asset
  • when, recommended will; can usepromptExpansionMode ---## FAQ

Q1: localized example text?

A: no.localized example textprompt as Text-to-Video;firstFrameImage and / orlastFrameImage as Image-to-Video;imageUrls / videoUrls / audioUrls as Reference-to-Video.

Q2: reference asset with Limit?

A: Reference imageup to 9 images ( first 2 images, images ); Reference videoup to 3, 2~ 15 secondslocalized example text≤ 15 seconds (input Duration); Reference audioup to 3,≤ 15 seconds ().last frame and reference asset,audioUrls localized example text.

Q3: supported 2K Resolution?

A: supported.Modelonly provide480p and768p, will as768p.

Q4: last frame can?

A: can.first frame, last frame can, can when.

Q5: Durationcan exceeds 15 seconds?

A: can.rangeas 5~ 15 seconds, will as default 5 seconds (Model supported 4 seconds).

Q6: promptExpansionMode localized example text?

A: default balanced Scenario; Prompt, whendisabled; Model whenquality.will.


Technical Support

If you have any questions, please contact our technical support team.

Updated 2026-11-23