Hailuo
Hailuo models are called through one unified, asynchronous job API. Start a task with POST /api/generate, then poll GET /api/generate/{taskId} until it finishes. This family exposes 6 endpoints.
Overview
Every endpoint shares the same envelope — only model and the input fields change. Run any from the Models Market playground.
Authentication
Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.
Authorization: Bearer <YOUR_API_KEY>Create Task
POST https://api.lithovas.com/api/generateBody: { "model": "<slug>", "input": { … } }
Response: { "taskId": "<id>", "state": "waiting" }
Query Result
GET https://api.lithovas.com/api/generate/<taskId>Response: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state becomes success or fail. Failed tasks are not billed.Endpoints
| Model | Task | model slug |
|---|---|---|
| Hailuo 2.3 | Image to Video | hailuo/2-3-image-to-video-pro |
| Hailuo 2.3 | Image to Video | hailuo/2-3-image-to-video-standard |
| Hailuo 02 | Text to Video | hailuo/02-text-to-video-pro |
| Hailuo 02 | Image to Video | hailuo/02-image-to-video-pro |
| Hailuo 02 | Text to Video | hailuo/02-text-to-video-standard |
| Hailuo 02 | Image to Video | hailuo/02-image-to-video-standard |
Hailuo 2.3 · Image to Video
hailuo/2-3-image-to-video-propromptstringrequiredText describing desired video animation (max 5000 chars)
image_urlstringrequiredInput image URL to animate (JPEG/PNG/WebP, max 10MB)
durationenum<string>optionalVideo duration in seconds (10s not supported at 1080p)
resolutionenum<string>optionalGenerated video resolution
nsfw_checkerbooleanoptionalToggle content filtering (disabled when false)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/2-3-image-to-video-pro",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"duration": "6",
"resolution": "768P",
"nsfw_checker": false
}
}'Hailuo 2.3 · Image to Video
hailuo/2-3-image-to-video-standardpromptstringrequiredText prompt describing the desired video animation (max 5000 chars)
image_urlstringrequiredInput image file URL to animate (JPEG/PNG/WebP, max 10MB)
durationstringoptionalVideo duration in seconds; 10s videos lack 1080p support
resolutionstringoptionalOutput video resolution setting
nsfw_checkerbooleanoptionalDisables content filtering when set to false
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/2-3-image-to-video-standard",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"duration": "6",
"resolution": "768P",
"nsfw_checker": false
}
}'Hailuo 02 · Text to Video
hailuo/02-text-to-video-propromptstringrequiredText prompt for video generation (max 1500 chars)
prompt_optimizerbooleanoptionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanoptionalContent filtering toggle; set false to disable filtering
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/02-text-to-video-pro",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"prompt_optimizer": false,
"nsfw_checker": false
}
}'Hailuo 02 · Image to Video
hailuo/02-image-to-video-propromptstringrequiredText prompt describing the desired video animation (max 1500 chars)
image_urlstringrequiredInput image to animate; JPEG/PNG/WebP, max 10MB
end_image_urlstringoptionalOptional URL for the final frame of the video
prompt_optimizerbooleanoptionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanoptionalContent filtering toggle; false disables filtering
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/02-image-to-video-pro",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"end_image_url": "https://example.com/input.jpg",
"prompt_optimizer": false,
"nsfw_checker": false
}
}'Hailuo 02 · Text to Video
hailuo/02-text-to-video-standardpromptstringrequiredText description for video generation (max 1500 chars)
durationenum<string>optionalVideo duration in seconds; 10s not supported at 1080p
prompt_optimizerbooleanoptionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanoptionalContent filtering toggle
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/02-text-to-video-standard",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"duration": "6",
"prompt_optimizer": false,
"nsfw_checker": false
}
}'Hailuo 02 · Image to Video
hailuo/02-image-to-video-standardpromptstringrequiredText description for video generation (max 1500 chars)
image_urlstringrequiredURL of image to use as first video frame (JPEG/PNG/WebP, max 10MB)
end_image_urlstringoptionalOptional URL of image to use as final video frame
durationenum<string>optionalVideo duration in seconds
resolutionenum<string>optionalOutput video resolution
prompt_optimizerbooleanoptionalEnable model's prompt optimization
nsfw_checkerbooleanoptionalContent filtering toggle; false disables filtering
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hailuo/02-image-to-video-standard",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"end_image_url": "https://example.com/input.jpg",
"duration": "10",
"resolution": "768P",
"prompt_optimizer": false,
"nsfw_checker": false
}
}'