Hailuo video
Poll bytask_id for progress and the final download URL.
Basics
- Endpoint:
GET /v1/video/generations/{task_id} - Auth:
Bearer Token(Authorization: Bearer {{YOUR_API_KEY}}) - Content-Type:
application/json
Path
| Field | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | Returned when the job was created. |
Response
200 OK| Field | Type | Description |
|---|---|---|
| code | string | Business code ("200" = ok). |
| message | string | Message. |
| data | object | Payload. |
| ├─ status | string | processing, success, failed, etc. |
| ├─ progress | string | Percent string, e.g. "50". |
| ├─ result_url | string | Video URL when done. |
| ├─ fail_reason | string | If failed. |
| ├─ submit_time | integer | Submitted at. |
| ├─ finish_time | integer | Finished at. |
| └─ video_width | integer | Output width. |
| └─ video_height | integer | Output height. |
cURL
Success example
- Preparing
- Queueing
- Processing
- Success
- Fail

