Get Task Status & Results
Overview
After creating a task, you can query its status and retrieve the generated results using the task ID returned from the create endpoint.
Test API KEY: key_00000000000000000000000000000000Endpoints
Get Task Status & Results
Request
POST https://api.pixwith.ai/api/task/getHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | The ID of the task to query (e.g., “cf0ddb5ad6a0f0c85ab4d1dceb9fd89c”) |
Example Request
{
"task_id": "cf0ddb5ad6a0f0c85ab4d1dceb9fd89c"
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | Contains the task details and results |
| data.task_id | string | The ID of the task |
| data.status | int | The status of the task (1=processing, 2=completed, 3=failed) |
| data.result_urls | array of strings | URLs of the generated results (images or videos, depending on the task type) |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "cf0ddb5ad6a0f0c85ab4d1dceb9fd89c",
"status": 2,
"result_urls": [
"https://cdn.pixwith.ai/images/cf0ddb5ad6a0f0c85ab4d1dceb9fd89c_0.jpeg"
]
}
}Last updated on