Skip to content

Query: Task Results

Ali Bailian task result query API for retrieving the execution status and video output of a specific task.


Overview

  • Method: GET
  • Path: /task/{task_id}
  • Content-Type: application/json
  • Category: Video Models (Video) / Ali Bailian

Authentication

  • Header: Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesThe task ID to query

Request Example

curl Example

bash
curl -X GET "https://api.gpt.ge/task/your_task_id" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_TOKEN"

JavaScript (fetch) Example

javascript
fetch('https://api.gpt.ge/task/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/task/your_task_id',
    headers={
        'Content-Type': 'application/json',
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)
print(resp.json())

Response Fields

FieldTypeDescription
usageobjectTask usage statistics
usage.video_countintegerNumber of generated videos
usage.video_ratiostringVideo resolution
usage.video_durationintegerVideo duration in seconds
outputobjectTask output information
output.task_idstringTask ID
output.end_timestringEnd time
output.video_urlstringVideo URL
output.orig_promptstringOriginal prompt
output.submit_timestringSubmit time
output.task_statusstringTask status
output.actual_promptstringActual prompt used
output.scheduled_timestringScheduled execution time
request_idstringRequest ID

Response Example (200)

json
{
  "usage": {
    "video_count": 1,
    "video_ratio": "832*480",
    "video_duration": 5
  },
  "output": {
    "task_id": "ac22cbc8-3fb3-45b6-9091-d8a7b41650bc",
    "end_time": "2025-10-26 12:52:20.355",
    "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/1d/9c/20251026/684d8054/ac22cbc8-3fb3-45b6-9091-d8a7b41650bc.mp4?Expires=1761540731&OSSAccessKeyId=LTAI5tKPD3TMqf2Lna1fASuh&Signature=YmnKGuWErMJoMBwAeUolZhlzBK0%3D",
    "orig_prompt": "A cute epic scene. A small adorable cartoon kitten general wearing detailed golden armor and a slightly oversized helmet bravely stands on a cliff. Riding a small but courageous warhorse, it recites: The Qinghai clouds darken the snowy mountains, the lonely city overlooks the Jade Gate Pass. After hundreds of battles in yellow sand, the golden armor will not return without breaking Loulan. Below the cliff, a massive army of mice charges forward with makeshift weapons. This is a dramatic large-scale battle scene inspired by ancient Chinese war epics. Snowy mountains rise in the distance, clouds roll across the sky without blocking the sunlight, and the atmosphere is a humorous yet epic blend of cute and majestic.",
    "submit_time": "2025-10-26 12:50:16.723",
    "task_status": "SUCCEEDED",
    "actual_prompt": "Epic cute style, medium wide shot, daylight, side lighting, warm and cool tones mixed, centered composition. In the early morning, sunlight slants across the towering cliff, illuminating the kitten general\'s furry cheeks and shiny golden armor, the helmet slightly oversized and swaying in the wind. Riding a small but proud warhorse, the hooves lightly tread the edge of the rocks, tail flicking. The kitten general stands straight, front paws raised, expression determined, mouth moving in a childlike but powerful voice reciting: The Qinghai clouds darken the snowy mountains, the lonely city overlooks the Jade Gate Pass. After hundreds of battles in yellow sand, the golden armor will not return without breaking Loulan. After each line, the horse raises its front hooves in sync. Below the cliff, thousands of mouse soldiers form dense ranks, holding toothpick spears, bottle cap shields, and forked weapons, marching with a rustling sound, dust flying. In the distance, the snowy mountains are majestic, clouds roll by without blocking the light, and the sky is deep blue. The background audio is a low drum rhythm mixed with a children\'s choir singing ancient-style melodies, interspersed with mouse squeaks and weapon collision sounds.",
    "scheduled_time": "2025-10-26 12:50:16.772"
  },
  "request_id": "1b9c3aa0-215a-4821-b7b2-3f28dcdc2643"
}