Skip to main content
POST

Authorization

string
required
All API endpoints require Bearer Token authenticationGet API Key:Visit API Key Management Page to get your API KeyAdd to request header:

Request Parameters

string
required
Video generation model nameFixed value: MiniMax-Hailuo-02
string
required
Video content descriptionDescribe the scene, actions, style, etc. in detail for better generation resultsExample: "A cute cat running on the grass"
integer
default:"5"
Video duration (seconds)Options:
  • 5 - 5 second video
  • 10 - 10 second video
Default: 5
1080p Limitation: When using 1080p resolution, only 5 second duration is supported
string
default:"768p"
Video resolutionOptions:
  • 512p - Standard definition
  • 768p - High definition
  • 1080p - Full HD (only supports 5 second duration)
Default: 768p
boolean
default:"true"
Whether to automatically optimize the promptWhen enabled, the system will automatically optimize your prompt for better generation resultsDefault: true
boolean
default:"false"
Whether to reduce prompt optimization timeEnabling this can speed up processing, but may slightly affect optimization qualityDefault: false
boolean
default:"false"
Whether to add watermarkDefault: false
string
Video first frame imageSupports two formats:
  • Public URL: https://example.com/start.jpg
  • Base64 encoded: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
Used to specify the starting frame of the video
string
Video last frame imageSupports two formats:
  • Public URL: https://example.com/end.jpg
  • Base64 encoded: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
Used to specify the ending frame of the video

Parameter Limitations

Resolution and Duration Combinations

Response

integer
Response status code, 200 on success
array
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.