Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/generateTask/hailuo-2-3 | Create generation task |
| GET | /api/v1/statusTask/hailuo-2-3 | Query task status |
Authentication
All requests require an API Key in the header:Request Body
Parameters
async (polling) or callback (webhook)
Callback URL, required when request_type=callback (conditional)
Routing strategy: auto, value, or official
Model input parameters
standard-text-to-video- Standard text-to-video, fixed output resolution768pstandard-image-to-video- Standard image-to-video, fixed output resolution768ppro-text-to-video- Pro text-to-video, fixed output resolution1080ppro-image-to-video- Pro image-to-video, fixed output resolution1080p
- Image format must be JPG/JPEG/PNG.
- Aspect ratio must be greater than 2:5 and less than 5:2.
- Short side must be greater than 300px.
- Image size must not exceed 20MB.
standard-*requiresduration, and only6or10is accepted.pro-*has fixed output duration5seconds.
Example
Standard Text-to-VideoResponse
POST /api/v1/generateTask/hailuo-2-3
ReturnstaskId on success for subsequent status queries.
Success:
GET /api/v1/statusTask/hailuo-2-3
Query task execution status and results viataskId.
Status Response Fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing
resultUrls array. Only present on success. Parse with JSON.parse().Error code. Only present when
state is failed. See Error Codes.Human-readable error message. Only present when
state is failed.Task creation timestamp (Unix milliseconds).
Task completion timestamp (Unix milliseconds).
Processing duration in milliseconds.
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 402 | Insufficient credits |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access the provided image URL |
Rate Limits
| Limit | Value |
|---|---|
| Requests | Subject to workspace and provider limits |
| Concurrent tasks | Subject to workspace and provider limits |
429.
Tips
- Cheapest public preset:
standard-text-to-video + duration=6. - Use
standard-*when you need flexible 6s/10s durations. - Use
pro-*when you need fixed 1080p quality. - Image-to-video accepts exactly one image URL.
- Result URLs may be temporary. Download outputs promptly after success.