MiniMax-Hailuo-02
MiniMax-Hailuo-02 Video Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Supports text-to-video, image-to-video (first frame/last frame)
- Supports 5 and 10 second durations, multiple resolutions available
- Supports automatic prompt optimization and watermark control
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorization
All API endpoints require Bearer Token authenticationGet API Key:Visit API Key Management Page to get your API KeyAdd to request header:
Request Parameters
Video generation model nameFixed value:
MiniMax-Hailuo-02Video content descriptionDescribe the scene, actions, style, etc. in detail for better generation resultsExample:
"A cute cat running on the grass"Video duration (seconds)Options:
5- 5 second video10- 10 second video
5Video resolutionOptions:
512p- Standard definition768p- High definition1080p- Full HD (only supports 5 second duration)
768pWhether to automatically optimize the promptWhen enabled, the system will automatically optimize your prompt for better generation resultsDefault:
trueWhether to reduce prompt optimization timeEnabling this can speed up processing, but may slightly affect optimization qualityDefault:
falseWhether to add watermarkDefault:
falseVideo first frame imageSupports two formats:
- Public URL:
https://example.com/start.jpg - Base64 encoded:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
Video last frame imageSupports two formats:
- Public URL:
https://example.com/end.jpg - Base64 encoded:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
Parameter Limitations
| Limitation | Description |
|---|---|
| Duration | Only supports 5 or 10 seconds |
| 1080p Resolution | Only supports 5 second duration |
| Image Format | Supports public URL or Base64 encoded (data:image/jpeg;base64,...) |
Resolution and Duration Combinations
| Resolution | Supported Duration | Notes |
|---|---|---|
| 512p | 5s, 10s | All supported |
| 768p | 5s, 10s | All supported |
| 1080p | 5s | 10s not supported |
Response
Response status code, 200 on success
Response data array
Use Cases
Case 1: Quick Text-to-Video Generation
Case 2: Generate High-Quality 1080p Video
Case 3: Generate Video from First Frame Image
Case 4: Transition Video with First and Last Frame Control
Case 5: Fast Preprocessing Mode
Query Task ResultsVideo generation is an asynchronous task that returns a
task_id upon submission. Use the Get Task Status endpoint to query generation progress and results.