Skip to content
Docs menu

Video models

Hailuo 02

On this page

Hailuo 02 — high-quality AI video generation.

modelIdhailuo-02-text-to-video-pro
Modalityvideo
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to videoPOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=hailuo-02-text-to-video-proRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredEnter your video description...
prompt_optimizerselectoptionalfalse, true
nsfw_checkerselectoptionalfalse, 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"}}'