Hailuo Live | Image to Video
Generate videos from images using Hailuo Live | Image to Video. Supports optional prompt optimization.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "hailuo-i2v-live",
"version": "0.0.1",
"input": {
"image_url": "https://example.com/portrait.jpg"
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
first_frame_image |
string | First frame image for video generation. The output video will have the same aspe | |
prompt |
string | Enter your prompt to generate video | |
prompt_optimizer |
boolean | True | The model will automatically optimize prompts to improve generation quality. To |
Examples
Animate an image:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "hailuo-i2v-live",
"version": "0.0.1",
"input": {
"image_url": "https://example.com/portrait.jpg"
}
}'
Dynamic animation with controls:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "hailuo-i2v-live",
"version": "0.0.1",
"input": {
"image_url": "https://example.com/portrait.jpg",
"prompt": "Expressive facial movements with a warm smile"
}
}'