First/Last Frame Video Generation
|
- First/Last Frame Video Generation
- MiniMax official API
- Official docs: First/Last Frame Video Generation
Authorizations
Request Body
Model name. Only MiniMax-Hailuo-02 is supported (first/last frame generation does not support 512P resolution)
End frame image. Supports public URL or Base64 data URL (data:image/jpeg;base64,...). Formats: JPG/JPEG/PNG/WebP, size < 20MB, short side > 300px, aspect ratio between 2:5 and 5:2
Start frame image. Supports public URL or Base64 data URL. Same format requirements as last_frame_image. ⚠️ Output dimensions follow the first frame; if sizes differ, the last frame is cropped to match the first
Text description of the video, max 2000 characters.
Video duration in seconds. Allowed values: 6 or 10 (10 seconds only supported at 768P)
Video resolution. Options: 768P (default, supports 6s/10s), 1080P (6s only)
Whether to automatically optimize the prompt. Set to false for more precise control
Callback URL for task status updates. Async notifications are sent when task status changes
Whether to add an AIGC watermark to the generated video
Responses
Success