DataEyesAI
Official SiteConsoleDocs HomeGetting StartedDeveloper ToolsAI Models API
Terms & Policies
Official SiteConsoleDocs HomeGetting StartedDeveloper ToolsAI Models API
Terms & Policies
  1. Wan Video Generation
  • API Overview
  • Chat Completions
  • Responses
  • Messages (Claude)
  • Gemini (generateContent)
  • Embeddings
  • Image Models
    • Images
    • Gemini Image Generation
    • Grok Imagine Image
  • Midjourney format
    • Midjourney API Reference
    • Task query interface
    • Upload image
    • Get seed (Seed)
    • Submit Imagine task
    • Query tasks based on ID list
    • FaceSwap
    • Execute Action operation
    • /mj/submit/blend
    • Submit Describe task
    • Submit Modal
    • Refresh link
    • Edit image
    • Query task status by task ID
    • Get the seed of the task image
  • Video Model
    • FLUX Video Generation (flux-3-video)
    • Grok Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Video-Editing
      • 05-Video-Extension
    • Seedance Video Generation
      • 00-Overview
      • 01-Create-Video-Generation-Task
      • 02-Query-Video-Generation-Task
      • 03-Query-Video-Generation-Task-List
      • 04-Cancel-or-Delete-Task
      • Seedance Private Asset Library API Documentation
    • MiniMax-H3 Video Generation
      • 00-Overview
      • 01-Create-Video-Generation
      • 02-Create-Video-Regeneration
      • 03-Create-H3-Context-IR
      • 04-Query-Task
      • 05-List-Tasks
      • 06-Cancel-or-Delete-Task
    • Hailuo Video Generation
      • 00-Overview
      • 01-Text-to-Video-T2V
      • 02-Image-to-Video-I2V
      • 03-First-Last-Frame-FL2V
      • 04-Subject-Reference-S2V
      • 05-Query-Task-Status
      • 06-Video-Download
      • 99-Appendix-Camera-Movement-and-Webhooks
    • Jimeng Video Generation
      • 00-Overview
      • 01-3.0-Pro-Video-Generation
      • 02-720P-Text-to-Video
      • 03-720P-Image-to-Video-First-Frame
      • 04-720P-Image-to-Video-Start-End-Frame
      • 05-720P-Image-to-Video-Camera
      • 06-1080P-Text-to-Video
      • 07-1080P-Image-to-Video-First-Frame
      • 08-1080P-Image-to-Video-Start-End-Frame
      • 09-Error-Codes
    • Kling AI Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Omni-Video
      • 04-Multi-Image-to-Video
      • 05-Motion-Control
      • 06-Multi-Elements
      • 07-Video-Extension
      • 08-Lip-Sync
      • 09-Avatar
      • 10-Text-to-Audio
      • 11-Video-to-Audio
      • 12-TTS
      • 13-Custom-Voices
      • 14-Image-Recognition
      • 15-Element-Management
      • 16-Video-Effects
      • 17-Kling-4.0-Video-Generation
    • Vidu Video Generation
      • 00-Overview
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Start-End-Frame
      • 05-Multi-Frame
      • 06-Scene-Template
      • 07-Template-Story
      • 08-Query-Tasks
    • HappyHorse
      • HappyHorse Text-to-Video
      • HappyHorse Image-to-Video (First Frame)
      • HappyHorse Reference-to-Video
      • HappyHorse Video Editing
    • Wan Video Generation
      • 00-Overview.md
      • 01-Text-to-Video
      • 02-Image-to-Video
      • 03-Reference-to-Video
      • 04-Video-Editing
      • 05-First-Last-Frame-to-Video
      • 06-Motion-Transfer-and-Character-Swap
      • 07-Digital-Human-Video
      • 08-VACE-Video-Editing
      • 09-Query-Task
  • Audio API
    • Audio API
    • Gemini TTS API
    • Google DeepMind Lyria API
    • Elevenlabs Speech to Text API Reference
  1. Wan Video Generation

09-Query-Task

Query Task#

