Skip to content
youbot
Hailuo 02 cover

Hailuo 02 API

hailuo-02-text-to-video-pro
HailuoCommercial use API verifiedVideo generation

Hailuo 02 — high-quality AI video generation.

by Hailuo

Get Your API Key
View as Markdown
Model Type:

Pricing: Hailuo 02 costs 39.25 credits per clip (≈ $0.3925).

Save up to 26%with the $1,250 top-up pack (+10% bonus) — 18% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Hailuo 02 API on you.bot

Hailuo 02 — Hailuo's high-quality text-to-video model that turns written prompts into cinematic, physically realistic motion.

Hailuo 02 API pricing & guide (2026)

Hailuo 02 — high-quality AI video generation. Through you.bot you call the Hailuo 02 API by Hailuo on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Hailuo 02 API costs about $0.39 per video — roughly 18% cheaper than the official Hailuo price of $0.48. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Hailuo 02 API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Hailuo 02 API

Prompt-to-Video

Turn a single written prompt into a complete, high-quality video clip with no footage or editing required.

Lifelike Motion

Renders convincing physics and fluid, natural movement so scenes and subjects feel genuinely real.

Built-in Prompt Optimizer

An optional prompt optimizer automatically refines your description to draw richer, more accurate results from the model.

Where the Hailuo 02 API fits in production

Every image below was generated on you.bot with the Hailuo 02 API itself — no stock photography.

Loops for a landing page

Loops for a landing page

Short seamless loops that carry a page without a video crew.

Before-and-after reveals

Before-and-after reveals

Show the change itself, not two photos side by side.

Character-led shorts

Character-led shorts

One consistent character across several cuts.

Food in motion

Food in motion

Steam, pour and sizzle — the shots that sell a menu.

Architectural walk-throughs

Architectural walk-throughs

Move a camera through a space that does not exist yet.

Nature and stock replacements

Nature and stock replacements

Get the shot you needed instead of the closest thing in a library.

How to access and deploy the Hailuo 02 API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Hailuo 02 endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "hailuo-02-text-to-video-pro",
    "input": { "prompt": "..." }
  }'

Hailuo 02 API on you.bot vs going direct

Featureyou.botGoing direct
Price per video$0.39$0.48
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Hailuo 02 API

18% cheaper

Lower rates than going direct to Hailuo — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Hailuo 02 API

Hailuo 02 is billed per video at about $0.39 on you.bot — and you only pay for successful generations.

Hailuo

Hailuo 02 API code example

POST/api/v1/generate

Hailuo 02 — high-quality AI video generation.

Overview

Hailuo 02 runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `hailuo-02-text-to-video-pro`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
promptstringYesThe text prompt for video generation · default: Aerial shot diving through clouds toward a lighthouse on a cliff at the edge of a storm, dramatic shifting light.
prompt_optimizerbooleanNoWhether to use the model's prompt optimizer (true/false) · default: true
nsfw_checkerbooleanNoA configurable parameter. Defaults to true in the Playground. (true/false) · default: true

Query task status

GET/api/v1/task/{taskId}?model=hailuo-02-text-to-video-pro

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 39.25
}