POST /minimax/v1/video_generation
Method: POSTEndpoint: /minimax/v1/video_generation
Start/end-frame video generation for the MiniMax-Hailuo-02 model. This section contains endpoint-specific behavior, parameters, or usage notes for this API. Supported resolutions and durations: 768P (6s, 10s) and 1080P (6s).
Request Parameters
Header Parameters
text
Authorization
string
Optional
Default Value:
Bearer {{YOUR_API_KEY}}Body Parameters application/json
text
model
string
Required
Available value: MiniMax-Hailuo-02.
prompt
string
Required
duration
integer
Optional
first_frame_image
string
Required
Uses the specified image as the opening frame of the video. Supports public URLs or Base64-encoded data URLs such as data:image/jpeg;base64,....
last_frame_image
string
Required
Uses the specified image as the ending frame of the video. Supports public URLs or Base64-encoded data URLs such as data:image/jpeg;base64,....
resolution
enum<string>
Optional
Enum Values:
768P
1080P
prompt_optimizer
boolean
Optional
Whether to optimize the prompt automatically. Defaults to true. Set it to false for more precise control.
Example
{
"model"
:
"string"
,
"prompt"
:
"string"
,
"duration"
:
0
,
"first_frame_image"
:
"string"
,
"last_frame_image"
:
"string"
,
"resolution"
:
"768P"
,
"prompt_optimizer "
:
true
}Example Request
Shell
bash
curl --location --request POST '/minimax/v1/video_generation' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"prompt": "string",
"duration": 0,
"first_frame_image": "string",
"last_frame_image": "string",
"resolution": "768P",
"prompt_optimizer ": true
}'Response
🟢 200 Success
Content Type: application/json
Response Schema
text
id
string
RequiredExample
json
{
"task_id": "106916112212032",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}