Video models
Hailuo 02
On this page
Hailuo 02 — high-quality AI video generation.
| modelId | hailuo-02-text-to-video-pro |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to video | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=hailuo-02-text-to-video-pro | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Enter your video description... |
| prompt_optimizer | select | optional | false, true |
| nsfw_checker | select | optional | false, true |
Example request
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":"Aerial shot diving through clouds toward a lighthouse on a cliff at the edge of a storm, dramatic shifting light.","prompt_optimizer":"true","nsfw_checker":"true"}}'