LogoWan API Docs
Homepage
X (Twitter)
Homepage

Get started

OverviewIntegration guideCheck balanceDelete a task

Wan models

Wan 3.0Wan 3.0 PrimeWan 3.0 ProWan 3.0 Prime Pro

Seedance models

Seedance 2.5Seedance 2.0Seedance 2.0 FastSeedance 2.0 Mini

Image models

Seedream 5.0 ProSeedream 5.5 API

Language models

Claude APIClaude Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.2GPT APIGPT Luna 6GPT Terra 6.1GPT Sol 6.1GPT Astra 6
X (Twitter)

Wan API task deletion endpoint

Delete one finished task and its stored video files with DELETE /v1/tasks/{task_id}. It works for every model.

This endpoint works for every model. Send your key as Authorization: Bearer YOUR_API_KEY to https://api.wanapi.app. It can only delete tasks of the account that owns the key.

Delete one finished task with DELETE /v1/tasks/{task_id} and a key of the same account. Only completed or failed tasks can be deleted. The task record and its stored video and last-frame files are removed permanently; billing records and charges stay unchanged. A deleted task can no longer be queried or downloaded. Each request deletes one task.

curl -X DELETE "https://api.wanapi.app/v1/tasks/$TASK_ID" \
  -H "Authorization: Bearer $WAN_API_KEY"
{
  "id": "task_EXAMPLE",
  "object": "task.deleted",
  "deleted": true
}

Errors

StatusCodeMeaning
404not_foundThe task does not exist or belongs to another account.
409task_not_finishedThe task is still running; delete it after it completes or fails.
409artifact_unverifiedIts stored files could not be verified, so nothing was deleted. Contact support.
503delete_unavailableTry again later. Repeating the request is safe.

Check balance

Check your Wan API account balance and your key’s remaining limit with GET /v1/balance. It works for every model.

Wan 3.0

Wan 3.0 API reference: 480p, 720p and 1080p video generation, parameters, request examples, task polling, downloads and pricing.

Table of Contents

Errors