Query: Task Results
Pika video task result query API for retrieving detailed status and video output information.
Overview
- Method:
GET - Path:
/pika/feed/{task_id} - Content-Type:
application/json - Category: Video Models (Video) / Pika Video
Authentication
- Header:
Authorization: Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | Task ID of the generated video |
Request Example
curl Example
bash
curl -X GET "https://api.gpt.ge/pika/feed/your_task_id" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $YOUR_TOKEN"JavaScript (fetch) Example
javascript
fetch('https://api.gpt.ge/pika/feed/your_task_id', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN'
}
})
.then(res => res.json())
.then(console.log)Python Example (requests)
python
import requests
resp = requests.get(
'https://api.gpt.ge/pika/feed/your_task_id',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN'
}
)
print(resp.json())Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | Task ID |
| promptText | string | Prompt text |
| videos | array | List of video results |
| videos[].id | string | Single video item ID |
| videos[].status | string | Current status, such as queued, pending, finished, error |
| videos[].seed | integer | Random seed |
| videos[].resultUrl | string | Video result URL |
| videos[].sharingUrl | string | Share URL |
| videos[].videoPoster | string | Video poster URL |
| videos[].imageThumb | string | Thumbnail URL |
| videos[].duration | integer | Video duration in seconds |
| videos[].error | string | Error information |
| videos[].progress | integer | Current progress percentage |
Success Response Example
json
{
"id": "c8091b7b-06df-48ed-8fe3-8ee8f1e367c2",
"promptText": "Apple evaporates",
"videos": [
{
"id": "c8091b7b-06df-48ed-8fe3-8ee8f1e367c2",
"status": "finished",
"progress": 100,
"seed": 393769667,
"resultUrl": "https://cdn.pika.art/v1/c8091b7b-06df-48ed-8fe3-8ee8f1e367c2/_____seed393769667.mp4",
"sharingUrl": "https://cdn.pika.art/v1/c8091b7b-06df-48ed-8fe3-8ee8f1e367c2/_____seed393769667_share.mp4",
"videoPoster": "https://cdn.pika.art/v1/c8091b7b-06df-48ed-8fe3-8ee8f1e367c2/poster.jpg",
"imageThumb": "https://cdn.pika.art/v1/c8091b7b-06df-48ed-8fe3-8ee8f1e367c2/thumbnail.jpg",
"duration": 5
}
]
}