Hailuo
Hailuo-Modelle werden über eine einheitliche, asynchrone Job-API aufgerufen. Starte einen Task mit POST /api/generate und frage dann GET /api/generate/{taskId} ab, bis er fertig ist. Diese Familie stellt 6 Endpunkte bereit.
Überblick
Jeder Endpunkt teilt sich dieselbe Hülle — nur model und die input-Felder ändern sich. Führe einen beliebigen im Playground des Modell-Markts aus.
Authentifizierung
Erstelle einen API-Schlüssel unter /api-keys und sende ihn als Bearer-Token. Anfragen aus dem Browser bei angemeldeter Sitzung funktionieren auch über das Session-Cookie.
Authorization: Bearer <YOUR_API_KEY>Task erstellen
POST https://api.lithovas.com/api/generateBody: { "model": "<slug>", "input": { … } }
Antwort: { "taskId": "<id>", "state": "waiting" }
Ergebnis abfragen
GET https://api.lithovas.com/api/generate/<taskId>Antwort: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.Endpunkte
| Modell | 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-propromptstringerforderlichText describing desired video animation (max 5000 chars)
image_urlstringerforderlichInput 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-standardpromptstringerforderlichText prompt describing the desired video animation (max 5000 chars)
image_urlstringerforderlichInput 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-propromptstringerforderlichText 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-propromptstringerforderlichText prompt describing the desired video animation (max 1500 chars)
image_urlstringerforderlichInput 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-standardpromptstringerforderlichText 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-standardpromptstringerforderlichText description for video generation (max 1500 chars)
image_urlstringerforderlichURL 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
}
}'