MercadoSoporte← Volver a la app

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
POST https://api.lithovas.com/api/generate

Cuerpo: { "model": "<slug>", "input": { … } }

Respuesta: { "taskId": "<id>", "state": "waiting" }

Consultar resultado

GET
GET https://api.lithovas.com/api/generate/<taskId>

Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

Asíncrono
Un 200 de Crear tarea solo significa que la tarea fue aceptada — no que haya terminado. Sondea este endpoint hasta que state sea success o fail. Las tareas fallidas no se facturan.

Endpoints

ModeloTareamodel slug
Hailuo 2.3Image to Videohailuo/2-3-image-to-video-pro
Hailuo 2.3Image to Videohailuo/2-3-image-to-video-standard
Hailuo 02Text to Videohailuo/02-text-to-video-pro
Hailuo 02Image to Videohailuo/02-image-to-video-pro
Hailuo 02Text to Videohailuo/02-text-to-video-standard
Hailuo 02Image to Videohailuo/02-image-to-video-standard

Hailuo 2.3 · Image to Video

POSTImage to Videohailuo/2-3-image-to-video-pro
campos input
promptstringobligatorio

Text describing desired video animation (max 5000 chars)

image_urlstringobligatorio

Input image URL to animate (JPEG/PNG/WebP, max 10MB)

durationenum<string>opcional

Video duration in seconds (10s not supported at 1080p)

resolutionenum<string>opcional

Generated video resolution

nsfw_checkerbooleanopcional

Toggle content filtering (disabled when false)

Ejemplo
cURL
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

POSTImage to Videohailuo/2-3-image-to-video-standard
campos input
promptstringobligatorio

Text prompt describing the desired video animation (max 5000 chars)

image_urlstringobligatorio

Input image file URL to animate (JPEG/PNG/WebP, max 10MB)

durationstringopcional

Video duration in seconds; 10s videos lack 1080p support

resolutionstringopcional

Output video resolution setting

nsfw_checkerbooleanopcional

Disables content filtering when set to false

Ejemplo
cURL
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

POSTText to Videohailuo/02-text-to-video-pro
campos input
promptstringobligatorio

Text prompt for video generation (max 1500 chars)

prompt_optimizerbooleanopcional

Whether to use the model's prompt optimizer

nsfw_checkerbooleanopcional

Content filtering toggle; set false to disable filtering

Ejemplo
cURL
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

POSTImage to Videohailuo/02-image-to-video-pro
campos input
promptstringobligatorio

Text prompt describing the desired video animation (max 1500 chars)

image_urlstringobligatorio

Input image to animate; JPEG/PNG/WebP, max 10MB

end_image_urlstringopcional

Optional URL for the final frame of the video

prompt_optimizerbooleanopcional

Whether to use the model's prompt optimizer

nsfw_checkerbooleanopcional

Content filtering toggle; false disables filtering

Ejemplo
cURL
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

POSTText to Videohailuo/02-text-to-video-standard
campos input
promptstringobligatorio

Text description for video generation (max 1500 chars)

durationenum<string>opcional

Video duration in seconds; 10s not supported at 1080p

prompt_optimizerbooleanopcional

Whether to use the model's prompt optimizer

nsfw_checkerbooleanopcional

Content filtering toggle

Ejemplo
cURL
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

POSTImage to Videohailuo/02-image-to-video-standard
campos input
promptstringobligatorio

Text description for video generation (max 1500 chars)

image_urlstringobligatorio

URL of image to use as first video frame (JPEG/PNG/WebP, max 10MB)

end_image_urlstringopcional

Optional URL of image to use as final video frame

durationenum<string>opcional

Video duration in seconds

resolutionenum<string>opcional

Output video resolution

prompt_optimizerbooleanopcional

Enable model's prompt optimization

nsfw_checkerbooleanopcional

Content filtering toggle; false disables filtering

Ejemplo
cURL
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
  }
}'