Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
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 a Wan2 video generation task.
wan2.2-t2v-a14b
wan2.2-i2v-a14b
curl https://www.anyfast.ai/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://www.anyfast.ai/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)
data.task_id
data.status
queued
processing
succeeded
failed
data.format
mp4
data.url
data.error
Was this page helpful?