POST
/
hailuo
/
image-to-video
curl -X POST https://api.example.com/hailuo/image-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/image.jpg",
    "prompt": "The scene comes to life with gentle movement",
    "model": "hailuo-video-01",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'
{
  "code": 0,
  "message": "success",
  "data": {
    "task_id": "hailuo_task_def456789",
    "status": "pending",
    "created_at": "2024-01-01T00:00:00Z"
  }
}
Create an image-to-video generation task using the Hailuo (MiniMax) model.

Request Parameters

image_url
string
required
Source image URL.
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/image-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/image.jpg",
    "prompt": "The scene comes to life with gentle movement",
    "model": "hailuo-video-01",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'
{
  "code": 0,
  "message": "success",
  "data": {
    "task_id": "hailuo_task_def456789",
    "status": "pending",
    "created_at": "2024-01-01T00:00:00Z"
  }
}