Query: Task Result
Short description: Query the status and output links of a 3D model generation task.
Overview
- Method:
GET - Path:
/task/{task_id} - Content-Type:
application/json
Authentication
- Header:
Authorization: Bearer <token>
Request Example
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | Task ID, for example ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12 |
curl Example
bash
curl -X GET "https://api.gpt.ge/task/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12" \
-H "Authorization: Bearer sk-xxxx"JavaScript (fetch) Example
javascript
fetch('https://api.gpt.ge/task/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12', {
method: 'GET',
headers: {
'Authorization': 'Bearer sk-xxxx'
}
}).then(r => r.json()).then(console.log);Python (requests) Example
python
import requests
response = requests.get(
'https://api.gpt.ge/task/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12',
headers={'Authorization': 'Bearer sk-xxxx'}
)
print(response.json())Response Example (200)
json
{
"urls": {
"get": "https://gi.ai-oss.dev/serverless-api/2025-09-12/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12.glb?authorization=...",
"cancel": "https://api.gpt.ge/task/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12/cancel"
},
"output": {
"file_url": "https://gi.ai-oss.dev/serverless-api/2025-09-12/ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12.glb?authorization=..."
},
"status": "success",
"task_id": "ELQCK6IGYJSYORCJCFUSDQDUMAP5RW12",
"created_at": 1757646339639,
"started_at": 1757646340064,
"completed_at": 1757646371653
}Note: This endpoint returns the task status and download links. If
statusissuccess, useoutput.file_urlto download the generated 3D file.