H3 Video
H3 Reference to Video
Changed onGenerate an H3 video guided by a reference video (required) and an optional reference image. Returns immediately with 202 Accepted. H3 Max is not supported in this mode.
Price per video depends on total seconds (duration + reference-video length) — see the reference-to-video table under Credits in the H3 Video tag. Example below: 768p, 5 s output + 6 s reference = 11 s → 2 credits.
Example
curl -X POST https://genaipro.io/api/v2/hailuo/reference-to-video \
-H "Authorization: Bearer YOUR_TOKEN" \
-F "reference_video=@motion.mp4" \
-F "reference_image=@character.png" \
-F "prompt=The character performs the same dance on a rooftop" \
-F "aspect_ratio=9:16" \
-F "duration=5"
Rate limit: 30 requests/minute — shared across all /v2/hailuo creation endpoints.
post/v2/hailuo/reference-to-video
Request
- Base URLhttps://genaipro.io/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Example request
{
"prompt": "The character performs the same dance on a rooftop",
"aspect_ratio": "9:16",
"callback_url": "https://your-server.example.com/genaipro-webhook"
}Response
Task accepted for processing
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"prompt": "A drone flying over mountains at sunrise",
"file_urls": [],
"task_type": "text_to_video",
"aspect_ratio": "16:9",
"model": "h3_768p_10s",
"number_of_outputs": 1
}Changes
- info
endpoint added
- info