Model parameters
- Model ID:
MiniMax-Hailuo-02 - Pricing: see the model catalog for current rates.
- Endpoint:
https://geekai.co/api/v1/videos/generations - Parameters: Video API reference
- Authentication: Get an API key
The following video API parameters are not supported:
negative_promptwith_audiosizequalityaspect_ratiofps
image for the first frame (Hailuo’s first_frame_image) and image_tail for the last frame (Hailuo’s last_frame_image). Both accept image URLs or Base64 image data.
Hailuo 02 accepts resolution values of 512P, 768P, and 1080P (default: 768P).
Hailuo 02 accepts a duration of 6 or 10 seconds (default: 6). At 1080P, only 6 seconds is supported.
Pricing
Hailuo 02 pricing depends on duration and resolution:
For discounted GeekAI channels, multiply the listed rate by the channel multiplier. On the high-availability, speed-first channel with multiplier
0.8, a 6-second video at 768P costs 2 x 0.8 = 1.6 CNY; at 1080P it costs 3.5 x 0.8 = 2.8 CNY.
Text to video
Describe the video in text:[Pedestal up] and [Static shot] are official camera controls. Include camera instructions in prompt in square brackets for precise camera movement. See the official documentation for more controls.
The JSON response contains the generated media URL:
Image to video
First frame Pass one image inimage to generate a video starting from that frame:
image and image_tail:
Asynchronous tasks
Video generation can take a while. We recommend GeekAI’s asynchronous workflow. The video API usesasync to control asynchronous generation. The default, false, waits for the finished video. Set it to true to receive a task ID you can poll.
Follow the asynchronous task example to retrieve the result.