Get task status
Task Management
Get Task Status
Query task execution status and retrieve generation results
GET
Get task status
Documentation Index
Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Get Task Status
Query the execution status of image and video generation tasks and retrieve results when complete.Endpoint
Authentication
All requests require Bearer token authentication:Get API Key
Generate your API key from the console
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Unique task identifier returned from the submit endpoint |
Response
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
code | integer | HTTP status code (200 for success) |
data.task_id | string | Unique task identifier |
data.status | string | Task status: not_started, running, finished, failed |
data.files | array | Generated media files (when status is finished) |
data.files[].file_url | string | Direct URL to generated file |
data.files[].file_type | string | Type of media file: image or video |
data.created_time | string | ISO 8601 timestamp of task creation |
data.progress | integer | Completion percentage (0-100) |
data.error_message | string | Error description (when status is failed) |
Status Values
| Status | Description |
|---|---|
not_started | Task is queued, waiting to be processed |
running | Task is currently being generated |
finished | Task completed successfully, results available in files |
failed | Task failed, error details in error_message |
Response Examples by Status
Not Started
Running (Image)
Finished (Image)
Finished (Video)
Failed
Code Examples
cURL
Python
JavaScript / Node.js
Go
Java
PHP
Ruby
Polling Best Practices
When polling for task completion, follow these recommendations:Complete Polling Example
Error Responses
HTTP Error Codes
| Code | Description | Action |
|---|---|---|
| 401 | Unauthorized | Check your API key |
| 403 | Forbidden | Task belongs to another user |
| 404 | Not Found | Task ID does not exist |
| 429 | Too Many Requests | Reduce polling frequency, implement backoff |
| 500 | Server Error | Retry with exponential backoff |
| 502 | Bad Gateway | Service temporarily unavailable, retry |
Error Response Format
Important Notes
Credits: Credits are only deducted when the task status becomes
finished. Failed tasks do not consume credits.Next Steps
Submit Task
Learn how to submit generation tasks
Image Generation
Generate images with GPT-4o
Video Generation
Create videos with Sora 2
Quick Start
Complete integration guide
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique task identifier