Hailuo
Los modelos de Hailuo se llaman a través de una API de trabajos asíncrona y unificada. Inicia una tarea con POST /api/generate y luego sondea GET /api/generate/{taskId} hasta que termine. Esta familia expone 6 endpoints.
Resumen
Todos los endpoints comparten la misma envoltura — solo cambian model y los campos input. Ejecuta cualquiera desde el playground del Mercado de modelos.
Autenticación
Crea una API key en /api-keys y luego envíala como token Bearer. Las solicitudes desde el navegador con sesión iniciada también funcionan mediante la cookie de sesión.
Authorization: Bearer <YOUR_API_KEY>Crear tarea
POST https://api.lithovas.com/api/generateCuerpo: { "model": "<slug>", "input": { … } }
Respuesta: { "taskId": "<id>", "state": "waiting" }
Consultar resultado
GET https://api.lithovas.com/api/generate/<taskId>Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state sea success o fail. Las tareas fallidas no se facturan.Endpoints
| Modelo | Tarea | 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-propromptstringobligatorioText describing desired video animation (max 5000 chars)
image_urlstringobligatorioInput image URL to animate (JPEG/PNG/WebP, max 10MB)
durationenum<string>opcionalVideo duration in seconds (10s not supported at 1080p)
resolutionenum<string>opcionalGenerated video resolution
nsfw_checkerbooleanopcionalToggle 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-standardpromptstringobligatorioText prompt describing the desired video animation (max 5000 chars)
image_urlstringobligatorioInput image file URL to animate (JPEG/PNG/WebP, max 10MB)
durationstringopcionalVideo duration in seconds; 10s videos lack 1080p support
resolutionstringopcionalOutput video resolution setting
nsfw_checkerbooleanopcionalDisables 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-propromptstringobligatorioText prompt for video generation (max 1500 chars)
prompt_optimizerbooleanopcionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanopcionalContent 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-propromptstringobligatorioText prompt describing the desired video animation (max 1500 chars)
image_urlstringobligatorioInput image to animate; JPEG/PNG/WebP, max 10MB
end_image_urlstringopcionalOptional URL for the final frame of the video
prompt_optimizerbooleanopcionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanopcionalContent 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-standardpromptstringobligatorioText description for video generation (max 1500 chars)
durationenum<string>opcionalVideo duration in seconds; 10s not supported at 1080p
prompt_optimizerbooleanopcionalWhether to use the model's prompt optimizer
nsfw_checkerbooleanopcionalContent 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-standardpromptstringobligatorioText description for video generation (max 1500 chars)
image_urlstringobligatorioURL of image to use as first video frame (JPEG/PNG/WebP, max 10MB)
end_image_urlstringopcionalOptional URL of image to use as final video frame
durationenum<string>opcionalVideo duration in seconds
resolutionenum<string>opcionalOutput video resolution
prompt_optimizerbooleanopcionalEnable model's prompt optimization
nsfw_checkerbooleanopcionalContent 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
}
}'