Skip to main content
GET
Query AntiRouter for a Wan3.0 task’s progress, video URL, and final usage. Use the output.task_id from Generation and an active inference key belonging to the account that created the task.

Path parameter

string
required
The output.task_id from the creation response, not its request_id. You can only query tasks owned by the account associated with your key.

Task states

An HTTP 200 response can contain FAILED or CANCELED, so always inspect the task state. CANCELED is a possible terminal state; these docs do not expose a task-cancellation endpoint.

Response fields

string
required
The original generation request’s platform ID, also returned as X-Request-ID on successful queries.
object
required
object
Returned after settlement. In-progress and failed tasks normally omit this field.

Polling example

Start with a three-second polling interval and adjust it for your application. This Python example queries an existing task using only the standard library. Set ANTI_API_KEY and TASK_ID first.
Python
The example stops after ten minutes of local polling. This is not a platform task-timeout limit. Stopping polling does not cancel the task; keep its ID to query later. Network and HTTP errors stop this example. Production clients can add bounded backoff retries for queries.

Errors and charges

  • 401 unauthorized: check the inference key is valid and enabled, and the request IP satisfies your allowlist.
  • 404 not_found: verify the task ID and use a key belonging to the account that created it.
  • 502 upstream_unavailable: a valid state cannot currently be retrieved; retry the same query later.
  • 503 metering_unavailable: usage cannot yet be confirmed; query later and review the console status.
Querying an existing task does not create a new generation order. Failed or canceled tasks release the original hold. Review successful usage and charges in task history and Billing.
Example IDs, timestamps, and example.com video URLs illustrate the response structure. Use the actual video_url from your response and download finished videos to your own storage when you need to retain them.