Skip to main content
POST
Minimax Hailuo-02
Minimax Hailuo-02 is an AI video generation model supporting both text-to-video and image-to-video. It can generate 6-second videos at 768P or 1080P resolution, and 10-second videos at 768P resolution.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

string
required
Enum: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
required
Text prompt to guide the generation.Range: 1 <= x <= 2000.
string
First frame image for video generation. Supports public URLs or Base64 encoding (e.g., data:image/jpeg;base64,...).
string
End frame image for video generation. Supports public URLs or Base64 encoding (e.g., data:image/jpeg;base64,...).
integer
Duration of the generated video (in seconds). Default: 6
Possible values: 6, 10
string
Resolution of the generated video. Default: 768P
  • 6-second videos support: 768P, 1080P
  • 10-second videos only support: 768P
boolean
Whether to enable prompt optimization.Default: true.
boolean
default:false
Whether to reduce the time spent on prompt optimization.Default: false.

Response

string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.