H3 Video
H3 Text to Video
Changed onGenerate one or more H3 / H3 Max videos from a text prompt. Returns immediately with 202 Accepted and the task object.
Example
curl -X POST https://genaipro.io/api/v2/hailuo/text-to-video \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A drone flying over mountains at sunrise",
"model": "h3",
"number_of_videos": 1,
"aspect_ratio": "16:9",
"duration": 10,
"resolution": "768p"
}'
Each video is priced separately — see Credits in the H3 Video tag (this example: 2 credits).
Rate limit: 30 requests/minute — shared across all /v2/hailuo creation endpoints.
post/v2/hailuo/text-to-video
Request
- Base URLhttps://genaipro.io/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"prompt": "A drone flying over mountains at sunrise",
"model": "h3",
"number_of_videos": 1,
"duration": 10,
"callback_url": "https://your-server.example.com/genaipro-webhook"
}Response
Task accepted for processing. Use id to poll GET /v2/hailuo/tasks/{id}.
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