wan2.2-t2v-a14b or wan2.2-i2v-a14b, use this endpoint to poll the task status until completion.
Quick Example
Response Fields
API Reference
View the interactive API Playground for Wan2 Task Query.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Query the status and result of Wan2 video generation tasks.
wan2.2-t2v-a14b or wan2.2-i2v-a14b, use this endpoint to poll the task status until completion.
curl https://ai.alad.com/v1/video/generations/{TASK_ID} \
-H "Authorization: Bearer YOUR_API_KEY"
import requests, time
headers = {"Authorization": "Bearer YOUR_API_KEY"}
while True:
result = requests.get(
f"https://ai.alad.com/v1/video/generations/{task_id}",
headers=headers
).json()
status = result["data"]["status"]
print(f"Status: {status}")
if status == "succeeded":
print("Video URL:", result["data"]["url"])
break
elif status == "failed":
print("Error:", result["data"]["error"])
break
time.sleep(3)
| Field | Description |
|---|---|
data.task_id | Task ID |
data.status | queued → processing → succeeded / failed |
data.format | Video format, always mp4 |
data.url | Video download URL (valid ~24 hours, only present on succeeded) |
data.error | Error message (only present on failed) |
