Get Video Generation Task Status
Query Veo video task status by task_id: track queueing, generating, and upsampling stages, get the video download URL, plus polling and failure-handling tips.
(Veo Video)
Query the detailed status of a Veo video generation task by task ID. Once the task completes, you can retrieve the public download link of the video; while it is still running, use the status field to track which stage the task is in.
📌 Basics
- Endpoint:
GET /v1/video/generations/{task_id} - Authentication:
Bearer Token(Authorization: Bearer {{YOUR_API_KEY}}) - Content type:
application/json
📥 Request Parameters (Path)
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | The task_id returned when the task was created. |
📤 Response
Status code: 200 OK
📝 Request Example (cURL)
curl -X GET "https://anyrouter.win/v1/video/generations/task_LK8YADXPxyoGME6wv79x8qId62v76PO5" \
-H "Authorization: Bearer $YOUR_API_KEY"📝 Response Example (Task Completed)
{
"code": "success",
"message": "",
"data": {
"error": null,
"format": "mp4",
"metadata": null,
"status": "succeeded", // task status
"task_id": "task_**",
"url": "https://anyrouter.win/v1/videos/task_MQKsdsosLYRreob4Z4NzTFxZKtSoVRWZ/content" // public URL
}
}Task Status Codes
VeoStatusPending = "pending"
VeoStatusImageDownloading = "image_downloading"
VeoStatusVideoGenerating = "video_generating"
VeoStatusVideoGenerationCompleted = "video_generation_completed"
VeoStatusVideoGenerationFailed = "video_generation_failed"
VeoStatusVideoUpsampling = "video_upsampling"
VeoStatusVideoUpsamplingCompleted = "video_upsampling_completed"
VeoStatusVideoUpsamplingFailed = "video_upsampling_failed"
VeoStatusCompleted = "completed"
VeoStatusFailed = "failed"
VeoStatusError = "error" // error (used in error responses)💡 Developer Tips
- Polling cadence: Veo generation usually takes several minutes. Poll this endpoint every 5–10 seconds to avoid rate limiting. A task moves from
pendingthroughimage_downloading(image-to-video only) andvideo_generatinguntil it reachescompletedorfailed. - Upsampling stage: Some tasks enter a
video_upsamplingstage after generation to improve resolution. The video is not downloadable yet at that point — wait until the status becomescompletedbefore readingurl. - Copy assets promptly: The returned
urlis a platform proxy address (/v1/videos/{task_id}/content). Copy the video to your own storage once the task succeeds instead of relying on it long-term. - Failure handling: When the status is
failed/error, thedata.errorfield contains the reason. In image-to-video scenarios, an unreachable source image fails the task duringimage_downloading— verify the image URL is publicly accessible before retrying.
Create Video Generation Task
Veo image-to-video API guide: generate video from a first-frame image and prompt using veo-3.1 and veo-3.0 models, with duration, resolution, and image specs.
Create Image-to-Video Task
Vidu image-to-video API guide: animate a first-frame image with a prompt using viduq3 and viduq2 models, with synced audio, off-peak mode, and callback setup.