Doc version:v1.0.0 | Last updated:2026-07-22
This platform fully supports the official Tongyi Wanxiang (Wan) video generation API. Requests and responses are transparently proxied; parameter semantics are identical to the official API.
Poll the status and results of any Wan asynchronous task (Text-to-Video, Image-to-Video, Reference-to-Video, Video Editing, First-Last-Frame, Motion Transfer, Digital Human, VACE) using its task_id.

Endpoint#

GET https://studio.dataeyes.ai/ali/api/v1/tasks/{task_id}

Path Parameters#

ParameterTypeRequiredDescription
task_idstringYesThe output.task_id returned when the task was created; valid for 24 hours

Request Headers#

ParameterTypeRequiredDescription
AuthorizationstringYesBearer {API_KEY}

Request Example#

curl --request GET \
  --url 'https://studio.dataeyes.ai/ali/api/v1/tasks/{task_id}' \
  --header 'Authorization: Bearer <token>'

Response#

Processing (PENDING / RUNNING)#

{
  "request_id": "e5d70b02-ebd3-98ce-9fe8-759d7d7b107d",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "RUNNING",
    "submit_time": "2026-07-22 11:31:35.916",
    "scheduled_time": "2026-07-22 11:31:35.973"
  }
}

Success (SUCCEEDED)#

{
  "request_id": "caa62a12-0972-9762-96c7-8cd0cd10bc9f",
  "output": {
    "task_id": "eff1443c-b8b0-42b4-a973-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2026-07-22 11:31:35.916",
    "scheduled_time": "2026-07-22 11:31:35.973",
    "end_time": "2026-07-22 11:35:14.377",
    "orig_prompt": "A cat running across a grassy field",
    "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/xxx.mp4?Expires=xxx"
  },
  "usage": {
    "duration": 5,
    "input_video_duration": 0,
    "output_video_duration": 5,
    "video_count": 1,
    "SR": 1080
  }
}

Failed (FAILED)#

{
  "request_id": "xxxx",
  "output": {
    "task_id": "xxxx",
    "task_status": "FAILED",
    "code": "InvalidParameter",
    "message": "The size is not match xxxxxx"
  }
}

Task Not Found#

{
  "code": "task_not_exist",
  "message": "task_not_exist",
  "data": null
}

Response Fields#

output#

FieldTypeDescription
task_idstringTask ID
task_statusstringTask status: PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, UNKNOWN
submit_time / scheduled_time / end_timestringTask submission / execution start / completion time, format YYYY-MM-DD HH:mm:ss.SSS
video_urlstringURL of the generated video, returned only when SUCCEEDED; MP4 (H.264), valid for 24 hours
orig_promptstringOriginal input prompt
actual_promptstringRewritten prompt returned when prompt_extend is enabled (not returned by some models)
code / messagestringError code and details, returned only when FAILED

usage#

Usage fields vary slightly across model series; all are counted only for successful results:
FieldTypeApplicable ModelsDescription
durationnumberwan2.7 / wan2.6 / videoedit / s2v / kf2v / vaceBillable video duration (seconds) = input duration + output duration
input_video_durationintegerSame as aboveInput video duration; 0 for pure generation tasks, counted from the input video for Reference-to-Video / Video Editing
output_video_durationintegerSame as aboveOutput video duration (seconds)
SRintegerSame as aboveOutput resolution tier, e.g. 480, 720, 1080
ratiostringwan2.7Output aspect ratio, e.g. 16:9
sizestringwan2.6Output resolution as "width*height", e.g. 1920*1080
video_durationnumberwan2.5 and earlier, animateBillable video duration (seconds)
video_ratiostring"width*height" for wan2.5 and earlier; standard / pro for animateOutput spec identifier
video_countintegerAllNumber of generated videos, fixed at 1

Usage Tips#

Generation typically takes 1–5 minutes; polling at roughly 15-second intervals is recommended. Do not create duplicate tasks while waiting.
Both task_id and video_url are valid for 24 hours: querying after expiry returns UNKNOWN, and the video URL is automatically cleared after expiry — download or transfer to your own storage promptly.
The query endpoint is rate-limited to 20 RPS by default; keep your polling frequency under control.
Previous
08-VACE-Video-Editing
Next
Audio API