Skip to main content
After creating an asynchronous Wan2 video task, poll GET https://www.anyfast.ai/v1/video/generations/{TASK_ID} until the AnyFast outer status reaches a terminal state. This endpoint covers the independent Wan2.7 model IDs wan2.7-t2v, wan2.7-i2v, and wan2.7-r2v, as well as compatible Wan2 tasks that return the same task shape.

Poll a task

A successful create response means the task was accepted and queued, not that generation succeeded. Provider-side validation can still move an accepted task to FAILURE. Likewise, a query response can return HTTP 200 with top-level code: "success" while data.status is FAILURE; always use data.status for the generation outcome.

AnyFast status lifecycle

Use the outer data.status field to control polling. data.progress is a percentage string from "0%" to "100%", not a number. Treat status as authoritative because progress can remain unchanged between polls. Use a reasonable polling interval, such as 15 seconds, instead of sending continuous queries while generation is running.

AnyFast fields and upstream fields

The response contains an AnyFast task envelope and a nested copy of the upstream provider response.
Do not substitute code, data.progress, or data.data.output.task_status for the AnyFast outer data.status. They describe the query call, progress, and upstream state respectively. Also, data.fail_reason is a compatibility field and can repeat the result URL on a successful task; decide success or failure from data.status.

Retain the result

  • A task can be queried for 24 hours after it is created.
  • A successful result URL remains valid for 24 hours.
  • Download or transfer the video promptly after data.status reaches SUCCESS.

Wan2 Task Query API Reference

View the complete task response, upstream payload, and error schema.