POST
/
hailuo
/
video
curl -X POST https://api.example.com/hailuo/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A serene lake at sunset with mountains in the background",
    "model": "hailuo-video-01",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'
{
  "code": 0,
  "message": "success",
  "data": {
    "task_id": "hailuo_task_abc123456",
    "status": "pending",
    "created_at": "2024-01-01T00:00:00Z"
  }
}
Create a text-to-video generation task using the Hailuo (MiniMax) model.

Request Parameters

prompt
string
required
Video description prompt.
model
string
Model version. Default: hailuo-video-01.
duration
integer
Video duration in seconds. Default: 5.
aspect_ratio
string
Aspect ratio. Options: 16:9, 9:16, 1:1.
curl -X POST https://api.example.com/hailuo/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A serene lake at sunset with mountains in the background",
    "model": "hailuo-video-01",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'
{
  "code": 0,
  "message": "success",
  "data": {
    "task_id": "hailuo_task_abc123456",
    "status": "pending",
    "created_at": "2024-01-01T00:00:00Z"
  }
}