Skip to content

Query: Task Results

Use task_id to query the status and result of a Doubao video generation task.

Overview

  • Method: GET
  • Path: /task/{task_id}
  • Category: Video Models (Video) / Doubao Video
  • Authentication: Bearer Token
  • Base URL: https://api.gpt.ge

Request Parameters

  • task_id (required, path parameter, string): task ID, for example 809413373237157888.

Request Example

bash
curl -X GET "https://api.gpt.ge/task/809413373237157888" \
  -H "Authorization: Bearer $YOUR_TOKEN"

Success Response Example

json
{
  "id": "cgt-20250702010712-qm644",
  "model": "doubao-seedance-1-0-pro-250528",
  "usage": {
    "total_tokens": 246840,
    "completion_tokens": 246840
  },
  "status": "succeeded",
  "content": {
    "video_url": "https://ark-content-generation-cn-beijing.tos-cn-beijing.volces.com/doubao-seedance-1-0-pro/02175138963219500000000000000000000ffffac15f035c17b4d.mp4?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYjg3ZjNlOGM0YzQyNGE1MmI2MDFiOTM3Y2IwMTY3OTE%2F20250701%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20250701T170758Z&X-Tos-Expires=86400&X-Tos-Signature=3bc660141aeb0992d4d34de5acf6e70486a73041a9698ae8f8f2d27a87681fd6&X-Tos-SignedHeaders=host"
  },
  "created_at": 1751389632,
  "updated_at": 1751389678
}

Response Fields

  • id (string): unique task identifier
  • model (string): model name used for generation
  • usage.total_tokens (integer): total token consumption
  • usage.completion_tokens (integer): completion token consumption
  • status (string): task status, such as succeeded, failed, submitted
  • content.video_url (string): generated video URL
  • created_at (integer): task creation time as Unix timestamp (seconds)
  • updated_at (integer): task update time as Unix timestamp (seconds)