Video models
Hailuo 02
On this page
Hailuo 02 — high-quality AI video generation.
| modelId | hailuo-02-text-to-video-pro, hailuo-02-image-to-video-pro, hailuo-02-text-to-video-standard, hailuo-02-image-to-video-standard |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Text To Video Pro | hailuo-02-text-to-video-pro | POST /api/v1/generate | prompt |
| Image To Video Pro | hailuo-02-image-to-video-pro | POST /api/v1/generate | prompt, image_url |
| Text To Video Standard | hailuo-02-text-to-video-standard | POST /api/v1/generate | prompt |
| Image To Video Standard | hailuo-02-image-to-video-standard | POST /api/v1/generate | prompt, image_url |
| Poll task | — | GET /api/v1/task/{id}?model=hailuo-02-text-to-video-pro | — |
Text To Video Pro — hailuo-02-text-to-video-pro
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The text prompt for video generation Max 1500 characters. (default: Aerial shot diving through clouds toward a lighthouse on a cliff at the edge of a storm, dramatic shifting light.) |
| prompt_optimizer | boolean | No | Whether to use the model's prompt optimizer (true/false) (default: true) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"hailuo-02-text-to-video-pro","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","prompt_optimizer":true,"nsfw_checker":true}}'Image To Video Pro — hailuo-02-image-to-video-pro
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text prompt describing the desired video animation Max 1500 characters. (default: Animate the scene: the hummingbird's wings blur into a rapid hover while the blossom sways softly, a delicate push-in as a dewdrop trembles and slides down a petal.) |
| image_url | string | Yes | Input image to animate (image URL) |
| end_image_url | string | No | Optional URL of the image to use as the last frame of the video (image URL) |
| prompt_optimizer | boolean | No | Whether to use the model's prompt optimizer (true/false) (default: true) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"hailuo-02-image-to-video-pro","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","image_url":"https://example.com/input.jpg","end_image_url":"https://example.com/input.jpg","prompt_optimizer":true,"nsfw_checker":true}}'Text To Video Standard — hailuo-02-text-to-video-standard
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text description for video generation Max 1500 characters. (default: A low aerial glides just above towering ocean swells during a gathering storm, spray tearing off the whitecaps in slow motion as steel-grey light knifes through the heavy clouds overhead.) |
| duration | string | No | The duration of the video in seconds. 10 seconds videos are not supported for 1080p resolution. (options: 6 | 10) (default: 6) |
| prompt_optimizer | boolean | No | Whether to use the model's prompt optimizer (true/false) (default: true) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"hailuo-02-text-to-video-standard","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","duration":"6","prompt_optimizer":true,"nsfw_checker":true}}'Image To Video Standard — hailuo-02-image-to-video-standard
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The text prompt describing the video to generate Max 1500 characters. (default: Animate the frame with a gentle parallax drift across a rooftop garden at blue hour, string lights swaying in the breeze as distant skyscraper windows flicker on one by one.) |
| image_url | string | Yes | The URL of the image to use as the first frame of the video (image URL) |
| end_image_url | string | No | Optional URL of the image to use as the last frame of the video (image URL) |
| duration | string | No | The duration of the video in seconds. 10 seconds videos are not supported for 1080p resolution. (options: 6 | 10) (default: 10) |
| resolution | string | No | The resolution of the generated video. (options: 512P | 768P) (default: 768P) |
| prompt_optimizer | boolean | No | Whether to use the model's prompt optimizer (true/false) (default: true) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"hailuo-02-image-to-video-standard","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","image_url":"https://example.com/input.jpg","end_image_url":"https://example.com/input.jpg","duration":"10","resolution":"768P","prompt_optimizer":true,"nsfw_checker":true}}'